Free tools

Remove Duplicate Lines from a List

Clean a list down to its unique lines, in order or sorted A to Z.

Runs locally · nothing is uploaded

Unique lines appear here…
0Lines in
0Lines out
0Removed

Features

Order kept

Each line stays where it first appears, so the list keeps its order unless you choose to sort it.

Near-duplicates caught

Ignore case and trim spaces to catch lines that differ only in capitals or stray spaces.

Counts at a glance

See how many lines went in, how many came out and how many were removed, as you paste.

How to use

  1. 1 Paste your list into the box on the left, one item per line.
  2. 2 Tick the options you need: ignore case, trim spaces, remove empty lines, sort A to Z.
  3. 3 Copy the unique lines from the right; the counts show how many were removed.

Common use cases

  • Cleaning an email list before an import or a send
  • Deduplicating keywords, tags or hashtags
  • Merging two lists and keeping each entry once
  • Finding the unique values in a spreadsheet column
  • Tidying URLs, file names or log lines copied from several places

About this tool

Lists pick up duplicates whenever they are merged, exported twice or copied from several places. This tool keeps the first copy of every line and drops the rest, while the counts tell you how many lines went in and how many came out.

Sort A to Z orders the result alphabetically without regard to capitals, with numbers in natural order, so item 2 comes before item 10.

This tool is built by ToolClack and, like everything we make, it is local-first: your data stays in your browser.

Frequently asked questions

Which copy of a duplicate is kept?

The first one. Later copies are removed and the remaining lines keep their original order, unless you tick Sort A to Z.

What do Ignore case and Trim spaces do?

Ignore case treats Apple and apple as the same line and keeps the first spelling. Trim spaces removes spaces and tabs at the start and end of every line, so a stray space no longer makes two lines look different.

What happens to empty lines?

They stay where they are, since they often separate groups, and they are never counted as duplicates. Tick Remove empty lines to drop them, including lines that hold only spaces.

Is my list uploaded anywhere?

No. The lines are compared in your browser as you paste; nothing is sent anywhere.

Our products

These tools are free and always will be. Our full products go further.

View all products