Invisible Character Detector: Find Zero-Width and Hidden Characters
By FindMySum · Last reviewed
Paste any text into this invisible character detector to see what is hiding in it: zero-width spaces, no-break spaces, soft hyphens, byte order marks, right-to-left overrides and hidden tag characters. Each one is listed with its Unicode name and position, and you can show them in place or clean them out. The check runs in your browser.
When invisible characters cause trouble
- Text that looks identical but doesn't match. A username, product code or password copied from a web page fails because it contains a zero-width space or a no-break space.
- Code that won't compile or behaves strangely. A byte order mark at the start of a file, a no-break space in the middle of a line or a bidi override in a comment can break a build or hide what the code really does.
- Spreadsheet and database imports. Leading or trailing no-break spaces stop lookups from matching and make numbers read as text.
- Character limits. A message that looks 140 characters long can be more, because emoji and accents may take several code points or bytes.
How to use the tool
- Paste the text. The report lists every invisible or unusual character with its count and positions; the details below the output show the counts.
- Choose made visible to see each character marked in place, such as
⟦ZWSP⟧or⟦NBSP⟧, which makes it easy to find them in a long text. - Choose cleaned to copy a version without them. Emoji keep their joiners and variation selectors, so they still display correctly.
A worked example
The example text contains three hidden characters and one emoji. Between Pass and word there is a zero-width space, so a password check would fail. The space between no-break and space is a no-break space, which looks ordinary but isn't matched by most searches. Inside soft hyphen there is a soft hyphen, which only shows if the word breaks at the end of a line. The family emoji contains two zero-width joiners, which are part of the emoji and listed separately as normal. Cleaning removes the first and third, turns the no-break space into a normal space and leaves the emoji intact.
Things to keep in mind
Some invisible characters are meant to be there. Arabic and Hebrew text may use direction marks, Persian uses the zero-width non-joiner inside words, and some languages rely on no-break spaces before punctuation. Clean only text where you know they are unwanted.
Counts depend on what is counted. Characters you see, code points, UTF-16 units and bytes all differ for text with emoji or accents. Check which one a system means before trusting a limit.
For word and character counts of ordinary text, use the word counter; to see the bytes behind each character, the text to binary converter.