Remove Duplicate Lines: Dedupe, Sort and Clean a List

Paste a list and remove repeated lines, with optional sorting and clean-up.

Loading tool…

How to use the Remove Duplicate Lines

  1. Paste your list with one item per line.
  2. Tick the options you want: ignore case, ignore accents, trim spaces, remove empty lines.
  3. Pick a sort order if you want one.
  4. Check the counts, then copy the result.

About this tool

Lists of emails, keywords, URLs, names or product codes often contain repeats. Removing them by hand is tedious and easy to get wrong, so this tool keeps the first occurrence of each line and drops the rest, preserving your original order unless you choose to sort.

With Ignore case on, Apple and apple count as the same line, and the first spelling is kept. Trim spaces removes leading and trailing spaces first, so ' apple' and 'apple' match. Remove empty lines deletes blanks. Sorting uses natural order, so item2 comes before item10, and you can also sort by length or reverse the list. Ignore accents treats cafe and café as the same line. Output can also be switched to show only the duplicated lines, or to count how many times each line appears (most frequent first).

The counters show how many lines went in, how many duplicates and empty lines were removed and how many remain. Turn off Remove duplicates to use the tool only for sorting or trimming. Everything stays in your browser, so private lists are safe.

Frequently asked questions

Which duplicate is kept?

The first one. Later repeats are removed and the original order is preserved.

Can it treat Apple and apple as the same?

Yes. Tick Ignore case.

Can I only sort without removing duplicates?

Yes. Untick Remove duplicates and pick a sort order.

How large a list can I paste?

Tens of thousands of lines work comfortably in a modern browser.

Can I see which lines are duplicated?

Yes. Set Output to Show only the duplicated lines to list each repeated line once, or to Count occurrences to see how often every line appears.

Need a custom tool or website?

IDM Valley builds web apps, calculators, AI chatbots and automation for businesses. Fixed prices, code in your name.

Get a free quote

Have a project in mind?

Tell us what you need: a website, landing page, AI chatbot or automation. You get a clear scope and a fixed price within one working day. Free, no obligation.


  • avshack
  • DivineBamboo
  • goldleaf
  • janapril
  • kaizen
  • kwc
  • modv
  • pixelrush
  • revital
  • riderzplanet
  • sandsfashions
  • avshack
  • DivineBamboo
  • goldleaf
  • janapril
  • kaizen
  • kwc
  • modv
  • pixelrush
  • revital
  • riderzplanet
  • sandsfashions