Tools › Text & Data › Sort & Deduplicate Lines
โ†•๏ธ

Sort Lines & Remove Duplicates

Paste a list and clean it up: sort, de-duplicate, trim, remove blank lines or reverse the order.

How it works

Each button acts on the text box directly, so you can chain operations: for example trim, remove empty lines, remove duplicates, then sort. Duplicate removal keeps the first occurrence of each line and preserves the original order. Numeric sort treats each line as a number and puts non-numeric lines last.

Frequently asked questions

How do I remove duplicate lines?

Click Remove duplicates. Tick Ignore case if 'Apple' and 'apple' should count as the same.

Can I sort numbers correctly?

Use Sort numeric. Alphabetical sort would put 10 before 2.

Is there a size limit?

Only your browser's memory. Lists of several hundred thousand lines work fine.

More tools

{ } JSON Formatter & Validator๐Ÿ“Š CSV to JSON Converter๐Ÿงช Regex Tester๐Ÿ†š Text Diff Checker๐Ÿ”ค Base64 Encode / Decode๐Ÿ”— URL Encode / Decode๐Ÿ”  Case Converter๐Ÿ“ Word & Character Counter๐Ÿ”ข Number Base Converter๐ŸŒ URL Slug Generator๐Ÿ”ก Text to Hex / Binary Converter๐Ÿท๏ธ HTML Entity Encoder / DecoderAll Text & Data tools →
Copied to clipboard