Line Sorter & Deduplicator

Sort lines alphabetically, by length, remove duplicates, or shuffle. Free text line tool.

How to use: Paste lines of text, choose sort order (A–Z, Z–A, random, reverse), and copy.

How to Sort and Deduplicate Lines

Paste your text with one item per line into the input area. Choose your sort method: alphabetical (A-Z or Z-A), numerical, by line length, or random shuffle. Use the Deduplicate option to remove duplicate lines. The result is ready to copy with one click.

Common Use Cases

Clean up CSV data, sort lists of names or emails, remove duplicate entries from log files, alphabetize glossaries or word lists, randomize quiz questions, and sort configuration entries. The tool handles thousands of lines efficiently.

Frequently Asked Questions

How do I sort lines of text online?
Paste your text with one item per line. Choose your sort method (alphabetical, numerical, by length, or reverse) and click Sort. You can also remove duplicate lines and shuffle randomly.
Can I remove duplicate lines?
Yes. Click the Remove Duplicates button to eliminate all duplicate lines from your text, keeping only unique entries. This is useful for cleaning up lists, email addresses, and data sets.
Does it support case-insensitive sorting?
Yes. Toggle case-insensitive mode to sort lines without regard to uppercase/lowercase. 'Apple', 'apple', and 'APPLE' will be treated as identical for sorting purposes.