Paste LLM-generated prose, suspicious PR diffs, or messy titles to expose invisible Unicode watermarks (U+200B, U+202F, U+FEFF), Trojan Source Bidi overrides (Unicode TR36), unescaped HTML payloads (OWASP XSS Cheat Sheet), or generate clean ASCII SEO slugs offline.
Why Hidden Unicode Characters Break Parsers, Compilers & Code Reviews
Copy-pasting from LLM chat panes, PDFs, or rich editors silently injects narrow non-breaking spaces (U+202F), byte-order marks (U+FEFF), or zero-width joiners (U+200B–U+200D). Inside JSON keys, shell commands, or email agents, those extra UTF-8 bytes trigger cryptic parser failures or bypass naive regex sanitization. For masking API keys or PII before prompting, pair this cleaner with our client-side log anonymizer or offline XML/JSON validator.
| Codepoint | Unicode Name | Real Production Failure Mode | Action Taken |
|---|---|---|---|
U+200B / U+200C / U+200D | Zero-Width Space / Joiners | Silent watermarking, broken JSON keys, extra tokens | Stripped cleanly |
U+202F / U+00A0 | Narrow No-Break Space / NBSP | Breaks naive whitespace splits, CLI flags and grep checks | Converted to ASCII 0x20 |
U+FEFF | Zero-Width No-Break Space (BOM) | HTTP headers or CSV/JSON parsers choking on line 1 | Stripped completely |
U+202E & Bidi range | Right-to-Left Override | Trojan Source visual reordering in PR code reviews | Flagged & stripped |
Frequently Asked Questions on Invisible Unicode & Text Sanitization
Which invisible Unicode codepoints does this cleaner detect and strip?
It detects zero-width characters (U+200B, U+200C, U+200D, U+2060, U+180E), byte-order marks (U+FEFF), non-standard spaces like NBSP (U+00A0) and NNBSP (U+202F), bidirectional control sequences (U+202A–U+202E, U+2066–U+2069), plus smart quotes and em-dashes.
Does pasted text ever leave my browser?
No. Codepoint inspection, HTML escaping, and Unicode NFD slug generation execute 100% locally in browser memory with zero network calls or analytics telemetry.
Why are Bidi override characters dangerous in source code and emails?
Per Unicode Technical Report TR36, overrides like U+202E alter visual rendering order without changing the underlying byte sequence executed by compilers or AI parsers (the Trojan Source attack vector).
How does HTML escaping protect against XSS payloads?
It converts the five OWASP-recommended characters (&, <, >, double quotes, and single quotes) into harmless HTML entities before rendering untrusted strings inside HTML contexts.