Zero-width characters are the best-known kind of invisible character. They are real characters with real jobs, but they take up no space on the screen. Most people only learn they exist when something breaks.
This guide explains each one, why it exists, when it is needed and when it is safe to remove.
What “zero-width” means
Every character on your screen normally has a width: an “m” is wide, an “i” is narrow, a space is a gap. A zero-width character has no width at all. It sits between two visible characters and changes how they behave, without drawing anything itself.
Because it draws nothing, you cannot select it on its own with a mouse, and you will not notice it when reading. Software notices it, though. To a computer, “hello” with a zero-width character in the middle is a different word from “hello” without one.
The main zero-width characters
Zero-width space
This marks a place where a line is allowed to break. It is useful inside very long words, web addresses or strings of characters that would otherwise run off a narrow screen. On a wide screen it does nothing visible. On a narrow one, the line wraps at that point.
Zero-width non-joiner
This tells the software not to connect two letters that would normally join. It matters in scripts where letters change shape depending on their neighbours. In Persian, for example, it is part of correct spelling for many common words.
Zero-width joiner
This does the opposite: it asks two characters to join. It is used in scripts written in connected letters, including Arabic and Urdu, and in several South Asian scripts. It is also what holds many emoji together. A family emoji, or an emoji showing a person with a job, is often several simpler emoji linked by zero-width joiners.
Word joiner
This stops a line break at a point where one would otherwise be allowed. Think of it as invisible glue that keeps two parts together on the same line.
Byte order mark
This is a marker that some programs place at the very beginning of a text file. In the middle of a text it once acted as a zero-width no-break space, which is why it is counted in this family. Today its common role is as a stray character at the start of exported files and pasted text.
Close relatives that are also invisible
- Soft hyphen. Marks where a word may be split. It shows a hyphen only if the word actually breaks at the end of a line.
- Direction marks. Invisible signs that tell software whether nearby text runs left to right or right to left.
- Invisible math operators. Used in mathematical text to mark things like an unwritten multiplication sign.
Our broader guide on hidden characters in copied text covers these and the special spaces that look like ordinary ones.
Why they end up in your text
- Copying from web pages. Designers insert break points so long words fit on phones.
- Typing in certain languages. Keyboards for some scripts insert joiners and non-joiners as part of normal typing.
- Emoji. Combined emoji contain joiners by design.
- Documents and PDF files. Layout software adds break and no-break helpers.
- Exported files. A byte order mark at the start of a file can travel into whatever you paste.
- Deliberate marking. Invisible characters can be placed in a text on purpose, for example to tell copies of a document apart. This is possible, but in everyday life accidental copying is a far more common cause.
What can go wrong
- A search or filter does not find a word that is plainly on the screen.
- A username, email address or code is rejected, or does not match the saved one.
- A character limit is reached sooner than expected.
- Two entries in a list look identical but are treated as different.
- A line of code or a data file fails with an error that points at nothing visible.
- A link or file name behaves differently from how it reads.
When you should keep them
Removing every zero-width character is not always right. Keep them when:
- the text is in Urdu, Arabic, Persian or another script that uses joiners and non-joiners as part of spelling,
- the text contains combined emoji that you want to stay in one piece,
- the text is already displayed in its final place and is wrapping correctly.
If you strip joiners from these texts, letters may take the wrong shape, words may run together or fall apart, and one emoji may split into several.
When it is safe to remove them
Remove zero-width characters when the text is headed somewhere that expects plain characters only:
- usernames, email addresses, codes and reference numbers,
- spreadsheet cells and database fields that will be searched or matched,
- code, commands and configuration files,
- web addresses and file names,
- plain English text where no joiners are needed.
How to detect and remove them
- Open the Hidden Character Remover and paste your text.
- Press Scan. The tool names each hidden character it finds and shows a count.
- If your text needs joiners, tick “Keep zero-width joiners (needed for Urdu, Arabic, Persian and some emoji)”.
- Press Clean, then Scan again to confirm.
- Copy or download the result.
Everything happens inside your browser. The text is not uploaded.
You can also spot zero-width characters by hand. Place the cursor before a suspect word and press the right arrow key once per letter. If the cursor seems to stay still for one press, it has just stepped over something invisible.
Common myths
“Zero-width characters mean the text was written by AI”
They do not. They come from copying, formatting, keyboards and emoji. They are not a reliable sign of who or what wrote a text. A style estimate is a separate matter, which our AI Checker handles by looking at wording.
“They are a kind of virus”
They are ordinary characters defined in the same standard as letters and digits. They cannot run anything. The real risk is confusion: text that does not match, or a name that is not quite what it appears to be.
“Removing them is always harmless”
Not for languages and emoji that depend on them. Scan first, and keep joiners when you need them.
In short
Zero-width characters are small, invisible helpers. In the right place they make text wrap well and display correctly. In the wrong place they break searches, forms and code. Know which ones your text needs, clean the rest before pasting into strict places, and follow the routine in our guide on cleaning text before pasting.