Skip to content

Invisible Character Detector

Find zero-width spaces, no-break spaces, bidi overrides and other invisible characters, see their Unicode names and positions, and remove them. Runs in your browser.

Runs in your browser

Everything happens on your device: nothing you paste or type is sent to our server or stored. A share link holds your settings, and your input only if you choose to include it.

78 characters · 92 bytes (UTF-8) · limit 5 MB

Output: 370 characters.

Invisible or unusual characters
3
Characters you see (grapheme clusters)
71
Code points
75
UTF-16 code units (JavaScript length)
78
UTF-8 bytes
92
Words
13
Lines
1

Method: Unicode 17.0.0 (Default_Ignorable_Code_Point, White_Space, Bidi_Control, controls); grapheme clusters by UAX #29 · FindMySum name table (no library)

Off by default. When on, your input is packed into the part of the link after “#”, which browsers never send to any server; anyone you give the link to will see it.

How it works

The detector reads your text one character at a time and looks each one up in a table built from the Unicode Character Database, version 17.0: every default-ignorable code point (zero-width spaces and joiners, the byte order mark, soft hyphens, bidirectional controls, variation selectors, tag characters), every whitespace character other than the ordinary space, tab and line breaks, every control character, and letters that render as blank, such as the Hangul filler. Each one is reported with its code point, its official name and the line and column where it sits.

Text is also split into grapheme clusters, the units a reader sees as single characters, following Unicode Standard Annex #29 through your browser's Intl.Segmenter. That is how the tool knows that the zero-width joiners in a family emoji or the tag characters in the flag of England belong to the emoji: they are listed separately as normal, and the clean-up leaves them alone. The same pass gives the counts: characters as you see them, code points, UTF-16 units (what JavaScript's length reports), UTF-8 bytes, words and lines.

Cleaning removes the invisible characters, turns unusual spaces into ordinary spaces and unusual line separators into ordinary line breaks. Everything runs in your browser; the text is never uploaded.

Standards this tool follows

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

  1. Paste the text. The report lists every invisible or unusual character with its count and positions; the details below the output show the counts.
  2. 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.
  3. 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.

Sources

Frequently Asked Questions

What is a zero-width space and why is it in my text?

A zero-width space (U+200B) marks a place where a line may break without showing a space. It often arrives by copying from web pages, PDFs, chat apps and word processors. It is harmless to read but breaks searches, passwords, URLs, spreadsheet formulas and code, because two strings that look identical no longer match.

What is Trojan Source?

It is an attack published in 2021 (CVE-2021-42574) that hides bidirectional control characters, such as RIGHT-TO-LEFT OVERRIDE, in source code. Editors then display the code in a different order from the one the compiler reads, so a reviewer can approve code that does something else. This tool warns whenever bidi controls appear.

Can invisible characters hide a message?

Yes. Tag characters (U+E0020 to U+E007F) mirror the ASCII letters but display as nothing, so a string can carry a hidden sentence. This has been used to hide instructions inside text given to AI chatbots. The detector decodes any tag text it finds and shows it in a warning.

Why does my emoji count as several characters?

Many emoji are built from several code points: a family is three people joined by zero-width joiners, a skin tone is a separate modifier, and a flag can be a sequence of letters or tags. The tool counts what you see as one character and also shows the code points and bytes behind it, which is what character limits in databases and APIs usually measure.

Spotted a wrong result or a bug? Report a problem (the link sends the page address only, never what you entered).

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy