No upload, 100% local, no account

How-to

Inspect and clean invisible characters before sharing text

A code or identifier copied from a PDF may look fine yet fail an exact search because of zero-width spaces or hidden Unicode tags. This guide shows how to inspect character categories and strip only what you intend locally. Note that invisible characters often stem from formatting rather than deliberate tracking.

Step by step

  1. Keep the source document and paste a copy of the relevant text into Unicode Cleaner. The interface inspects and counts characters across seven named cleaning categories and shows a live output preview. It accepts text, not DOCX or PDF files, so document formatting, comments and embedded objects are outside this operation. Do not replace the original yet.
    Synthetic text with category counts for a zero-width space, non-breaking space and soft hyphen
  2. Review the counts and selected rules. Five invisible-character and control categories are enabled by default, while curly-quote and smart-punctuation replacements are opt-in (alongside whitespace collapsing, diacritic stripping and Unicode normalization such as NFC or NFKC). Turn off any change you do not want, especially directional controls in text where they have a purpose. Leave whitespace collapsing off when line breaks or indentation matter. The preview changes immediately as you adjust the checkboxes.
  3. Compare the preview with the original, then copy the result into a local draft and repeat the operation that was failing, such as an exact identifier search. Check punctuation, spacing, reading order and any non-Latin text. The category counts describe the input; to rescan the output, paste the cleaned copy into the input area. A zero count only means the fixed detector patterns found no matching characters.
    Cleaned text preview with the selected Unicode replacement rules and change count

A small copy-and-paste example

The demonstration places U+200B inside ACME, U+00A0 between words and U+00AD inside invoice. They are a zero-width space, a non-breaking space and a soft hyphen. With those three categories enabled, the tool removes the zero-width space and soft hyphen and changes the non-breaking space to an ordinary space. The visible words can look almost unchanged, while an exact string comparison now sees different characters. This is a useful repair for a known identifier problem. It says nothing about why those characters entered the source.

FeatureU+200B / U+200C / U+200DU+FEFF (BOM / ZWNBSP)U+2060 (Word Joiner)
ReferenceZero-Width Space / ZWNJ / ZWJByte Order Mark / Zero-Width NBSPWord Joiner (Invisible)
ScopeBinary Steganography (0/1 Fingerprinting)Document Origin TaggingHidden Line Break Control / Tracking
Processing modestr.replace(/[\u200B-\u200D]/g, "")str.replace(/\uFEFF/g, "")str.replace(/\u2060/g, "")

Invisible does not mean unwanted

Unicode controls can affect line breaking, joining and reading direction without showing a visible glyph. Those functions matter in multilingual text, emoji sequences and typography. The cleaner uses a fixed set of patterns, including a contextual rule that preserves joiners between two non-ASCII neighbours. That rule is a practical heuristic, not a complete linguistic analysis. Curly quotes are visible punctuation and are included as an optional normalization category. Inspect the actual text before enabling broad cleanup; removing a legitimate control can change how a name, sentence or symbol is displayed.

FeatureVS Code EditorPOSIX Terminal (hexdump / xxd)DevTools Zero-Upload Audit
Referenceeditor.unicodeHighlight.invisibleCharactersxxd -p file.txt | grep -E "e2808b|efbbbf"F12 → Network (Fetch/XHR: 0 B)
Best forHighlighted Amber Pill around CodepointUTF-8 Hex Bytes: e2 80 8b (ZWSP)0 B Transmitted (Air-Gap Ready)

Check the result in its destination

The cleaner only returns text. It does not edit the original document, remove its metadata, inspect a hidden document layer or decode a watermarking scheme. Pasting the result into another application can also introduce new formatting or characters. Test the destination behaviour you care about and keep a source copy for comparison. Processing runs in the browser without sending the pasted text to a cleaning service. You can verify that path in developer tools by watching requests after the page has loaded while pasting a synthetic example.

The tools used in this guide

Frequently asked questions

Does a clean result prove the text has no tracking marker?

No. The tool recognizes specific character patterns and applies the rules you select. It does not inspect every possible marking method or establish a text's origin. Neither a detected character nor its absence proves tracking or AI generation.

Will the cleaner preserve my PDF or Word formatting?

No document file is edited here. You paste text and copy text back out; layout, styles, comments, images and file properties are not part of that output. Work on a copy, choose rules deliberately and check the pasted result in the destination application before replacing anything.

Sources