What a zero-width space actually does
U+200B marks a place where a line may break. It can be useful when visible spaces are inappropriate, including text in writing systems that do not put a space between every word. It also appears in copied web content and intentionally separated identifiers.
The strings below can look alike in an ordinary editor. The second contains one extra code point between “copy” and “paste”. Exact string comparisons treat them as different.
copypastecopy[U+200B]pasteBrackets show the hidden character. They are explanatory labels.Remove it deliberately
- Paste the original text into the inspector.
- Expand the ZERO WIDTH SPACE finding to inspect its count and locations.
- Switch to Advanced mode and select Zero-width separators.
- Review the cleaned text, then copy it or download a text file.
This category removes U+200B, U+2060 word joiners, and U+FEFF characters. It does not remove ZWJ or ZWNJ. If your text contains several separator types, review the findings before applying the category.
When keeping it is the better choice
Removing a zero-width space can join words or remove an intended wrapping opportunity. Safe mode therefore preserves it. A zero-width joiner, U+200D, is a different character with a different job. Deleting joiners can break an emoji sequence or alter script shaping, so this tool offers them as a separate, explicit category.
The inspector identifies character types. It cannot infer the author’s intent, prove a pasted identifier is trustworthy, or validate every language’s typography.
Character properties and word-break context are documented by the Unicode Consortium. Unicode Line Breaking Algorithm ↗