What is Text Cleaner?
Text Cleaner cleans up messy text: trims lines, squeezes spaces, removes blank lines and invisible characters, and straightens curly quotes. Options run in a fixed order: invisible and control characters, special spaces, quotes and dashes, tabs, then trimming, squeezing, blank lines and joining. Tabs and spaces inside words are only squeezed, not removed.
How It Works
- Enter any text, with the clean-up options you want ticked in the input fields on this page.
- Press the button to run Text Cleaner.
- Read the cleaned text, ready to copy or download in the result area, and copy or download it.
Common Uses
- Fixing text pasted from a PDF, web page or chat.
- Removing hidden zero-width characters that break code or search.
- Turning a block of lines into one tidy line.
Good to Know
The result updates as you tick options, so try them one at a time.
How it works
Paste the text and tick the clean-ups you want. The result updates at once, and you can copy it or download it as a .txt file.
Typical settings: trim lines, squeeze repeated spaces, collapse repeated blank lines, remove invisible characters. To turn a block into one line, tick Join all lines.
Worked example
Output was compared with a separate Python version of the same steps on 250 random texts and random combinations of all options, including zero-width characters, soft hyphens, control characters, non-breaking and other special spaces, curly quotes, dashes, ellipsis, tabs, blank lines and Windows or Linux line endings.
Limits
The steps always run in the same order: line endings, invisible characters, control characters, special spaces, quotes, dashes, tabs, trimming, squeezing, blank lines, then joining. Only spaces and tabs count as blank. Invisible characters inside emoji sequences (the zero-width joiner) are removed too, which can split a combined emoji. Up to 10 million characters.
Frequently Asked Questions
Why remove zero-width characters?
They are invisible but can break searches, comparisons, passwords and code.
Can I keep paragraphs?
Yes. Choose to collapse blank lines to one and do not tick Join.
Is my text uploaded?
No. It is processed in your browser.
What does Text Cleaner do?
Text Cleaner cleans up messy text: trims lines, squeezes spaces, removes blank lines and invisible characters, and straightens curly quotes. Options run in a fixed order: invisible and control characters, special spaces, quotes and dashes, tabs, then trimming, squeezing, blank lines and joining. Tabs and spaces inside words are only squeezed, not removed.
What do I need to enter in Text Cleaner?
Any text, with the clean-up options you want ticked.
Is my data private in Text Cleaner?
Your text stays in your browser and is not uploaded.
Is MyToolDock Text Cleaner free to use?
Yes, MyToolDock Text Cleaner is 100% free with no registration, subscriptions, or limits. All features are fully unlocked.