Text Cleaner
Remove extra spaces, empty lines, and invisible characters from copied text. Persian ZWNJ characters always stay.
Runs on your device.
How to Use It
- Paste your text into the input box.
- Turn the rules you want on or off.
- 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.
Related Tools
- Persian Text NormalizerChange Arabic yeh and kaf to Persian, remove tatweel and extra ZWNJ, and convert digits to Persian or Latin. You see every change before you copy.
- Remove Duplicate LinesRemove repeated lines from a list and keep the first copy of each line in its original order. You can ignore spaces at the start and end of a line, and letter case.