Numeric lines filter
Keep or remove lines that contain only a number.
Numeric lines filter
Paste any list and this tool separates the lines that are purely numeric from everything else. Use it to clean up exported spreadsheet columns, strip stray ID numbers out of a log file, isolate row counts from a report, or pull the number-only rows out of a mixed export before you process it further.
Switch between two modes with one option. "Keep numeric lines" throws away everything except lines made up entirely of digits, so a file mixing product names, prices and blank separators reduces to just the prices. "Remove numeric lines" does the opposite: it drops every purely numeric line and keeps the rest, which is handy when a log or export interleaves row numbers with the actual content you care about.
A line counts as numeric if it is nothing but digits, with an optional leading minus sign for negative values. Turn on "Allow decimals" to also treat "3.14" or "3,14" as numeric — both the dot and the comma decimal separator are recognised, since exports from different locales use either. A line like "12 apples" is never numeric, because it mixes digits with other text; only lines that are a number and nothing else qualify. "Ignore surrounding whitespace" trims each line before testing it, so " 42 " still counts as numeric, while the original spacing is preserved in the output.
The tool handles Windows (CRLF) and Unix (LF) line endings interchangeably and processes even very long lists in milliseconds, with the exact count shown in the tally under the output.
Everything runs locally in your browser. Your list is never uploaded anywhere, so it's safe to use on private exports, internal data or unpublished reports. Copy the result, download it as a .txt file, or send it straight to another tool to continue cleaning it up.