Skip to content
100% local

Non-ASCII line filter

Keep or remove every line that contains a character outside the standard ASCII range.

Input

Non-ASCII line filter

Paste any text and this tool checks it line by line: each line either contains only standard ASCII characters (codes 0-127 — plain Latin letters, digits and punctuation) or it doesn't. In "Remove non-ASCII lines" mode, any line with even one character outside that range — an accented letter, emoji, curly quote, CJK character, or stray control byte — is dropped; everything else passes through untouched. Switch to "Keep only non-ASCII lines" to isolate exactly the unusual lines, which is often the faster way to find problems.

This cleanup tool solves recurring problems with logs and raw data exports: server logs where most lines are clean but a few got corrupted with mojibake, CSV exports where broken encoding left garbled bytes in some rows, or datasets that mix clean English records with script fragments you don't want to process. Rather than hunting manually or writing a script, paste the text and get a clean result immediately — or flip the mode to extract just the problem lines for inspection.

The tool checks every character in a line, not just the first, so a mostly-ASCII line with one embedded accent or symbol still counts as non-ASCII. Windows (CRLF) and Unix (LF) line endings are handled the same way. Files with hundreds of thousands of lines process in milliseconds — the tally shows exactly how many lines arrived, how many remain, and how many were filtered.

Everything runs locally in your browser. Your text never goes to a server, which matters for logs and data dumps containing hostnames, user data, or other details you'd rather not send anywhere. Copy the result, download it as .txt, or send it to another tool to continue cleaning.

FAQ

What counts as a non-ASCII character?
Anything outside code points 0-127 — that includes accented letters like é or ü, emoji, curly quotes, em dashes, and characters from non-Latin scripts such as Cyrillic, Greek or CJK.
Does one non-ASCII character remove the whole line?
Yes. If any single character in a line falls outside the ASCII range, the entire line is treated as non-ASCII — not just that character.
Can I keep only the non-ASCII lines instead?
Yes. Switch the mode to "Keep only non-ASCII lines" and the tool inverts the filter, returning just the lines it would otherwise have removed — useful for spotting encoding problems.
How are Windows and Unix line endings handled?
The same way. CRLF and LF line breaks are both recognized, and the result is joined with a single newline per line regardless of the input format.
Is my text uploaded anywhere?
No. The filtering runs entirely in your browser and your text never leaves your device — nothing is uploaded, sent to a server or logged.