What is an invisible character?
An invisible character is a character in the Unicode standard that shows nothing on the screen, or only an empty space, but still counts as a character. Some take up no room at all, such as the zero width space; others leave a gap like a space but are not the ordinary space typed with the space bar, such as the no-break space or the em space. A few are letters or symbols whose shape happens to be blank, such as the Hangul Filler and the Braille Pattern Blank.
They exist for good reasons. Typesetters use different spaces for different widths, writing systems need characters that join or separate letters, and the braille blank is the braille cell with no dots. But because they cannot be seen, they also end up in text by accident, and people use them on purpose to type something that looks empty.
How to copy blank text
- Press Copy next to a character at the top of the page. It is copied to your clipboard and shown between brackets so you can see that something was copied.
- Paste it where you need it, for example a name, a message or a text field that does not accept an empty value.
- To copy several blanks in a row, choose the character under Blank text, enter how many you want (up to 10,000) and press Copy blank text.
- If an app removes the character or says the field is empty, try a character of another type: a letter, a symbol, a space or a format character. Each app decides for itself which characters it allows.
The characters on this page
- Hangul Filler (U+3164) and Halfwidth Hangul Filler (U+FFA0): blank characters from the Korean alphabet blocks, classed as letters. Because they count as letters, they can get past checks that only remove spaces.
- Hangul Choseong Filler (U+115F): another blank Korean letter, used inside Korean syllables that lack a first consonant.
- Braille Pattern Blank (U+2800): the braille cell with no raised dots, classed as a symbol.
- Zero Width Space (U+200B): takes up no room. It marks a place where a long word or web address may be broken onto the next line.
- No-Break Space (U+00A0): looks like a normal space but keeps the words on each side on the same line, for example in “10 km” or “Mr Smith”. Web pages write it as
. - En Space, Em Space, Thin Space, Hair Space and Ideographic Space: spaces of fixed widths used in typesetting. The em space is as wide as the font size, the en space half of that, and the ideographic space is as wide as a Chinese or Japanese character.
- Zero Width Joiner (U+200D): joins characters together. Emoji such as a family or a woman health worker are built from several emoji joined by it.
- Word Joiner (U+2060) and Zero Width No-Break Space (U+FEFF): zero-width characters that stop a line break. U+FEFF is also the byte order mark that some programs put at the very start of a text file.
Why hidden characters cause problems
Text copied from web pages, Word documents, PDFs, chat apps and spreadsheets often brings hidden characters along. You cannot see them, but programs can:
- Searches and comparisons fail. “hello” with a zero width space inside is a different word from “hello”, so a search, a filter or a duplicate check misses it.
- Passwords, codes and links stop working. A no-break space or zero width space pasted into a password, a discount code or a web address makes it wrong even though it looks right.
- Spreadsheet formulas break. Numbers with a no-break space are treated as text, and Excel’s TRIM function does not remove that space.
- Program code misbehaves. A hidden character in code or a settings file can cause an error that is hard to see. In 2021 a security paper called “Trojan Source” showed how hidden text-direction characters can make program code look different from what it really does.
- Numbers copied from pages in some languages may contain a narrow no-break space (U+202F), which French, for example, uses between thousands.
How to find and remove hidden characters
- Paste the text into the box under Find hidden characters.
- The message tells you how many hidden characters there are and which kinds. The preview shows each one as a colored label, such as ZWSP for a zero width space or NBSP for a no-break space, so you can see exactly where they are. Hold the pointer over a label to see the full name.
- The table lists the line and column of each one with its name, Unicode code and kind, which helps when you need to fix the original file.
- Copy the Clean text. Zero-width, format and control characters and the blank letters are removed, and unusual spaces are turned into normal spaces; untick Turn unusual spaces into normal spaces to keep them as they are.
The cleaner is careful with text that needs joiners. Emoji such as families use the zero width joiner, the flags of England, Scotland and Wales are spelled with invisible tag characters, and words in scripts such as Hindi, Bengali, Tamil, Arabic and Persian use the joiner and non-joiner on purpose; with Keep joiners ticked these are listed but kept.
Showing hidden characters in other programs
- Microsoft Word: press Show/Hide ¶ on the Home tab (Ctrl+Shift+8). A no-break space appears as a small raised circle, like a degree sign.
- Excel and Google Sheets:
=SUBSTITUTE(A1, CHAR(160), " ")turns no-break spaces into normal spaces, and=CLEAN(A1)removes the old control characters, but neither removes zero width spaces. - Visual Studio Code: it highlights invisible and look-alike Unicode characters in code with a colored box.
Tips
- Check before you paste into a password or code field. If a copied code does not work, paste it here first to see whether something hidden came along.
- Clean text for word counts and duplicate checks. Remove hidden characters before using the word counter or remove duplicate lines, so lines that look the same are treated the same.
- Fix text copied from PDFs in two steps. Remove the hidden characters here, then join the broken lines with remove line breaks.
Your text stays on your device
Everything happens in your browser. The text you paste is never uploaded to this website or anyone else, and it is not saved; only your settings are remembered on this device.
Frequently asked questions
How do I copy an invisible character?
Press Copy on any of the characters at the top of the page and paste it where you need it. To copy several in a row, choose the character and how many you want under “Blank text”, then press Copy blank text.
Which invisible character should I use?
Start with the Hangul Filler, which Unicode classes as a letter, so a check that only removes spaces does not remove it. If an app removes it, try the Braille Pattern Blank (a symbol) or the Zero Width Space (a format character). Each app decides for itself which characters it accepts, so trying one from another class is the quickest way to find one that works.
How do I find hidden characters in text?
Paste the text into the box under “Find hidden characters”. Every hidden character is shown as a colored label in the preview, and the table lists its line, column, code and name. The clean text, with them removed, is ready to copy below.
What is a zero width space?
The zero width space (U+200B) is a character that takes up no room at all. It marks a place where a long word or address may break onto the next line. Because it cannot be seen, a zero width space copied by accident can make two words that look the same compare as different, or make a password, code or search fail.
Will removing hidden characters break emoji or other languages?
Not with “Keep joiners in emoji and in Hindi, Arabic and similar scripts” ticked, which is the default. Emoji such as families are built with the zero width joiner, the flags of England, Scotland and Wales with invisible tag characters, and words in scripts such as Hindi, Bengali, Tamil, Arabic and Persian use the joiner and non-joiner on purpose, so those are kept while the rest are removed.
Is my text uploaded?
No. The text is checked in your browser and is never sent to this website or anyone else. Only your settings are saved on this device.