Invisible Character Checker
Detect and remove hidden characters like zero-width spaces, non-breaking spaces, and other invisible Unicode characters that can cause bugs.
Paste text above to check for invisible characters
You May Also Like
What Are Invisible Characters?
Invisible characters are Unicode characters that don't display anything visible but still exist in your text. They can cause mysterious bugs, break string comparisons, and create security vulnerabilities.
The most notorious is the Zero Width Space (U+200B) - it's literally nothing you can see, but it takes up space in your string length!
"Hello" (5 chars) vs "Hello" (6 chars with ZWSP)
Common Invisible Characters
Zero-Width Characters:
- ZWSP (U+200B) - Zero Width Space: invisible, but separates words
- ZWNJ (U+200C) - Zero Width Non-Joiner: prevents ligatures
- ZWJ (U+200D) - Zero Width Joiner: joins characters (used in emoji)
- BOM (U+FEFF) - Byte Order Mark: often at file beginnings
Special Whitespace:
- NBSP (U+00A0) - Non-Breaking Space: looks like space, but different
- Em Space, En Space - Various width spaces
- Ideographic Space (U+3000) - Full-width space in CJK
Formatting Characters:
- LTR/RTL Marks - Affect text direction
- Soft Hyphen (U+00AD) - Invisible unless line breaks
Where Do They Come From?
- Copy-paste from websites, PDFs, Word documents
- Rich text editors that add formatting
- Different operating systems (Windows vs Mac line endings)
- Emoji combinations (ZWJ sequences)
- Intentional obfuscation (hiding text, bypassing filters)
Problems They Cause
For Developers:
- String comparisons fail:
"hello" !== "hello" - JSON/XML parsing errors
- Database mismatches
- Search doesn't find text
- URL routing issues
For Security:
- Bypassing input filters
- Homograph attacks (lookalike URLs)
- Hidden commands in code
Prevention Tips
- Always sanitize user input before storing
- Use this tool before pasting into code
- Set up linters to detect invisible characters
- Be cautious with copy-paste from untrusted sources
- Use monospace fonts that can reveal some hidden chars