Text Cleaner

Trim spaces, remove empty lines and duplicates, sort and change case in one pass, for lists copied from spreadsheets and documents.

Runs in your browser — nothing is uploaded

About the Text Cleaner

Lists copied from spreadsheets, PDFs and web pages often arrive with stray spaces, blank lines and repeated entries. Cleaning them by hand is slow and error-prone, especially for hundreds of items.

Paste the text, one item per line, and choose the steps you want. The cleaner applies them in a fixed order, so the result is predictable and repeatable.

FAQ

Text Cleaner — frequently asked

In what order are the options applied?

Trim, collapse spaces, lowercase, remove empty lines, remove duplicates, then sort. This order matters: trimming first means a line with only spaces is removed as empty.

Are duplicates case-sensitive?

Yes, unless you choose lowercase first. Apple and apple are different lines by default. Turn on lowercase to treat them as duplicates.

How does sorting work?

Lines are sorted alphabetically using English locale rules, so accented letters sort next to their base letters. Numbers sort as text, so 10 comes before 2.

Can I clean a comma-separated list?

Paste it as one line first and convert the commas to line breaks, or use the CSV converter for proper tabular data.

Will this change the text inside each line?

Only the options you choose. Trim and collapse change spacing, lowercase changes letter case, and the rest affect whole lines. The words inside lines are kept as they are.

Is my text stored?

No. The cleaning runs in your browser and nothing is saved.

    Report an issue