HIDDEN CHARACTER GUIDE
Invisible Character Detector – Find Hidden, Zero-Width and Unicode Characters in Any Text Online Free
Have you ever copied two pieces of text that look exactly the same, only to find that a search fails, a formula returns an error, a login is rejected or a program refuses to run? The reason is very often an invisible character: a hidden Unicode symbol that takes up no visible space but still counts as part of the text. Our free invisible character detector is built to find them. Paste your text and the tool scans every character, highlights each hidden one with a colored badge, tells you its Unicode code point and name, shows its exact line and column, and rates how risky it is. It works as a zero width space detector, a hidden character finder, a non-printing character checker, a Unicode character inspector and a hidden text detector in one page. It finds zero-width spaces, joiners and non-joiners, byte order marks, soft hyphens, non-breaking spaces and other unusual spaces, bidirectional control characters, control characters, variation selectors, tag characters and blank-looking fillers. When you are ready, remove them with one click while keeping the characters that real languages need, then copy the clean text or download it. There is no signup, no limit and no upload, because everything runs in your browser.
ZW
Detect Zero-Width Spaces and Joiners
Find zero width space (U+200B), zero width non-joiner, zero width joiner, word joiner, soft hyphen and byte order mark characters. These are the usual suspects behind text that looks right but behaves wrongly, and they are invisible in almost every editor and web page.
␣
Find Non-Breaking and Unusual Spaces
Spot non-breaking spaces, thin spaces, em spaces, narrow no-break spaces and ideographic spaces that look like ordinary spaces but are different characters. They are the hidden cause behind many failed lookups, broken comparisons and import errors.
RLO
Catch Bidirectional Control Characters
Detect left-to-right and right-to-left marks, embeddings, overrides and isolates. Overrides can make text display in a different order than it is stored, which is why they are rated high risk in code, file names and links.
NUL
Reveal Control and Non-Printing Characters
Reveal null, escape, delete and other ASCII and C1 control characters that sneak in from binary data, terminals, exports and legacy systems. Each one is labelled by name so you know exactly what you are dealing with.
[ ]
See Hidden Characters Highlighted
The highlighted view places a badge exactly where each hidden character sits, color coded by risk. Hover over a badge to see the Unicode name and code point, so you can understand a problem in seconds instead of guessing.
✓
Clean, Mark and Report
Remove invisible characters with smart rules that protect Persian, Urdu and emoji, copy a version of your text with visible markers for debugging, or copy a plain-text report listing every character found with counts and positions.
What Are Invisible Characters? (Complete List with Unicode Codes)
Invisible characters, also called hidden characters, non-printing characters or zero-width characters, are real Unicode characters that do not draw any visible shape on screen. Some take up no width at all. Others take up space but look empty. They exist for good reasons: to control how text breaks across lines, to join or separate letters in languages such as Persian and Hindi, to set the direction of mixed left-to-right and right-to-left text, to mark the encoding of a file, and to build emoji sequences. The trouble starts when they end up somewhere they were not meant to be, because a computer treats them as ordinary characters even though a human cannot see them. The table below lists the invisible and look-alike characters that this detector looks for most often.
Common invisible characters, Unicode codes and risk levels
| Unicode |
Name |
Why it exists or appears |
Risk |
| U+200B | Zero Width Space (ZWSP) | Allows a line break inside long words and URLs; very common in copied web text | Medium |
| U+200C | Zero Width Non-Joiner (ZWNJ) | Stops two letters from joining; required in Persian, Urdu and some Indic spelling | Low |
| U+200D | Zero Width Joiner (ZWJ) | Joins characters; builds emoji sequences and some scripts | Low |
| U+2060 | Word Joiner | Prevents a line break at that point | Medium |
| U+FEFF | Zero Width No-Break Space (BOM) | Byte order mark at the start of UTF-8 or UTF-16 files | Medium |
| U+00AD | Soft Hyphen | Hyphenation hint, shown only when a word wraps | Medium |
| U+00A0 | No-Break Space (NBSP) | Appears in web pages, Word files and spreadsheets | Low |
| U+202F | Narrow No-Break Space | French typography, number grouping and time formats | Low |
| U+2000 to U+200A | En, em, thin, hair and other spaces | Typographic spacing | Low |
| U+3000 | Ideographic Space | Full-width space in Chinese, Japanese and Korean text | Low |
| U+3164 | Hangul Filler | Blank-looking character used where an empty value is wanted | Medium |
| U+2800 | Braille Pattern Blank | Blank-looking character from the Braille block | Medium |
| U+2061 to U+2064 | Invisible math operators | Mathematical typesetting | Medium |
| U+200E, U+200F, U+061C | Direction marks (LRM, RLM, ALM) | Fixes direction in mixed-language text | Low |
| U+202A to U+202E | Embeddings and overrides (RLO, LRO) | Forces display direction; abused for spoofing | High |
| U+2066 to U+2069 | Directional isolates | Isolates direction; abused in source code attacks | High |
| U+FE00 to U+FE0F | Variation selectors | Choose a glyph or emoji style | Low |
| U+E0000 to U+E007F | Tag characters | Emoji flag sequences; can also carry hidden text | Medium |
| U+0000 to U+001F, U+007F | ASCII control characters | Binary data, terminals, legacy exports | Medium |
Normal spaces, tabs and line breaks are not flagged, because they are expected in text. Everything else in the table is flagged, labelled and explained, and you can switch whole categories on or off in the settings if you only care about one kind of problem.
Why Do Invisible Characters Appear in Your Text?
Almost nobody types an invisible character on purpose. They arrive through copy and paste and through the tools that sit between you and your text. Knowing the usual sources helps you decide where to look and how to prevent the problem next time.
- Copying from websites: Content management systems and page builders insert zero-width spaces, non-breaking spaces and soft hyphens to control wrapping and layout. They come along when you select and copy a headline, a product name or an address.
- PDF and Word documents: Text extracted from PDFs often contains soft hyphens, strange spaces and control characters from the page layout. Word adds non-breaking spaces and special hyphens through its own formatting.
- Chat apps and social media: Messaging platforms and social networks add direction marks, joiners and variation selectors around emoji and mixed-language text.
- Spreadsheets and exports: A CSV saved as UTF-8 with a signature starts with a byte order mark, and exports from older systems can contain null and control characters.
- Copying from AI chatbots and editors: Rich text editors and chat interfaces sometimes add extra spacing characters when they render and copy formatted answers.
- OCR and scanned text: Optical character recognition can produce odd spaces and replacement characters when it is unsure about a glyph.
- On purpose: Some people insert hidden characters to create blank names, to watermark text, to dodge filters or to disguise links, which is another reason to be able to check.
How to Find Invisible Characters in Text (Step by Step)
You cannot find hidden characters by looking at them, which is exactly what makes them annoying. This tool does the looking for you. Follow these steps to detect invisible characters in any text.
- Paste your text: Put the suspicious text into the Paste text to scan box. It can be a single word, a username, a column of data, a whole article or a code file.
- Check the verdict: The result card tells you in plain language whether your text is clean, contains low-risk characters, contains hidden characters that can cause problems, or contains high-risk direction controls.
- Read the highlighted view: Every hidden character is shown as a colored badge exactly where it sits in the text. Hover over a badge to see its Unicode name and code.
- Study the Characters found table: See each unique character with its category, risk level, how many times it appears and the line and column of its first occurrences.
- Adjust what to scan for: Turn categories on or off if you only care about certain problems, such as zero-width characters or direction controls.
- Clean or export: Copy or download the cleaned text, copy a marked version for debugging, or copy a text report that you can paste into a ticket or message.
The scan updates live while you type or paste, so you never have to press a button. Because it checks every single character, a clean verdict is a strong sign that the problem you are chasing is somewhere else.
How to Read the Results: Risk Levels Explained
Not every hidden character is a problem. A zero width joiner inside an emoji or a zero width non-joiner inside a Persian word is correct and necessary. To save you from guessing, every character is given a risk level based on how often it causes trouble or can be abused.
Risk levels used by the invisible character detector
| Level |
What it means |
Typical examples |
Suggested action |
| High |
Can make text or code display differently from how a computer reads it |
Right-to-left override, embeddings, directional isolates |
Remove unless you can explain exactly why it is there |
| Medium |
Invisible and likely to break matching, parsing, search or copy and paste |
Zero width space, byte order mark, soft hyphen, control characters, blank fillers |
Usually remove |
| Low |
Often legitimate, but can still cause exact-match problems |
Non-breaking space, thin space, joiners, direction marks, variation selectors |
Keep for real language or emoji use, convert or remove otherwise |
The overall verdict always follows the highest risk found. If a single high-risk character appears, the verdict is high risk even when the rest of the text is only low-risk spaces.
What Is a Zero-Width Space (ZWSP) and How Do You Find It?
A zero-width space, written U+200B, is the best-known invisible character. It has no width and no visible shape. Its original job is to tell a layout engine that a line may break at that point, which is useful for languages written without spaces and for very long words or URLs. When you copy text from a web page, a document or a chat window, a zero-width space can quietly come with it.
The problems are subtle. Two usernames that look identical are not equal. A password copied from a message is rejected. A word with a hidden space inside it is not found by search. A character counter shows a higher number than you can count by eye. A product code pasted into a form fails validation. To find a zero width space, paste the text into the detector and look for the ZWSP badge. If you want to remove zero width space characters, leave Zero-width characters switched on and use the cleaned text box.
Non-Breaking Space vs Normal Space: Why Identical Text Does Not Match
A non-breaking space (U+00A0, often written as in HTML) looks exactly like a normal space, but it is a different character. It tells a browser not to wrap the line at that point, so you find it in web pages, Word documents and many spreadsheets. Spreadsheet users meet it all the time: a lookup that should match returns an error because one cell contains a non-breaking space and the other contains a normal one. The TRIM function in Excel removes extra normal spaces, but it does not remove a non-breaking space.
This detector marks every non-breaking space and every other unusual space as an NBSP, NNBSP, EMSP, THSP or similar badge. By default the cleaner converts them into normal spaces instead of deleting them, so your words do not stick together. You can switch that behavior off if you prefer to delete them.
Byte Order Mark (BOM, U+FEFF): The Hidden Character at the Start of Files
The byte order mark is a special character placed at the beginning of some text files to signal the encoding, most often UTF-8 with a signature. Many programs hide it, so you do not see it, but it is still there. It is a classic cause of three problems. A CSV import shows a strange first column name such as id because the program does not understand the signature. A script fails to parse the first line of a configuration or JSON file. A PHP file that begins with a BOM can send output before headers, which produces the well-known headers already sent error.
When the detector finds U+FEFF, it shows its position. If the position is line 1, column 1, you are almost certainly looking at a file signature. If it appears in the middle of text, it is acting as a zero width no-break space, usually the result of joining or copying text from several sources. Either way, the cleaner removes it.
Zero Width Joiner and Non-Joiner: When Hidden Characters Are Required
Removing every hidden character blindly can damage text. The zero width non-joiner (U+200C) is part of correct spelling in Persian and is also used in Urdu and several Indic scripts, where it keeps a letter from connecting to the next one. The zero width joiner (U+200D) is used to build emoji sequences, such as people with skin tones or family groupings, and to select forms in some scripts. Variation selectors, especially U+FE0F, decide whether a symbol is drawn as a colorful emoji or as a plain text symbol.
That is why the settings include Keep ZWNJ, ZWJ and emoji selectors when cleaning, which is switched on by default. The detector still shows these characters so that you know they are present, but the cleaner leaves them alone. Switch the option off only when you are sure the text should contain none of them, for example when preparing a plain username or an identifier.
Bidirectional Control Characters and Trojan Source Attacks
Languages such as Urdu, Arabic and Hebrew are written from right to left, and Unicode includes control characters that manage the direction of mixed text. Marks such as LRM and RLM are harmless and often necessary. Overrides and embeddings such as RLO and LRO, and the isolate characters, are different. They can reorder how text appears on screen without changing the order in which a computer reads it.
Security researchers showed that this can be abused in source code, an attack known as Trojan Source and tracked as CVE-2021-42574, where code looks harmless to a reviewer but behaves differently when it runs. The same idea has been used to disguise file names, so that a program appears to have a harmless extension, and to make links or messages look different from what they really contain. This is why the detector rates override, embedding and isolate characters as high risk and tells you to remove them unless you know exactly why they are there. Scanning pasted code, commit messages, file names and untrusted text before you act on them is a sensible habit.
Hidden Unicode in AI Text, Prompts and Tag Characters
You may have seen claims that AI chatbots secretly insert invisible characters into their answers as a watermark. In practice, hidden characters in pasted text usually come from the website, editor or app you copied from, so a detector can show you what is in your text but cannot prove who or what wrote it. Treat any claim that hidden characters reveal AI authorship with caution.
A more practical concern is hidden instructions. Unicode contains a block of tag characters (U+E0000 to U+E007F) that mirror plain ASCII letters but display as nothing in most apps. Researchers have shown that text can be hidden in them and that some AI systems may still read it, which can be used for prompt injection. Tag characters also have a legitimate use in some emoji flag sequences, so the detector rates them as medium risk and shows each one as a TAG badge with its code point. If you copy prompts, documents or web content into an AI tool, scanning it first is a cheap way to make sure that nothing unexpected is hiding inside.
Common Problems Caused by Hidden Characters (and How to Fix Them)
If you are not sure that a hidden character is behind your problem, check whether the symptom is on this list. These are the issues people most often report, and the matching fix.
Symptoms, likely hidden causes and fixes
| Symptom |
Likely hidden cause |
What to do |
| Two identical strings are not equal | Zero-width space or non-breaking space | Scan both values and clean them |
| VLOOKUP, XLOOKUP or MATCH returns an error although the value looks the same | Non-breaking space (U+00A0) or ZWSP | Convert unusual spaces and remove zero-width characters |
| Username, email or password is rejected | Hidden character copied with the text | Retype or clean the value before using it |
| CSV header shows  or the import fails on column one | Byte order mark (U+FEFF) | Remove the BOM or save as UTF-8 without signature |
| Syntax error such as unexpected character in code or JSON | ZWSP, BOM or NBSP inside the source | Detect the position and delete the character |
| A visible word cannot be found with search | Soft hyphen or ZWSP inside the word | Clean the text, then search again |
| Character count is higher than expected | Zero-width characters counted as characters | Scan to see how many hidden characters there are |
| File name or link shows reversed or odd text | Right-to-left override (U+202E) | Do not open it; remove the character and verify the source |
| A name looks empty but the field accepts it | Hangul filler or Braille blank | Scan to confirm and replace it with real text |
| Persian or emoji text breaks after cleaning | ZWNJ or ZWJ was deleted | Keep ZWNJ, ZWJ and emoji selectors switched on |
How to Detect Invisible Characters in Excel, Google Sheets, VS Code and Code
A dedicated detector is the fastest way to see what is hiding in a piece of text, but sometimes you need to deal with it where the data lives. These are reliable methods for the most common tools, including detecting a character by its code and removing it.
Microsoft Excel: compare the length of a cell with the length you expect, and use UNICODE with MID to reveal a character by position. SUBSTITUTE with CHAR or UNICHAR removes a specific one. The CLEAN function only removes the first 32 ASCII control characters, so it does not remove zero-width spaces or non-breaking spaces.
=LEN(A1)
=UNICODE(MID(A1, 3, 1))
=SUBSTITUTE(A1, UNICHAR(8203), "")
=SUBSTITUTE(A1, CHAR(160), " ")
Google Sheets: use REGEXREPLACE with a character class of hidden code points.
=REGEXREPLACE(A1, "[\x{200B}-\x{200D}\x{2060}\x{FEFF}]", "")
JavaScript and Python: match the zero-width characters, or check the Unicode category to list every format and control character together with its name.
// JavaScript
const hidden = /[\u200B-\u200D\u2060\uFEFF]/g;
const clean = text.replace(hidden, "");
const hasFormatChars = /\p{Cf}/u.test(text);
# Python
import unicodedata
for i, c in enumerate(s):
if unicodedata.category(c) in ("Cf", "Cc", "Zs") and c != " ":
print(i, hex(ord(c)), unicodedata.name(c, "UNKNOWN"))
VS Code, Notepad++ and the command line: VS Code can highlight invisible characters through its Unicode highlight settings and can render control characters when you turn that option on. In Notepad++, use View, Show Symbol, Show All Characters, or run a regular expression search for the code points. On Linux or macOS with GNU grep, a Perl-compatible pattern finds them line by line.
grep -nP '[\x{200B}-\x{200D}\x{2060}\x{FEFF}]' file.txt
All of these methods need you to know which code point to look for. The detector removes that guessing, because it checks the full list of known invisible characters at once and tells you which ones it found.
Invisible Characters vs Look-Alike (Homoglyph) Characters
It helps to know what this tool does and does not look for. An invisible character draws nothing, or draws a blank space. A homoglyph is a visible character that looks like another one, such as a Cyrillic letter that looks like a Latin letter, and it is used in lookalike domain names and spoofed text. Both can make two strings look the same while being different, but they are different problems. This detector focuses on invisible, zero-width, blank-looking, spacing, direction and control characters. If you suspect a visible look-alike character, check the text with a Unicode inspector or compare the code points of the suspicious word against a known-good copy.
Invisible Character Detector vs Other Methods
You can find hidden characters in several ways. The comparison below shows where an online detector fits compared with the alternatives.
Ways to detect hidden characters compared
| Method |
Speed |
Shows exact position |
Covers all invisible types |
Best for |
| This online detector | Instant | Yes, line and column | Yes | Quick checks with a clear explanation and one-click cleaning |
| Text editor symbol view | Fast | Visually | Partly | Spaces, tabs and control characters |
| Regular expression search | Fast | Yes | Only the codes you list | Developers who already know the code point |
| Spreadsheet formulas | Slow | Per character | Only the codes you list | Cleaning inside a worksheet |
| Hex editor | Slow | Yes, by byte | Yes | Binary files and encoding analysis |
Pro Tips for Working with Hidden Characters
- Scan before you paste into a live system: Check usernames, API keys, product codes, config values and database imports before they cause a failure.
- Compare with the marked copy: Copy text with markers to see the code points inline, which is perfect for bug reports and code reviews.
- Do not delete joiners in Persian, Urdu or emoji text: Keep the protective option on unless you are certain.
- Prefer converting spaces to deleting them: Converting non-breaking and thin spaces to a normal space keeps words readable.
- Treat high-risk results seriously: Direction overrides in code, file names or links deserve a second look, not just a quick clean.
- Check the source, not only the symptom: If hidden characters keep returning, find out which website, export or editor adds them and fix it there.
- Keep the original: Save the unmodified text before you replace data, especially when you are not sure whether a character was meaningful.
Free, Fast and Private Invisible Character Detector
This invisible character detector runs completely in your web browser. Your text is scanned on your own device, so it is never uploaded to a server, never stored and never shared. There is no account, no watermark, no daily limit and nothing to install, and it works on Windows, Mac, Linux, Android and iPhone. That makes it a safe choice for client data, internal documents, code and anything else that you would rather keep private.
Ready to check your text? Scroll back to the top, paste it in and see what has been hiding in it. If you also need to clean visible symbols, punctuation and emojis, try our special character remover, and explore the other free tools on our site for files, images and documents.