Filter a List of Numbers
Quickly filter numbers according to certain criteria. Runs entirely in your browser, so your data never leaves your device.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Quickly filter numbers according to certain criteria.
Type or paste above to see the result here.
What you paste never leaves this tab
Filter a List of Numbers is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, whatever you type in is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.
- No upload
- No length limit
- Works offline once loaded
- Nothing stored or logged
How to use Filter a List of Numbers
- 1. Paste your list of numbers. Enter the numbers you want filtered, separated by commas, spaces or line breaks, into the input pane, for example 3, 15, 8, 22 and 10.
- 2. Choose the filter condition. Pick a rule under Keep numbers that are, such as Greater than value, Between two values, Even or Decimals. Value (and And for Between) appear only when the rule needs them; switch Matches to Remove matches to drop them instead.
- 3. Copy the filtered numbers. Set the Separator, then copy the kept numbers. The line under the result says how many were kept and lists the removed ones.
When to use Filter a List of Numbers
Filter a List of Numbers keeps only the values that match a condition you choose, whether that's a comparison against a threshold or a property like even, odd, integer or decimal. It replaces manually scanning a list for matches.
- Isolating outliers above a threshold. A dataset of measurements or sales figures needs every value above a specific cutoff pulled out for closer review, without writing a spreadsheet formula.
- Splitting a mixed list into whole numbers and decimals. A pasted list of numbers mixes integers and decimal values, and you need only the whole numbers for a step that can't handle fractional input.
- Preparing even or odd subsets for a puzzle. A number puzzle or classroom activity needs just the even values or just the odd values pulled from a longer list of numbers.
- Cleaning a data export before analysis. An exported column mixes valid and out-of-range readings, and filtering to values below or equal to a sensor's rated maximum removes bad readings before charting.
Examples
Numbers greater than 10
Input
3, 15, 8, 22, 10
Output
15 22
Only the even numbers
Input
1 2 3 4 5 6
Output
2 4 6
Only the decimals
Input
1.5, 2, 3.25, 4
Output
1.5 3.25
Numbers between 5 and 15
Input
3, 15, 8, 22, 10
Output
15 8 10
About the Filter a List of Numbers tool
Filter a List of Numbers does its work locally, right in the browser. Quickly filter numbers according to certain criteria. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the Number Tools collection on EditSafely, a set of 194 small, focused Number utilities that share the same instant, private workspace.
You can shape the output with 5 settings, including Keep numbers that are, Value, And and Matches, and the result refreshes the moment you change one. 4 worked examples further down the page show exactly what the tool produces for real inputs.
Running locally also makes the tool fast and dependable: results appear as soon as your input does, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.
Frequently asked questions
Is Filter a List of Numbers free to use?
Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How much text can I process at once?
There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.
Related tools
All Number Tools →Sort a List of Numbers
Quickly sort numbers in ascending or descending order.
Pick a Number
Quickly choose one or more numbers from a list of numbers.
Find the Maximum Number
Quickly find the largest number in a number sequence.
Calculate Number Sum
Quickly add up all the numbers in the given list and find their sum.