Zero-Width Space Remover

Find and delete the zero-width space (U+200B) and the other characters that hide in copied text without showing up on screen. Paste, click Clean, copy. Everything runs in your browser.

Characters, not words: this cleans hidden characters only. Anthropic says Claude's text watermark is a word-choice pattern, so character cleaning does not remove it. Details.

Remove Zero-Width Spaces Online

0 characters · 0 words · 0 hidden characters to clean

Options

Last updated:

What Is a Zero-Width Space?

The zero-width space (ZWSP, U+200B) is a Unicode character with no width and no glyph. It tells text layout that a line may break at that point without showing a space. That makes it useful for scripts written without spaces between words and for long strings such as URLs, and it also makes it easy to copy into your text by accident.

Where Zero-Width Spaces Come From

  • Copying from web pages and chat interfaces that use them for line breaking.
  • CMS and editor features that insert them while formatting.
  • Word processors and PDF conversions.
  • Messaging apps and spreadsheets that pass text along unchanged.
  • People or tools that add them on purpose, for example to break up a keyword or to tag a piece of text.

How to Tell If Your Text Has One

The usual signs are a cursor that needs an extra key press to cross a gap, a string whose length is longer than what you can see, a search that misses a word that is clearly there, and a lookup or login that fails for no visible reason. In JavaScript, "a\u200Bb".length is 3 even though it looks like two letters. Paste the text into the tool above and click Scan to see every zero-width character as a labelled tag.

How to Remove Zero-Width Spaces

Paste your text into the tool above and click Clean Text. If you need to do it somewhere else, these one-liners remove U+200B only:

WhereHow
Excel=SUBSTITUTE(A1,UNICHAR(8203),"")
Google Sheets=REGEXREPLACE(A1,"\x{200B}","")
VS Code (Find and Replace with regex on)Find \u200B and leave Replace empty
JavaScripttext.replace(/\u200B/g, '')
Pythontext.replace('\u200b', '')
Linux terminalperl -CSD -pe 's/\x{200B}//g' file.txt prints the cleaned text, so redirect it to a new file

ZWSP, ZWNJ, ZWJ, Word Joiner and BOM Compared

Several zero-width characters look alike but do different jobs, which is why deleting all of them blindly can damage real text.

CharacterCode pointWhat it doesSafe to delete?
Zero-width spaceU+200BAllows a line break and shows nothingAlmost always
Zero-width non-joinerU+200CStops neighbouring letters from joiningNot in Persian, Urdu or Indic-script text
Zero-width joinerU+200DJoins letters, or builds emoji sequencesNot inside emoji or Indic-script text
Word joinerU+2060Forbids a line breakUsually
Byte order markU+FEFFFile signature at the start of a file, or a legacy no-break joinerYes inside text; some programs, such as Excel opening a UTF-8 CSV, use it at the start of a file

The tool above cleans this whole family in one pass, and Safe mode keeps ZWNJ and ZWJ only where they belong.

Frequently Asked Questions

Is a zero-width space an AI watermark?

Anthropic says Claude's text watermark is a pattern in word choice rather than hidden characters, so a zero-width space in AI text most likely arrived through copying and pasting or another tool. The Claude Watermark Remover page explains the details.

Why does a zero-width space break my formulas, URLs or logins?

It is a real character, so two strings that look identical are different to a computer. Any lookup, redirect or login that compares them exactly will fail.

Can I remove only zero-width spaces and keep everything else?

This tool cleans the whole family of invisible characters at once. To remove U+200B alone, use one of the snippets in the table above.

Is it safe to paste private text?

The text is processed in your browser and is not sent to our server. You can check that in your browser's Network tab while you use the tool.

More free tools