Hidden Characters: Invisible Unicode Explained, With a Free Checker
Hidden characters break passwords, searches and spreadsheets without showing up on screen. Here's what they are, where they come from, and a free checker to find them.
Short answer: a hidden character is a Unicode character that takes up space in a piece of text but shows nothing on screen. The most common ones are the zero-width space (U+200B), the zero-width joiner (U+200D), the non-breaking space (U+00A0) and the byte order mark (U+FEFF). They slip in when you copy text from websites, PDFs, Word or chat apps, and they can break searches, passwords, spreadsheets and code. You can find them by pasting your text into the checker below, or by turning on “show hidden characters” in your editor.
Check Your Text for Hidden Characters
Paste any text into the box and press Check. The checker runs entirely in your browser, so nothing you paste is sent to us or anyone else. It lists every invisible or unusual space character it finds, and gives you a cleaned copy with the zero-width characters removed and odd spaces turned into normal ones.
What Is a Hidden Character?
Every letter, number, emoji and space on your screen is stored by your computer as a number, using a standard called Unicode. Unicode covers almost every writing system in the world, which means it also needs characters that aren’t letters at all: instructions that tell the computer where a line may break, which way the text runs, or which emojis should be joined together.
Most of these “format” characters have no shape of their own, so you can’t see them. That’s fine when they’re doing their job. The trouble starts when they end up somewhere they shouldn’t, like the middle of a password, a product code or a line of computer code, where an invisible character means two strings that look identical are actually different.
The Most Common Invisible Unicode Characters
| Character | Code | What it does | Where you’ll meet it |
|---|---|---|---|
| Zero-width space | U+200B | Marks a possible line break, no visible space | Text copied from websites and apps |
| Zero-width non-joiner | U+200C | Stops letters joining | Persian, Hindi and other scripts |
| Zero-width joiner | U+200D | Joins characters together | Combined emojis, such as families |
| Word joiner | U+2060 | Stops a line breaking, no visible space | Typesetting and web text |
| Byte order mark | U+FEFF | Marks how a file is encoded | Start of files from Windows programs |
| Non-breaking space | U+00A0 | A space that stops a line break | Word, web pages, Mac Option + Space |
| Soft hyphen | U+00AD | A hyphen that only shows at a line break | Copied documents and PDFs |
| Right-to-left override | U+202E | Shows the following text backwards | Right-to-left languages; disguised file names |
| Hangul filler | U+3164 | A blank Korean character | “Blank” usernames |
| Braille pattern blank | U+2800 | A Braille cell with no dots | “Empty” messages |
Zero-width space (U+200B)
The zero-width space tells a computer where it’s allowed to break a line, without showing a visible space. It’s genuinely useful in languages such as Thai, Khmer and Japanese, which don’t put spaces between words, and in long web addresses. It’s also the hidden character people most often paste by accident, because some websites and content tools use it behind the scenes.
Zero-width joiner and non-joiner (U+200D and U+200C)
The zero-width joiner glues characters together. It’s the secret behind many emojis: the “family” emoji, for example, is really several separate people emojis joined by zero-width joiners, and your phone draws them as one picture. The zero-width non-joiner does the opposite, stopping letters that would normally connect, which matters in scripts such as Persian and some Indian languages.
Non-breaking space (U+00A0)
Strictly, the non-breaking space isn’t invisible: it looks just like a normal space. The difference is that it stops a line breaking at that point, which is why word processors use it to keep things like “£5” or “10 kg” together. It causes problems because a computer treats it as a different character from a normal space, so a search for “10 kg” may not find “10 kg” written with a non-breaking space. On a Mac, Option + Space types one, which is how many people add them without realising.
Byte order mark (U+FEFF)
The byte order mark is an invisible character some programs put at the very start of a file to show how it’s encoded. Older versions of Windows Notepad, for example, saved “UTF-8” files with one. It’s harmless in most documents, but it can break web pages, CSV imports and scripts, where it shows up as stray characters such as “” at the top.
Blank characters: Hangul filler and Braille blank (U+3164 and U+2800)
These are the characters behind “blank” usernames and empty-looking messages. The Hangul filler comes from the Korean alphabet and the Braille pattern blank is a Braille cell with no dots, but both are treated as real characters rather than spaces, so some apps accept them where a normal space would be rejected. Many platforms now strip or block them, so they don’t work everywhere.
Right-to-left override (U+202E)
This character tells the computer to show the text after it backwards, which is needed for languages such as Arabic and Hebrew that run right to left. It has a darker use too. Scammers have used it to disguise file names, so a file that’s really an .exe program looks as though it ends in .pdf or .doc.
Read Also:
Where Do Hidden Characters Come From?
You rarely type a hidden character on purpose. Most arrive when you copy and paste:
- Web pagesSites and content tools sometimes add zero-width spaces and non-breaking spaces behind the scenes.
- Word and PDFsWord uses non-breaking spaces and soft hyphens; PDFs can add odd spaces when you copy from them.
- Chat and social appsEmojis, blank names and formatted messages carry joiners and filler characters.
- Windows filesFiles saved as “UTF-8 with BOM” start with an invisible byte order mark.
- SpreadsheetsData exported from websites or banking apps often contains non-breaking spaces.
Social media is another common source. Instagram limits bios to 150 characters, and characters you can’t see, including the joiners inside some emojis, may count towards that limit. Our list of Instagram bio ideas has tips for making the most of the limit.
Why Hidden Characters Cause Problems
Because a hidden character changes the text without changing how it looks, it can cause problems that are hard to track down:
- Passwords and codes that “don’t work”. Paste a password or discount code with a zero-width space attached and it won’t match, even though it looks right.
- Searches that miss. A word with a hidden character in the middle won’t match a search for the normal word, in a document, a database or Google. If you’re trying to narrow your searches, our guide to excluding words from Google search covers the operators that help.
- Spreadsheet errors. In Excel, a number pasted with a non-breaking space is often treated as text, so formulas such as SUM ignore it. Excel’s CLEAN function doesn’t remove non-breaking spaces, and TRIM only removes normal spaces.
- Broken code. An invisible character in a program can cause errors that look impossible, because the line looks perfect on screen.
- Look-alike names. Two usernames, file names or web addresses can look identical but be different, which is why domain-name rules ban invisible characters in web addresses.
Trojan Source: the Cambridge Discovery
The most famous example of hidden characters being used as a weapon came from the University of Cambridge. In 2021, researchers Nicholas Boucher and Ross Anderson showed that Unicode’s direction-control characters could be hidden inside computer code so that the code a person reviews on screen is different from the code the computer actually runs. They called it Trojan Source.

The flaw was given two official vulnerability IDs, CVE-2021-42574 for the direction trick and CVE-2021-42694 for look-alike characters, and it was made public in November 2021. Because it affected the way text is shown, rather than one program, it touched almost every programming language. In response, many compilers and code platforms added warnings: GitHub, for example, now flags files that contain hidden bidirectional Unicode text, and code editors such as Visual Studio Code highlight invisible characters by default.
How to Find Hidden Characters
The quickest way is the checker at the top of this page. You can also make them visible in the programs you already use:
- Microsoft WordPress Ctrl + Shift + 8 (or the ¶ button) to show formatting marks. A non-breaking space shows as a small raised circle.
- VS CodeInvisible and ambiguous characters are highlighted with a box by default; hover over one to see its code.
- Notepad++View → Show Symbol → Show All Characters.
- Google DocsThere’s no built-in view, so paste the text into our checker.
- GitHubShows a warning on files that contain hidden bidirectional Unicode text.
Read Also:
How to Remove Hidden Characters
Once you know they’re there, getting rid of them is usually simple:
- Paste as plain text. Ctrl + Shift + V pastes without formatting in most Windows browsers and apps; on a Mac, use Cmd + Shift + V in browsers or Cmd + Option + Shift + V (“Paste and Match Style”) in Apple apps. It removes styling, but not always hidden characters, so check afterwards.
- Word: use Find and Replace. Type
^sin the Find box to find non-breaking spaces and replace them with a normal space. - Excel: use
=SUBSTITUTE(A1,CHAR(160)," ")to swap non-breaking spaces for normal ones, and=SUBSTITUTE(A1,UNICHAR(8203),"")to remove zero-width spaces. - Code editors: search with a regular expression such as
[-]and replace with nothing. - Files with a byte order mark: save them again as “UTF-8” rather than “UTF-8 with BOM”. In Notepad and VS Code you’ll find the option when you save or in the status bar.
Be careful with zero-width joiners in emojis and with non-joiners in languages such as Persian: removing them can change how the text displays. If you type a lot of repeated text, a text expander is a cleaner way to insert it than copying and pasting; our guide to automatic typing compares the options.
How to Type a Hidden Character on Purpose
Sometimes you do want one, for example to stop a line breaking in the wrong place:
- Non-breaking space: Ctrl + Shift + Space in Word; Option + Space on a Mac; Alt + 0160 on a Windows keyboard with a number pad.
- Zero-width space in HTML:
​, or the<wbr>tag for a line-break hint. - Any character on Linux: Ctrl + Shift + U, then the code (for example 200B), then Enter.
We’d avoid using blank characters to fake empty usernames or messages. Many apps treat it as a way to dodge their rules and remove or block it, and it makes your account harder for others to find or report.
Hidden Characters in Names and Words
Accented letters cause a related problem. Unicode can store a letter such as é in two ways: as one character, or as a plain e followed by an invisible “combining” accent. Both look the same, but a computer may not treat them as a match, which is one reason searches for names like Padmé, from who played Padmé in Star Wars, sometimes behave oddly. The same goes for the ñ in words such as quinceañera, which comes up in our profile of Mia Xitlali.
There’s a British twist here too. The flags of England, Scotland and Wales aren’t separate emoji characters. Each is a black flag followed by a run of invisible “tag” characters that spell out a code, such as “gbeng” for England, and your phone draws the right flag. If a device doesn’t support them, you see a plain black flag instead.
Read Also:
Frequently Asked Questions
What is a hidden character?
A character that’s stored in text but shows nothing on screen, such as a zero-width space, zero-width joiner or byte order mark.
What is the invisible character in Unicode?
There are several. The best known is the zero-width space, U+200B. Others include U+200C, U+200D, U+2060 and U+FEFF.
How do I find hidden characters in text?
Paste the text into the checker on this page, or turn on “show formatting marks” in Word (Ctrl + Shift + 8) or “show all characters” in your code editor.
How do I remove hidden characters?
Use the cleaned copy from our checker, or Find and Replace in Word or a code editor. In Excel, use SUBSTITUTE with CHAR(160) or UNICHAR(8203).
Why won’t my pasted password work?
It may have picked up a hidden character or extra space when you copied it. Try typing it by hand, or paste it into a plain text editor first.
What is a zero-width space used for?
It marks where a line may break without showing a space, which is useful in languages that don’t use spaces between words and in long web addresses.
Is a non-breaking space a hidden character?
It looks like a normal space, but computers treat it as a different character, so it causes many of the same problems.
What is Trojan Source?
A security flaw found by Cambridge researchers Nicholas Boucher and Ross Anderson, made public in 2021, in which hidden direction characters make code look different from what actually runs.
What is the blank character for usernames?
People often use the Hangul filler (U+3164) or the Braille pattern blank (U+2800). Many platforms now block them.
Why does “” appear at the start of my file?
That’s a byte order mark (U+FEFF) being read the wrong way. Save the file as UTF-8 without BOM to remove it.
Final Thoughts
Hidden characters are a small part of Unicode doing an important job, until they end up where they shouldn’t. If a password won’t work, a formula ignores a number or two words that look the same won’t match, an invisible character is worth checking for. Paste the text into the checker above, and you’ll know in seconds.
Sources: The Unicode Standard and Wikipedia’s articles on the zero-width space and other format characters; Wikipedia’s article on Trojan Source and the researchers’ site, trojansource.codes; Microsoft’s help for Word and Excel. Photo from Wikimedia Commons, credited under the image.


