Skip to main content

Remove Invisible Characters

Delete zero-width spaces, byte order marks and other characters you cannot see but your parser can.

Feedback

Key Features

  • Removes zero-width space, joiner and non-joiner
  • Removes the byte order mark and the word joiner
  • Removes soft hyphens and bidirectional control marks
  • Turns non-breaking and narrow spaces into ordinary spaces
  • Leaves every visible character in place

Benefits

  • Fix string comparisons that fail for no visible reason
  • Clean text pasted out of PDFs, spreadsheets and web pages
  • Stop invisible characters from breaking CSV and JSON imports
  • Remove the watermarking characters some tools inject

How to use this tool

1

Paste the text that is behaving strangely

2

Click Process

3

Copy the cleaned text back into your document or code

Frequently Asked Questions

How do I know I had invisible characters?

The usual symptoms are two strings that look identical but do not compare equal, a search that finds nothing, or a character count higher than what you can see.

Does it remove line breaks or tabs?

No. Line breaks and tabs are real whitespace and are kept. Use Remove Line Breaks if you want to unwrap paragraphs.

Related tools