What are invisible characters?
Invisible characters are Unicode characters that print nothing, or look like a space, but are not a normal space. The best known is the zero-width space (U+200B), which has no width at all. Others are the no-break space (U+00A0), the soft hyphen (U+00AD), the zero-width joiner (U+200D), the byte order mark (U+FEFF), the Hangul filler (U+3164) and the Braille blank (U+2800). They are real characters: a text editor counts them, a database stores them and a program compares them.
People look for them for two opposite reasons. The first is to copy an invisible character: to send an "empty" message on a chat app, to leave a name or a field visually blank, or to keep a line break where a form trims spaces. The second is to detect and remove hidden characters that sneaked in when text was pasted from a web page, a PDF or a word processor, and that now break a search, a password, a spreadsheet formula, a URL or a string comparison.
This tool does both. In "Copy an invisible character" you search a catalog by name or code (for example "zero-width" or "200B") and copy the one you need. In "Find hidden characters" you paste a text and the tool lists every hidden character it finds, with its code, name, how many times it appears and the line and column of each one, then produces a clean copy. It also flags control characters and the Unicode tag characters (U+E0000 to U+E007F), which are used to hide text. Everything runs in your browser; the text you paste never leaves it.
How to copy or find an invisible character
- To copy: open the "Copy an invisible character" tab, search by name or code, press Copy and paste where you need it. The character looks empty on purpose.
- To detect: open "Find hidden characters" and paste the text. A sample with hidden characters is already loaded.
- Read the report: the number found, a table with code, name, type and count, and the position of each one as "U+200B at line 1, column 6".
- In "Clean the text", decide two options. "Keep joiners" preserves U+200C and U+200D, which emoji such as 👨👩👧 and some scripts (Persian, Indic) need. "Turn special spaces into a regular space" replaces no-break, thin or ideographic spaces with a normal space instead of deleting them.
- Copy the clean text, or copy the report for a bug ticket.
Examples
A zero-width space inside a word
The text Helloworld looks like "Helloworld", but it has U+200B at position 6 of line 1. A search for "Helloworld" fails until the character is removed. The tool reports U+200B at line 1, column 6.
A no-break space that is not removed
test with U+00A0 before it looks like a space, but ' ' in code does not match it. With "turn special spaces into a regular space" on, the clean text has a normal space (1 replaced); with it off, the space disappears and the words join.
A Hangul filler and a right-to-left override
In the sample x + U+3164 + y, U+3164 (Hangul filler) is invisible and passes as a letter in some forms. U+202E (right-to-left override) reverses how the following text is displayed; it is the character behind the "Trojan Source" attacks (CVE-2021-42574) and is worth removing from source code.
Emoji and joiners
👨👩👧 is three emoji glued by two zero-width joiners (U+200D). With "keep joiners" on, the tool leaves it as is (0 removed). With it off, it becomes 👨👩👧 and reports 2 removed. So keep the option on unless the text has no emoji or Persian and Indic words.
Full cleaning of one line
Hello + U+200B + world + U+00A0 + test + U+3164 + x + U+202E + y + U+FEFF has 5 hidden characters. Cleaning with special spaces turned into a regular one gives Helloworld testxy (4 removed, 1 replaced); without it, Helloworldtestxy (5 removed).
Common mistakes
- Trying to see them in a normal editor. They are invisible by design. Use the detector, or an editor option that shows hidden characters.
- Removing the joiners from emoji. Deleting U+200D splits family, profession and flag-like emoji into separate faces.
- Using an "empty" character where it is not accepted. Many apps trim or reject U+200B but accept U+3164 or U+2800; each platform differs, and some strip them on purpose.
- Confusing a no-break space with a normal one. A program that splits on
' 'will not split on U+00A0. Convert it to a regular space. - Leaving a BOM (U+FEFF) at the start of a file. It can break a JSON parser, a CSV header or a shell script's first line.
- Using hidden characters to mislead. Invisible characters in names, links or code can be used for spoofing. Do not hide text in documents you send to others.
FAQ
How do I type a blank or empty character?
Copy U+3164 (Hangul filler) or U+2800 (Braille blank) from the catalog, or U+200B (zero-width space). Which one a given app accepts varies, so try them in order.
How do I find a hidden character in text I pasted?
Paste it in the "Find hidden characters" tab. The tool lists the code and the exact line and column, so you can see where it hides.
What is the difference between a zero-width space and a no-break space?
The zero-width space (U+200B) has no width and allows a line break at that point. The no-break space (U+00A0) is as wide as a space but prevents a line break there.
Why does my string look the same but is not equal?
Often because of a hidden character, or because accented letters are stored in different Unicode forms. Check both: use this tool, and the accent remover and normalizer.
Can I see the code points of any text?
Yes, with the text to Unicode tool. To compare two versions of a text and spot the difference, use the text diff.
Detect hidden characters in code
JavaScript
const hidden = /[----]/g;
const text = 'Helloworld';
console.log(text.match(hidden)); // [ '' ]
console.log(text.replace(hidden, '')); // HelloworldPython
import re
hidden = re.compile('[----]')
print(hidden.sub('', 'Helloworld')) # HelloworldBash
printf 'Hello\xe2\x80\x8bworld' | LC_ALL=C grep -c $'\xe2\x80\x8b' # 1