How to find and remove zero-width spaces
A zero-width space (U+200B) is a character with no width. You cannot see it, but it is there, and it can make two identical-looking words different to a computer.
Signs you have one
- Find and replace cannot find a word you can clearly see.
- A password, code or email address is rejected even though it looks right.
- The cursor seems to "stick" for one extra key press when moving through a word.
- The character count is higher than the visible text.
How to see them
- VS Code: invisible Unicode characters are highlighted by default. Hover to see the code.
- Word: they do not show with the ¶ button. Search for
^u8203in Find to locate them. - Browser: paste into the invisible character remover, which counts what it removes.
Remove them
The invisible character remover deletes zero-width spaces, joiners, byte order marks and soft hyphens, and turns odd spaces into normal ones. Everything runs in your browser.
For the full list of troublemakers, read hidden characters in AI text.
Try it free: paste your text into the TidyPaste AI text cleaner. No sign-up.