How to use Clean text and lines
Paste text and select the actions you want. More options controls case-insensitive duplicate matching and sorting.
Actions run in this order: clean spaces, remove empty lines, deduplicate, join lines, then sort. Your original stays in the input box. Copy the result or save a text file.
Two identical lines can be reduced to one, with surrounding spaces trimmed during deduplication.
Frequently asked questions
Can I apply several actions?
Yes. Their order is shown above the result.
Is text uploaded?
No. It is processed in this browser only.
Reviewed: 2026-10-04 · Report an issue