Text cleaner & line sorter
Trim whitespace, remove empty or duplicate items, sort naturally, or reverse a list. Choose line, comma, semicolon, tab or custom separators for input and output.
Find & replace in input
Undo: Ctrl/Cmd+Z · Redo: Ctrl/Cmd+Shift+Z or Ctrl+Y. Up to 20 steps and 4 million retained characters in this tab. Clear discards history.
Separators are literal text, not CSV quoting or regular expressions.
Three small steps.
- Paste a list or load a local text file.
- Choose input and output separators, whitespace, duplicate, case, and ordering options.
- Clean the text, review it, then copy or download your list.
A few things to know.
Input and output are limited to 1 million UTF-16 units; text files must be smaller than 4 MB. Custom separators contain 1–20 UTF-16 units and are literal text, not CSV quoting or regular expressions. Operations run in this order: trim, collapse spaces, remove empty lines, deduplicate, then reorder. The first duplicate is kept. Sorting uses the selected language with natural numeric order. Choose English, Simplified Chinese, Hindi, Spanish, French, Arabic or Bengali. Line-break input accepts CRLF, CR and LF; line-break output uses LF. Items can instead be joined with another separator.
How your privacy works →A little more clarity.
Will Apple and apple be treated as duplicates?
Only if Ignore case is selected. By default, duplicate matching is case-sensitive. Trimming happens before duplicate matching when enabled.
Can I keep the original order?
Yes. Keep original order is the default. You can also choose ascending, descending, or reverse order. The original input remains separate from the result.