1. Home
  2. Text
  3. Remove Duplicate Lines

Remove Duplicate Lines

Remove repeated lines from a list, then trim, sort or find the duplicates.

Runs in your browser
Show

Result

Waiting for input.

What is the Remove Duplicate Lines?

Paste a list of emails, phone numbers, keywords, product codes or log lines and get it back with every duplicate removed, in the original order. It is the quickest way to clean a mailing list, merge two lists or prepare unique values for a spreadsheet.

Options let you treat “Apple” and “apple” as the same, ignore stray spaces at the start and end of lines, drop blank lines, keep the last copy instead of the first, sort the result naturally (item2 before item10), or show only the lines that appear more than once.

How to use it

  1. Paste your list, one item per line, or upload a text or CSV file.
  2. Choose the options: case, spaces, empty lines, which copy to keep and sorting.
  3. The cleaned list appears as you type, with a count of what was removed.
  4. Copy the result or download it as a text file.

Example

Input
apple
banana
apple
banana
cherry
Output
apple
banana
cherry

Features

  • Keeps order. Unique lines stay in their original order unless you choose to sort.
  • Ignore case and spaces. Match lines regardless of capitals and leading or trailing spaces.
  • First or last copy. Keep whichever occurrence of a duplicate you prefer.
  • Natural sorting. Sort A–Z or Z–A with numbers in natural order, or by line length.
  • Find duplicates. Switch to “Duplicates only” to see which lines repeat.
  • Big lists. Handles hundreds of thousands of lines in your browser.

Frequently asked questions

Does it keep the original order?

Yes. With sorting set to None, the first occurrence of each line stays where it was. Choose “Keep last” to keep the final occurrence instead.

How do I remove duplicates ignoring capitals?

Turn off “Case sensitive”. Lines that differ only in capitals are then treated as the same, and the first one is kept as written.

Can I find which lines are duplicated?

Yes. Choose “Duplicates only” to list each line that appears more than once, one time each.

Can I use it for CSV files?

Yes, it removes repeated rows when the whole row is identical. To remove rows that share only one column, sort or filter in a spreadsheet instead.

Is my list uploaded?

No. Everything happens in your browser.

Last updated · Free, no sign-up, runs in your browser.

Free for everyone, kept free by you.

No paywall, no sign-up and no watermarks. If a tool saved you time, you can chip in any amount by UPI to keep Nova Free Tools running.

Esc
↑↓ move↵ openEsc close