Whitespace & Invisible Character Cleaner

Trim lines, collapse repeated spaces, remove blank lines and strip invisible zero width and nonbreaking spaces from copied text.

Runs on your device

Result

Results appear here as you type.

What it does

Text copied from PDFs, websites and chat apps often hides nonbreaking spaces and zero width characters that break code, CSV imports and search. This cleaner removes them.

How to use it

  1. Paste the text.
  2. Tick the cleanup rules you want.
  3. Copy the cleaned text.

Example

The example fills in realistic values and runs the tool. Select Try an example above to see it.

When it helps

  • Fixing "invisible" errors in pasted code.
  • Tidying text copied from PDFs.
  • Preparing data for import.

Questions

What are zero width characters?

Characters such as U+200B that take up no space but still exist in the text. They can make two identical looking strings unequal.

Will line breaks be removed?

Only empty lines, and only if you tick that option.

More text & writing tools

See all 20

People also use

Browse all 200 tools