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 →