How to use the Text Cleaner
- Paste your text into “Your text”.
- Choose the cleaning steps you want. The default settings remove extra spaces, trim each line, collapse blank lines and strip invisible characters.
- Check the cleaned version and the before/after statistics.
- Click “Copy result” to copy the cleaned text.
Examples
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
Wow!!! Really??? Wait.... ok,, fine
Wow! Really? Wait... ok, fine
apples oranges pears
apples oranges pears
Before and after
The table below the tool compares your original text with the cleaned version: total characters, lines, and spaces or tabs. The “Change” column shows how many were removed, so you can check that a cleanup did what you expected before you copy it.
Choosing the right steps
For prose and articles, the defaults are usually right: single spaces, trimmed lines, and one blank line between paragraphs. For lists, turn on Remove all empty lines. For chat messages or social posts written in a hurry, Fix repeated punctuation tidies up “!!!” and “???”. If you need to keep indentation, such as in code or poetry, turn off Remove extra spaces and Trim lines.
Related text tools
After cleaning a list, remove repeated items with Remove Duplicate Lines. To see how many words and characters remain, use the Word Counter.
Common uses
- Cleaning text copied from PDFs, which often contains double spaces and broken line spacing.
- Preparing text for a CMS, an email template or a social media post.
- Removing invisible zero-width characters that break searches, comparisons or code.
- Tidying lists before importing them into a spreadsheet or another tool.
- Normalising spacing in translations or documents edited by several people.
Limitations
- The cleaner does not join lines that a PDF split in the middle of a sentence; that would risk merging separate paragraphs.
- “Remove extra spaces” also replaces tabs with single spaces, which removes tab-based alignment and indentation.
- “Fix repeated punctuation” keeps “?!” and three-dot ellipses, but it would also change intentional repetitions such as “!!” in a quote.
- Invisible characters used by some languages, such as the zero-width non-joiner in Persian, are deliberately kept.