Skip to content

Text tools

Remove duplicate lines and sort a list

Paste a list to remove repeated lines, trim extra spaces, ignore capital letters and sort A to Z or Z to A. The list stays in your browser.

  • No uploadYour files are processed on your device and never sent anywhere.
  • FastNo upload or download wait – results appear in seconds.
  • Free, no signupNo account, no watermark and no daily limit.
Remove duplicate lines

Processed in your browser. Files are never uploaded.

Order

1 lines in, 1 lines out.

How to use the remove duplicate lines

  1. Paste your list, one item per line.

  2. Turn on duplicate removal, trimming, ignore case or sorting.

  3. Copy the result or download a .txt file.

  • No uploadYour files are processed on your device and never sent anywhere.
  • FastNo upload or download wait – results appear in seconds.
  • Free, no signupNo account, no watermark and no daily limit.

Remove duplicate lines from a list

Paste a list, one item per line, and get back each line only once. You can also trim stray spaces, ignore capital letters when matching, and sort the result from A to Z or Z to A. A counter shows how many lines went in and how many came out. Use it on email lists, keyword lists, roll numbers, product codes or a column copied from Excel or Google Sheets. Your list stays in this tab.

Options

Option What it does
Remove duplicates Keeps the first copy of each line
Trim spaces Removes spaces at the start and end of each line before comparing
Ignore case Treats “Delhi” and “delhi” as the same line
Sort A–Z / Z–A Sorts after duplicates are removed

Tips

  • Turn on trimming when lines look identical but don’t match. Hidden trailing spaces are the usual cause.
  • Leave sorting off if the original order matters.
  • Comparing two lists rather than cleaning one? Use Text diff.

Fix capitalisation with the case converter, or count items with the word counter.

Frequently asked questions

How do I remove duplicates from a list?

Paste the list, one item per line, and keep “Remove duplicates” on. The first copy of each line is kept and later copies are dropped. The counter shows how many were removed.

Can Apple and apple count as the same line?

Yes. Turn on “Ignore letter case when matching”. The first spelling is kept.

Can I dedupe an Excel column?

Yes. Copy the column, paste it here, clean it and paste it back. Each cell becomes one line.

Does sorting change which duplicate is kept?

No. Duplicates are removed first in the original order, and sorting happens after.

Are blank lines removed?

Repeated blank lines are treated as duplicates and collapse into one. A single blank line stays.

Is my list uploaded?

No. Everything runs in this tab.

Related tools

Last updated: