Text Cleaner and Formatter
To clean up text, add the .txt file, choose options such as collapsing repeated spaces, removing empty or duplicate lines, trimming lines, straightening curly quotes and removing invisible characters, and click Text Cleaner & Formatter. Unicode is normalized to NFC. It runs in your browser, so nothing is uploaded.
Remove extra spaces, empty or duplicate lines and invisible characters
Choose Files
or drop documents directly into this area
Quick facts
- Formats
- Text (TXT), Markdown (MD) or CSV → Text (TXT); several results come as one ZIP
- Where it runs
- In your browser, on your own device. Files are not uploaded.
- Size limit
- 600 MB per run on a computer, 200 MB on a phone or tablet
- Files per run
- Up to 50
- Last updated
How to use Text Cleaner & Formatter
Choose the text file (.txt, .csv or .md).
Switch on the cleaning options you want.
Click Text Cleaner & Formatter.
Download the cleaned _clean.txt file.
Features & Privacy
Fast & High Quality
Private: Files Never Leave Your Device
Batch Processing
Frequently Asked Questions
Collapse repeated spaces and tabs, remove empty lines, trim spaces at the start and end of lines, remove duplicate lines, replace curly quotes with straight ones and remove invisible control characters.
Zero-width spaces, word joiners, byte order marks, soft hyphens, direction marks and control characters. Zero-width joiners used in emoji and Indic scripts are kept.
Unicode is normalized to NFC, trailing spaces are removed, runs of blank lines are reduced to one, and the file ends with one line break, using LF line endings.
Lines must match exactly, including case and spaces, and the first copy is kept. Blank lines are never treated as duplicates. Combine it with trimming for looser matching.
Plain text files such as .txt, .csv or .md in UTF-8, UTF-16 or Windows-1252 encoding. The cleaned text is saved as a new file ending in _clean.txt.
No. Cleaning runs in your browser on your own device, so your text never leaves it. Files up to about 600 MB work on a computer and 200 MB on a phone.
Related Tools
Continue your workflow with these related tools: