Text Cleaner
Paste text, pick an action, and read the live result. One page now covers extra spaces, line breaks, duplicate lines, A–Z sort, shuffle, and character reverse.
hello world hello banana apple
About this tool
The old whitespace, line-break, duplicate, sort, and reverse URLs all land here. Collapse turns any whitespace into a single space. Sort and unique work line by line. Reverse flips characters, not words.
How to use
- Pick an action: Choose collapse, line breaks, unique lines, sort, randomize, or reverse.
- Paste the text: Drop messy copy or a list into the box.
- Read the live result: The output updates as you type or change the action.
- Copy the cleaned text: Select the result and paste it into your document or form.
Common use cases
- Flatten a pasted paragraph that has double spaces from a PDF.
- Turn a multiline note into one line for a form field.
- Deduplicate a list before importing it.
- Sort or shuffle lines, or reverse a string for a quick check.
Tips
- Collapse and remove-line-breaks destroy intentional newlines. Switch mode if you still need them.
- Randomize is not a secure shuffle; it is for casual lists.
FAQ
Does collapse remove all spaces?
No. It keeps a single space between words and trims the edges.
Where did the other text-clean pages go?
Line breaks, duplicates, sort, and reverse redirect here as actions.
Are newlines kept in unique or sort?
Yes. Those modes work on lines, not on a flattened paragraph.
Is my text uploaded?
No. Cleanup stays in the browser.