Sort and deduplicate lines
Sort lines alphabetically or numerically, remove duplicates, trim whitespace and add line numbers. Instant list cleanup.
- Free, no sign-up
- No data stored
- Reviewed 2026-01-15
Your details
Results
About the Sort & Deduplicate Lines
Paste a list of lines to sort them alphabetically (A–Z or Z–A) or numerically, remove duplicate entries, trim leading/trailing whitespace and optionally add line numbers or a prefix/suffix to each line.
How to use the Sort & Deduplicate Lines
- Paste your list.
- Choose sort order.
- Enable "unique only" to remove duplicates.
- Set trim, prefix or suffix options.
- Copy the cleaned list.
Frequently asked questions
Is the deduplication case-sensitive?
By default yes. Enable "ignore case" to treat "Apple" and "apple" as duplicates.
Can I sort numerically?
Yes. Select "numeric" sort order so that 2 comes before 10 (unlike alphabetical where "10" < "2").
Does this handle CSV data?
It operates on lines. For CSV column sorting, use the JSON-to-CSV converter or a spreadsheet.