Text & AI Writing
Text cleaner & line tools
Paste a list or a block of text, tick the clean-ups you need and copy the result. Free, no signup, instant results.
- Free, no sign-up
- Instant results
- No watermark
Your text
Clean up
Rearrange and format
For example , or a space. Use \n for a new line.
Result
Table
What the text cleaner does
It tidies a list or block of text line by line. You can trim stray spaces, collapse repeated spaces, drop empty lines, remove duplicate lines, find and replace (with optional regular expressions), sort or shuffle, add text to the start or end of every line, number the lines, or join everything into one line with a separator you choose.
The steps always run in this fixed order: trim, collapse spaces, remove empty lines, remove duplicates, find and replace, sort, prefix and suffix, numbering, then join. Knowing the order makes the result predictable. For example, duplicates are removed before sorting, and the prefix is added after sorting.
How to use it
- Paste your text into the box, one item per line. A column copied from a spreadsheet works as-is.
- Tick the clean-ups you need under Clean up.
- Add a find and replace if you want to change text inside lines.
- Pick a sort, a prefix or suffix, numbering, or a join separator under Rearrange and format.
- Check the lines-before and lines-after counts, then copy the result or download it as a text file.
Worked example: a clean email list
Paste these six lines, which include a blank line, stray spaces and repeats in different capitals:
asha@example.com Rahul@Example.com rahul@example.com meena@example.com asha@example.com
Tick trim, collapse spaces, remove empty lines and remove duplicates. Choose A to Z, put a single quote ' in both the start and end boxes, and join with a comma and a space. The tool reports 6 lines before, 3 after and 2 duplicates removed, and gives:
'asha@example.com', 'meena@example.com', 'Rahul@Example.com'
That line can go straight into a SQL IN (...) list. Duplicates are case-insensitive unless you tick "Duplicates are case-sensitive", so the first spelling seen, Rahul@Example.com, is the one kept.
Good jobs for it, and its limits
It suits mailing lists, product names, SKU codes, tags, keywords and log lines. It works on lines, not on columns, so for a multi-column CSV use the spreadsheet converter first.
"A to Z" is a text sort, so "item 10" comes before "item 9". "Numbers, smallest first" reads a number only at the start of a line. Lines that don't begin with a number go to the end. Shuffle is random each time, so copy the result before changing anything.
Frequently asked questions
How do I wrap every line in double quotes and commas?
Type " in the start box and ", in the end box. Or put " in both boxes and join with a comma.
Can I use regular expressions?
Yes, tick "Find is a regular expression" and use $1, $2 in the replacement for captured groups. An invalid pattern shows an error and leaves your text unchanged.
How do I put a blank line between items?
Type \n\n in the join box. The tool reads \n as a new line and \t as a tab.
Is find and replace case-sensitive?
Only when "Match case" is ticked.
Privacy
Free, no signup, instant results. It works for customer email lists and internal notes.