Remove Duplicate Lines

Paste a list with repeats. You get each line once, in the original order or sorted, with a count of what was removed.

0 words · 0 characters
Order
  • Runs in your browser. Nothing is uploaded.
  • Free, no signup, no limits
  • Works on any phone or computer

More free tools

All tools

Paste a list that has the same entries more than once. You get every line once, in the original order or sorted, and a count of how many repeats were removed.

The options

  • Ignore uppercase and lowercase: "Rahul" and "rahul" count as the same line. The first one you typed is kept.
  • Ignore spaces at the start and end: "Rahul " with a stray space counts as "Rahul". Extra spaces are a common reason duplicates slip through.
  • Remove empty lines: blank lines are taken out completely.
  • Order: keep the original order, sort A to Z or Z to A, or sort by length. Sorting understands numbers, so "Class 2" comes before "Class 10".

An example

A class teacher collects names in a WhatsApp group for a school trip. People reply more than once, some with capitals and some without:

Aman Priya aman Ravi Priya Sana

With "Ignore uppercase and lowercase" ticked and A to Z sorting, the result is:

Aman Priya Ravi Sana

The status line shows "6 lines → 4 · 2 duplicates removed", so you know exactly what changed.

Where it helps

  • Cleaning a list of phone numbers or email addresses before sending a message.
  • Merging two lists, such as last year's and this year's members, without repeats.
  • Removing repeated hashtags or keywords.
  • Checking test data, logs or exports from a spreadsheet.

Frequently asked questions

Which copy of a duplicate is kept?

The first one, in its original spelling. Later copies are removed.

Can I sort a list without removing anything?

Yes, if the list has no repeats. To keep repeats, use Sort in Google Sheets or Excel instead.

Does it work with Hindi lists?

Yes. Hindi lines are compared and sorted correctly.

How big a list can I paste?

Lists with tens of thousands of lines work on most phones. Very large lists are faster on a computer.

Related guides

All guides