DEVELOPER TOOL

Zero-Width Cleaner

Detect and clean hidden characters (ZWSP/ZWJ/ZWNJ/FEFF) and bidi controls (LRM/RLM/LRE/RLE/…); visualize, normalize and export.

input.txt
const userName = "Admin";
const hidden = "hello\u200Bworld";
const mixed = "A\u200FBC";
                    
cleaned.txt
const userName = "Admin";
const hidden = "helloworld";
const mixed = "ABC";
                    
KEY FEATURES

Core Capabilities

Visualize and remove invisibles, normalize Unicode, and export clean text for safe code and content.

Visualize

Label ZWSP/ZWNJ/ZWJ/FEFF/LRM/RLM/… inline for quick auditing

Clean

Remove zero-width and bidi controls; replace NBSP with space

Normalize

Apply NFC/NFD/NFKC/NFKD normalization safely

Ready to Clean?

Open the dashboard and sanitize your text safely.

Open Dashboard

Find and Remove Zero-Width Characters Safely

Zero-width characters (ZWSP, ZWNJ, ZWJ, BOM, and other Unicode control characters) are invisible, and that is the problem. They are used to break hyphenation, join emoji, or format text - but they also hide in pasted content, get injected into credentials, and are a known vector for obfuscated text and homoglyph attacks. When something "looks right but does not work," zero-width characters are a frequent culprit.

This tool takes your text, detects every zero-width and other invisible character, shows you exactly where each one is (with context), and removes them on demand. Because the detection is visible in the output, you can see what was there before deciding to clean it - which matters when some zero-width characters are intentional (like the ZWJ that joins emoji). The result is clean text you can paste, commit, or process with confidence.

When invisible characters bite

The classic cases: a copied password or token that fails because of a trailing ZWSP; a string comparison that "should" match but does not; a username or email that looks normal but contains a homoglyph; or a pasted paragraph that carries formatting artifacts from its source. In each case, the characters are invisible to the eye - which is why a detector that makes them visible is the fix.

Common Questions

What counts as a zero-width character?
Characters that take no visual space - zero-width space (ZWSP), zero-width non-joiner (ZWNJ), zero-width joiner (ZWJ), BOM, and related Unicode control characters. The tool detects and lists each one with its context.
Will removing them break emoji?
The zero-width joiner (ZWJ) is what joins some emoji sequences (family, professions). The tool shows you each character before you remove it, so you can keep the ZWJs that matter and strip the rest.
Why would invisible characters be in my text?
They come from copy-paste across platforms, document editors, and malicious obfuscation. A trailing ZWSP in a copied token, or a homoglyph in a username, are the most common surprises.
Is this a security tool?
It is a text-sanitization tool. It helps you spot invisible characters that break comparisons, authentication, and text processing - a useful step in reviewing untrusted input, though it is not a full homoglyph/security scanner.
Can I process a large text at once?
Yes. Paste or load a large block and the tool scans the whole thing, reporting every invisible character with its position and context for a bulk clean.