Sort & Remove Duplicate Lines

Paste a list of lines and sort, deduplicate, or remove blank lines.

What it's for

Useful for organizing lists of emails, URLs, filenames, tags, or any line-by-line list — sorting alphabetically, removing repeated entries (keeping the first occurrence of each), or cleaning up blank lines.

How it works

Sorting compares each line's text; deduplication preserves the original order of the remaining lines (always keeping the first occurrence of each repeated value).

Frequently asked questions

Is sorting case-sensitive?

Comparison uses the browser's standard string ordering, which usually treats uppercase and lowercase slightly differently — for most everyday lists, the result is as expected.

Are two lines with trailing extra spaces considered duplicates?

No — deduplication compares the exact line text, including spaces. Use "Remove blank lines" separately to clean up blank ones.