Text Formatter
Paste messy text below, tick the cleanups you want — extra spaces, empty lines, duplicates, sorting — and hit Apply. One click, done.
Copied text from a spreadsheet, an email thread, or a PDF that came out looking like a mess? Paste it in above, pick your cleanups, and get tidy text back in one click.
How to use the text formatter
- Paste your text into the box above — it can be as messy as you like.
- Tick the cleanups you want. Trimming, extra-space removal, and empty-line removal are on by default; add duplicate removal or A–Z sorting if you need them.
- Hit "Apply formatting" and the cleaned text appears right in the box.
- Copy the result with the copy button and paste it wherever it's going.
Why use a text formatter?
Messy text is everywhere — double spaces from Word documents, blank lines from PDF copy-pastes, repeated rows from spreadsheet exports, name lists that need alphabetical order. Fixing all that by hand is slow and easy to get wrong, especially in long lists. The formatter does the boring part for you: it strips the junk, drops the repeats, and sorts everything neatly. What took ten minutes of fiddling becomes one click.
Frequently asked questions
Is the text formatter free?
Yes — it's completely free with no sign-up and no limits. Paste your text, tick the cleanup options you want, and hit Apply. Nothing you paste is ever uploaded.
In what order are the formatting options applied?
Trim each line runs first, then extra spaces are collapsed, then empty lines and duplicates are removed, and sorting A–Z runs last. That order means sorting and dedupe work on clean, comparable lines.
Will "sort lines A–Z" treat uppercase and lowercase differently?
No. Sorting compares lines case-insensitively, so "apple" and "Banana" sort the way you'd expect: apple first, then Banana.
Does "remove duplicate lines" keep the first copy?
Yes. The first time a line appears, it stays — later repeats of the same line are removed. Your original line order is kept unless you also tick the sort option.