Remove Duplicate Lines

Paste a list (emails, keywords, URLs, product codes, names) and get it back with every repeated line removed. The first occurrence of each line is kept in its original position, so the order of your list doesn't change unless you ask for sorting.

Runs in your browser — nothing is uploaded

How to use it

  1. Paste your text into the left box. Each line is treated as one item.
  2. Choose how lines are compared: ignore upper/lower case, and trim spaces at the start and end of each line.
  3. Decide whether to drop empty lines and whether to sort the result A→Z or Z→A. Sorting is natural, so “item 2” comes before “item 10”.
  4. Copy the cleaned list, or move it back into the input to keep working on it.

Common uses

  • Cleaning a mailing list before an import, so nobody gets the same email twice.
  • Merging keyword lists for ads or SEO research without repeats.
  • Deduplicating URLs, log lines, IDs or SKUs copied from several sources.
  • Turning a long column copied from a spreadsheet into a list of unique values.
  • Counting which entries occur most often in a list.

Examples

Input linesOutput
apple banana appleapple bananaOne duplicate removed; the first “apple” stays where it was.
Apple apple APPLEAppleWith “Ignore case”, the first spelling is kept.
cherry cherry cherryWith “Trim spaces”, leading and trailing spaces don't create a new line.
item 10 item 2 item 1item 1 item 2 item 10Sort A→Z uses natural number order.

Frequently asked questions

Which copy of a duplicate is kept?

The first one. Later repeats are removed and the remaining lines keep their original order, unless you choose a sort order.

Is the comparison case-sensitive?

By default, yes: “Apple” and “apple” are different lines. Tick “Ignore case” to treat them as the same; the spelling of the first occurrence is kept.

How many lines can it handle?

Hundreds of thousands of lines work fine in a modern browser, because the text is processed locally and never uploaded.

Can I remove duplicates in Excel instead?

Yes: Excel has Data → Remove Duplicates, and Google Sheets has the UNIQUE function. This tool is quicker for plain lists copied from anywhere, and it also shows which lines were repeated.