Filter Numbers
Filter a list of numbers - gt, lt, eq, even/odd, positive/negative, integer/decimal, unique, between, outside. Free, offline, client-side, instant, secure.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
Paste a list of numbers (any mix of commas, spaces, newlines, semicolons,
pipes). Pick a filter mode - comparisons (>, ≥,
<, ≤, =, ≠),
sign (positive / negative), parity (even / odd, integers only), type
(integer / decimal), uniqueness, or range (between / outside). Non-numeric
tokens are silently skipped and reported in stats.
How to Use Filter Numbers
- Paste your numbers into the textarea. The parser is permissive - items can be separated by commas, spaces, newlines, semicolons, or pipes (or any mix). Non-numeric tokens are silently skipped; the count surfaces in the stats line.
- Pick a filter mode. Comparison modes use the threshold field; sign/parity/type/unique modes ignore it. Range modes ("between" and "outside") use both thresholds (min and max are auto-swapped if out of order).
- Set the threshold(s). Decimal-aware (
3.14,-2.5, scientific notation like1e-3). The threshold field hides automatically for modes that don't need it. - Pick an output separator. Default is comma+space; switch to newline for spreadsheets, tab for TSV-style pastes, pipe for visual scanning.
- Click Filter numbers (or press Ctrl/Cmd + Enter). The stats line shows parsed count, kept count, removed count, and any non-numeric tokens skipped.
- Compare the stat cards. Side-by-side Input vs Output: count, min, max, sum, mean, median. Quick sanity check before copying.
- Copy or download. Copy uses the Clipboard API with an
execCommandfallback. Download TXT savesfiltered-numbers.txt.
Frequently Asked Questions
What does “Remove Duplicates” do?
The “Remove Duplicates” mode keeps only unique numbers from your list. If you enter “5, 10, 5, 20, 10”, the output will be “5, 10, 20” – each number appears only once, in the order it first appeared.
Can I filter negative numbers?
Yes. The tool fully supports negative numbers, decimals, and zero. You can filter by “Positive Only” to get numbers greater than zero, or “Negative Only” to get numbers less than zero.
What’s the difference between “Greater Than” and “Greater or Equal”?
“Greater Than” (>) excludes the threshold value itself. If your threshold is 10, you’ll get 11, 12, 13, etc. “Greater or Equal” (≥) includes the threshold, so you’ll get 10, 11, 12, 13, etc.
Does “Even Only” work with negative numbers?
Yes. Even and odd filters work correctly with negative integers. -4 and -2 are even; -3 and -1 are odd. Zero is even. Decimals like 4.0 are excluded from both – only integers qualify.
What happens if I enter non-numeric values?
The tool automatically skips any non-numeric values and processes only valid numbers. The stats line reports how many tokens were skipped so you can verify nothing unexpected was dropped. If no valid numbers are found at all, you’ll see an error message asking you to enter at least one valid number.
Can I use decimal numbers?
Yes. Decimals like 3.14 or -2.5 work for all comparison and sign modes, and for between/outside. Even/odd modes require integers (decimals are excluded – see “Does Even Only work with negative numbers?” above). Scientific notation like 1e-3 also parses.
What’s the “between” mode?
Keeps numbers where min ≤ x ≤ max (both ends inclusive). Set both threshold fields. If you swap them by mistake (max less than min), the tool auto-swaps them. “Outside” is the inverse – keeps numbers below min OR above max.
How many numbers can I filter at once?
The tool can efficiently handle thousands of numbers instantly since all processing happens in your browser’s memory. Performance depends on your device, but most operations complete in milliseconds.
Is my data uploaded to a server?
No. The page is three static files (HTML, CSS, JS) and runs entirely in your browser using plain string and number operations. No fetch, no XHR, no analytics, no cookies. You can disconnect from the internet after the page loads and the tool still works.
Related Tools
Calculate Fibonacci Numbers →
Calculate Fibonacci Numbers Generate up to 5,000 Fibonacci numbers with exact BigInt precision. Free,…
Calculate Lucas Numbers →
Calculate Lucas Numbers - Generate up to 5,000 Lucas numbers with exact BigInt precision.…
Generate Prime Numbers →
Generate Prime Numbers List every prime up to 10,000,000 with the Sieve of Eratosthenes.…
Convert Numbers to Image →
Render any number or text as a PNG / JPEG with custom font, color,…
Convert Numbers to Words →
Convert numbers to English words. Cardinal, ordinal, check-writing format. BigInt for huge numbers, decimal…
Convert Words to Numbers →
Convert English number words to numbers (and back). Supports negative, billions, quintillions. Free, client-side,…
Add Hex Numbers →
Add Hex Numbers instantly. Free, offline, client-side tool that outputs results in both hex…
Add Rainbow Filter to Image →
Add rainbow filter to images online for free. Apply colorful rainbow effect to any…
Add Sepia Filter to Image - Vintage Photo Effect →
Add sepia filter to any image online. Upload your photo, apply vintage sepia effect,…
Calculate Bitwise AND of Hexadecimal Numbers →
Perform bitwise AND on hexadecimal numbers instantly. Free, secure, client-side tool.
CSS Filter Generator →
Generate CSS filter with 10 functions including drop-shadow, backdrop-filter mode, 8 preset combinations. Live…
Filter List →
Filter list items by text or regex - contains, starts, ends, equals, regex modes;…