Invisible Character Remover

Finds and removes hidden characters such as zero-width spaces, soft hyphens and stray control characters, and tells you how many of each it found. Use it when copied text will not match in a search, has odd gaps, or behaves strangely in a spreadsheet or code file.

Up to 1 MiB.

Options

How to use the Invisible Character Remover

  1. Paste text that behaves strangely: words that do not match in a search, unexpected gaps, or text copied from websites and chat apps.
  2. Choose which invisible characters to remove. The status line shows how many of each type were found.

Character types

  • Zero-width spaces and byte order marks (U+200B, U+FEFF and similar) — removed by default.
  • Soft hyphens (U+00AD) — removed by default.
  • Control characters — removed by default; tabs and line breaks are kept.
  • Blank filler letters such as the Hangul filler — removed by default.
  • Text direction marks — kept by default, because Arabic and Hebrew text can need them.
  • Zero-width joiners — kept by default, because they build emoji such as 👨‍💻 and are needed in Persian and Indic scripts.
  • No-break spaces can optionally be replaced with normal spaces.

Limitations

  • Variation selectors and tag characters are not removed, because they are part of emoji.

Worked examples

Hidden characters in copied text

Input

pass​word, co­operate, total

Result

password, cooperate, total
Remove direction marks too

Input

abc‮def‎

Result

abcdef

Practical uses

  • Finding why two words differ

    A developer sees two words that look identical but do not match in a search. They paste both into the tool, and the status line reports a hidden zero-width space in one of them. Removing it explains the mismatch and fixes the comparison.

  • Cleaning text from a chat app

    An editor pastes a message from a chat app that has odd gaps and hidden marks. The tool removes zero-width spaces, soft hyphens and control characters by default. The status line lists how many of each type were found, so the editor knows what was cleaned.

  • Fixing a pasted password or code

    Someone pastes a code into a form and keeps getting an error. A hidden character had come along with the copy. They paste the code into the tool, copy the cleaned version back and the form accepts it.

Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.