Whitespace Visualizer
Reveal tabs, NBSPs, zero-width spaces, trailing spaces, and bidi controls.
Text
Revealed
Non-breaking⍽space·+·zero-width⟦ZW⟧join¶ →Indented·line·with·trailing·space···¶ Check·bidi·override:⟦RLO⟧evil⟦PDF⟧
Found
Warning: Bidirectional control characters detected (possible Trojan Source reordering). Remove invisible characters before pasting code.
⍽No-break space (U+00A0)× 1⟦ZW⟧Zero-width / BOM× 1⟦RLO⟧RTL override (U+202E)× 1⟦PDF⟧Pop directional formatting (U+202C)× 1·Space× 11¶Newline (LF)× 2→Tab× 1↵Trailing whitespace on 1 line
Your text stays in this browser tab. Nothing is uploaded.
How to use Whitespace Visualizer
Paste suspicious code snippets, CSV rows, or copied web text.
Inspect revealed glyphs such as · (space), → (tab), ⍽ (NBSP), ⟦ZW⟧ (zero-width/BOM), and bidi overrides.
Click Remove invisible characters to strip hidden zero-width and directional controls cleanly.
Frequently asked questions
Why does it warn about bidirectional controls?
Hidden RLO/PDF/LRI isolates can visually reorder source code tokens in editors (the Trojan Source attack).