AI Text Cleaner

Find and remove invisible Unicode characters from AI-generated or copied text. Scan, review the highlights, then clean in one click.

Your text

Import a .txt file to preserve original line endings.

Your text stays in your browser. Scanning and cleaning run entirely on your device — nothing is uploaded.

How to clean your text

  1. Paste your textAdd text directly in the editor, or import a UTF-8 .txt file up to 1 MiB.
  2. ScanClick Scan. Invisible characters are highlighted inline with color-coded badges: yellow for caution, red for high risk.
  3. Review the bannerA summary appears below the text, naming every type found and how many times. Hover any inline badge to read a plain-language explanation.
  4. Clean and exportClick Clean to remove all flagged characters at once. The result appears below. Copy it to clipboard or download as a .txt file.

Frequently asked questions

What does AI Text Cleaner find?

It flags characters worth reviewing, such as zero-width spaces in plain Latin text, stray joiners, extra variation selectors, bidirectional overrides, and invisible control characters. A finding does not tell you whether text was written by AI.

Will it change spaces, emoji, or other writing systems?

Clean removes only the occurrences you select. Spaces, tabs, indentation, blank lines, trailing whitespace, and combining marks stay as written. The scanner conservatively keeps joiners that may be part of an emoji or a writing system.

How do I preserve the original line endings?

Import a UTF-8 .txt file and download the cleaned .txt. This preserves LF, CRLF, and standalone CR, even when they appear in the same file. Pasting and copying can change line endings.

Is my text uploaded?

No. Scanning, cleaning, and file handling run in your browser. Usage analytics may record page views, button names, approximate location, and a daily IP hash. They never include text, filenames, or findings.

Why AI-generated text contains invisible characters

Large language models produce text as sequences of Unicode code points, not plain ASCII. When a model samples tokens it can inadvertently include zero-width spaces, stray joiners, variation selectors, and bidirectional control characters that are common in its training data, especially in multilingual corpora, scraped web content, or documents typeset in rich text editors.

These characters are genuinely invisible at normal reading sizes. They survive copy-paste intact, so text that looks clean on screen can still carry hidden formatting instructions. Some systems strip them on ingest; others do not, causing inconsistent rendering, broken search indices, or failed regex matches downstream.

Copied text from websites, PDFs, or word processors also carries these characters. Zero-width spaces are frequently inserted by content management systems as word-break hints, and bidirectional overrides appear in internationalized documents. AI Text Cleaner handles both sources.

Character types this tool detects

NameCodeWhat it does
Zero-width spaceU+200BWord-break hint with no visible gap
Stray ZW joiner/non-joinerU+200C/DJoin or split hint with no shaping context
LTR / RTL markU+200E/FInvisible direction nudge
LTR / RTL embeddingU+202A/BOpens a directional embedding scope
Directional pop (PDF)U+202CCloses an embedding or override scope
LTR / RTL overrideU+202D/EForces text direction; can disguise reversed text
Bidi isolatesU+2066-9Isolate directional runs in Unicode bidi algorithm
ZWNBS / BOMU+FEFFNo-break space or file byte-order mark
Unicode tag charsU+E0000+Invisible tag data outside recognized emoji sequences
Variation selectorsU+FE0xAlternate glyph request with no preceding character
Soft hyphenU+00ADSuggested line-break point; invisible unless line breaks
Control charactersU+0000-1FNon-printing instructions including NUL

Privacy. AI Text Cleaner runs entirely in your browser using a Web Worker for the scan. Your text, filenames, and findings are never sent to any server. Usage analytics may record page views and button names (not text content) to help improve the tool.

What it does not do. This tool detects specific Unicode characters that are commonly invisible and structurally suspicious in plain-text contexts. It does not detect whether text was written by an AI, does not check grammar or style, and does not modify spaces, tabs, line breaks, emoji, or characters with legitimate shaping roles in the surrounding context.

Line endings. Paste-based text normalises line endings to LF. To preserve the original CRLF or standalone CR endings of a document, import it as a UTF-8 .txt file and download the result. The cleaner preserves them through the entire round-trip.