Sort and Deduplicate Lines
Sort lines alphabetically and remove duplicates in one step. Options for trim whitespace, remove blank lines, and case-insensitive deduplication.
Pure browser JavaScript — no libraries required.
How to use this tool
- Paste your lines.
- Choose sort order and deduplication options.
- Click Apply and copy or download the result.
Sort lines alphabetically and remove duplicates in one step. Options for trim whitespace, remove blank lines, and case-insensitive deduplication.
Frequently asked questions
- Does case-insensitive dedup keep the original casing?
- Yes — the first occurrence (with its original case) is kept; later duplicates are removed.