Line Sorter & Deduplicator

Sort lines alphabetically, numerically, or by length. Remove duplicate lines. Shuffle, reverse, and filter lines.

Free Always No Account Needed 100% Client-Side

About this tool

Working with lists of text is a common developer and data task. This tool provides a full suite of line operations.

Sorting: - Alphabetical (A→Z / Z→A) - Numeric (ascending/descending) - By line length (shortest/longest first) - Natural sort (handles "file10" after "file9") - Case-insensitive sort option

Deduplication: - Remove exact duplicate lines - Case-insensitive deduplication - Remove empty lines - Trim whitespace before comparing

Other operations: - Reverse line order - Shuffle (random order) - Prefix/suffix each line with a string - Filter lines containing a keyword - Number each line - Join lines with a custom separator

Frequently Asked Questions

What is natural sort order?
Natural sort treats embedded numbers as numbers, not text. 'file10' comes after 'file9' (not before 'file2').
Is deduplication case-sensitive by default?
Yes. 'Apple' and 'apple' are treated as different lines by default. Enable case-insensitive mode to treat them as duplicates.
Can I sort a list of numbers?
Yes. Use numeric sort to sort by number value (so 10 comes after 9, not after 1).
How do I sort and deduplicate a list of emails?
Paste your list, enable case-insensitive deduplication, and choose alphabetical sort. Download or copy the result.

Related Tools