Deduplicate Lines

About this tool

Paste multiple lines of text and instantly remove exact duplicates, keeping the first occurrence order. Optionally sort the result alphabetically or show how many times each line appears.

How to use
  1. Type or paste your text into the input box (one item per line).
  2. Toggle Sort to order the unique lines alphabetically, or Count to add an occurrence counter.
  3. Copy the deduplicated result from the output box.
Is my data uploaded anywhere?

No. Everything runs locally in your browser.

Which line is kept when duplicates are removed?

The first occurrence is kept, so the original order of first appearances is preserved.