Remove Duplicate Lines & Sort
Deduplicate, sort, shuffle, and clean up any list of lines.
100% in your browser — nothing uploadedPaste any list and clean it up in one click: remove duplicate lines while keeping the first occurrence, sort alphabetically in either direction, sort by line length, apply a numeric-aware natural sort (so file2 comes before file10), reverse the order, or shuffle it randomly. Comparison options let you ignore letter case, trim surrounding spaces, and drop empty lines, and a counter shows total lines, unique lines, and how many duplicates were removed.
It’s the fast way to clean email lists, log extracts, SQL query results, keyword exports, or any column copied from a spreadsheet. Each button applies a single operation to your input, so results stay predictable, and everything runs locally in your browser with JavaScript — your list is never uploaded, which makes it safe for customer emails and other data you wouldn’t paste into a random website.
FAQ
Which line is kept when duplicates are removed?
The first occurrence, in its original position and with its original formatting. Even if you compare case-insensitively or with trimming enabled, the line that appears in the output is exactly the first one you pasted.
What is natural sort?
A numeric-aware ordering that compares digits by value instead of character by character: file2 sorts before file10, and item9 before item100. A plain alphabetical sort would put file10 first because the character 1 comes before 2.
Is my list uploaded to a server?
No. Splitting, comparing, and sorting all happen in your browser with JavaScript. Nothing is sent anywhere, so it’s safe for email lists, customer records, and internal data.