Skip to content

Zero Width Character

What to do
Zero width characters —
Result text
—
Main character type
—
Characters left
—
First hidden at position
—

A zero width character is a Unicode format character that takes no visible space, such as the zero width space U+200B. Paste text here to count and strip them: pass + U+200B + word shows 1 hidden character at position 5 and returns the clean word password. You can also generate them to copy.

About this tool

Hidden characters cause bugs that are hard to see: a pasted password that will not match, a spreadsheet lookup that fails, code that refuses to compile, or a username that looks identical to another. The usual culprit is a zero width space, joiner or byte order mark copied in from a web page, chat app or word processor. This page scans text for nine invisible format characters, tells you how many there are, which kinds, and where the first one sits, then gives you the cleaned text. A second mode does the opposite and produces zero width characters for blank-looking names or for breaking a long URL without a visible gap. Ordinary spaces, tabs and non-breaking spaces are left alone, because they have width.

How to use it

  1. Pick a mode

    Choose Find and remove to scan text, or Generate to make invisible characters.

  2. Paste or open text

    In scan mode, paste into the box or open a .txt file from your device.

  3. Read the breakdown

    The table lists each hidden character type and how often it appears; the result text is the cleaned version.

  4. Generate and copy

    In generate mode, choose the character and use the − and + buttons to set how many, then copy the result text.

Examples

A word split by a hidden space

What to do
Find and remove
Text to scan
pass​word

Result Zero width characters: 1
Result text: password
Main character type: Zero width space (U+200B)
Characters left: 8
First hidden at position: 5

  1. Scanned 9 UTF-16 code units for 9 invisible format characters.
  2. Found 1; removing them leaves 8 code units.

The text looks like password but fails a search or a login, because a zero width space sits after the fourth letter.

BOM, non-joiner and word joiners

What to do
Find and remove
Text to scan
Hello‌ world⁠⁠

Result Zero width characters: 4
Result text: Hello world
Main character type: Word joiner (U+2060)
Characters left: 11
First hidden at position: 1

  1. Scanned 15 UTF-16 code units for 9 invisible format characters.
  2. Found 4; removing them leaves 11 code units.

A byte order mark at the start, a non-joiner and two word joiners are removed, leaving the 11 visible characters.

Three zero width spaces

What to do
Generate
Character
Zero width space
How many
3

Result Zero width characters: 3
Result text: ​​​
Main character type: Zero width space (U+200B)
Characters left: 0
First hidden at position: 1

  1. 3 × Zero width space (U+200B) joined into one string; it takes no visible space when pasted.

Copy the result text to paste three invisible spaces, for example to keep a social profile field from showing as empty.

How it is calculated

hidden = count of code points in {U+200B, U+200C, U+200D, U+2060, U+FEFF, U+200E, U+200F, U+00AD, U+180E}

U+200B
zero width space, an invisible break opportunity
U+200C / U+200D
zero width non-joiner and joiner, which control how letters and emoji connect
U+2060 / U+FEFF
word joiner and the zero width no-break space, also used as a byte order mark

Each character of the text is compared with a list of invisible format characters named in the Unicode Character Database. Matches are counted by type and dropped from the copy returned as the result text; everything else is kept in order. The position of the first match is counted from 1. Generate mode repeats the chosen code point the number of times you set.

When not to use it

  • Do not strip joiners from Persian, Hindi or emoji text where they are part of correct spelling or emoji sequences.
  • Homoglyph tricks such as a Cyrillic a in place of a Latin a are visible characters and are not flagged here.

Common mistakes

  • Assuming a non-breaking space is zero width; it has normal width and is kept.
  • Removing a byte order mark from a file that a legacy program expects to begin with one.

Frequently asked questions

How do I type a zero width space?

Most keyboards have no key for it. On Windows you can type 200B then press Alt+X in Word, or simply switch to Generate mode here and copy the result text into wherever you need it.

Why does my password or search fail when the text looks right?

Copying from web pages, PDFs and chat apps can carry a zero width space or joiner along with the visible letters. The two strings then differ by a code point you cannot see. Scan the text here, then paste the cleaned result instead.

What is the difference between a zero width joiner and non-joiner?

The joiner, U+200D, asks neighbouring characters to connect, which is how several emoji combine into one family or profession emoji. The non-joiner, U+200C, stops a connection, which Persian and some Indic scripts use for correct spelling.

Is the byte order mark a zero width character?

Yes. U+FEFF was first defined as a zero width no-break space and is now mainly a byte order mark at the start of a file. Inside text, the word joiner U+2060 replaced it for that job.

Can I use zero width characters to leave a name blank?

Some apps accept a zero width space where a name is required, which makes the field look empty. Many platforms now trim or reject these characters, so the trick does not work everywhere.

Does this remove normal spaces or line breaks?

No. Only the nine invisible format characters in the table are removed. Spaces, tabs, line breaks and the non-breaking space all have width or layout meaning, so they stay.

Cite this tool

Using this tool in an assignment, article or report? Copy a citation, or a link for your website.

APA

Tools Directory Editorial Team. (2026, October 15). Zero Width Character. Tools Directory. Retrieved October 26, 2026, from https://tools.milunir.com/text-tools/fancy-and-stylish-text/zero-width-character/

MLA

Tools Directory Editorial Team. “Zero Width Character.” Tools Directory, 15 Oct. 2026, https://tools.milunir.com/text-tools/fancy-and-stylish-text/zero-width-character/. Accessed 26 Oct. 2026.

Chicago

Tools Directory Editorial Team. “Zero Width Character.” Tools Directory. Last modified October 15, 2026. Accessed October 26, 2026. https://tools.milunir.com/text-tools/fancy-and-stylish-text/zero-width-character/.

Link<a href="https://tools.milunir.com/text-tools/fancy-and-stylish-text/zero-width-character/">Zero Width Character – Tools Directory</a>