Skip to main content
HandyWeb

Text Cleaner

Remove extra spaces, empty lines, and invisible characters from copied text. Persian ZWNJ characters always stay.

Runs on your device.

Rules
Empty lines
0 characters0 bytes
0 characters0 bytes

How to Use It

  1. Paste your text into the input box.
  2. Turn the rules you want on or off.
  3. Check the number of changes for each rule, then copy the output.

Questions and Answers

Are ZWNJ characters removed?

No. ZWNJ and ZWJ are never removed, because Persian words and emoji need them. To fix wrong ZWNJ characters, use the Persian text normalizer.

Where do invisible characters come from?

From text copied from websites, Word, and PDF files. No-break spaces (NBSP), zero-width spaces (ZWSP), the BOM, and direction marks (RLM, LRM) are not visible, but they break search, counts, and code.

What does the Persian preset do?

It uses the default rules, and it also removes the direction marks (RLM, LRM, and ALM) that Word and some websites add to Persian text.

Good to Know

Removing tabs and leading spaces also removes the indentation of code and poetry. Turn those two rules off for code. To fix Arabic yeh, kaf, and digits, use the Persian text normalizer.

Source code of this toolReport a problem on GitHub