PocketPlay
中文

Remove Duplicate Lines

Remove duplicate lines from a list, keep the first or last copy, or show only the duplicates — with counts.

🔒 Runs in your browser — files never leave your deviceFree · No sign-up

Comparison options

Input lines

Drop a .txt file here, or click to choose

Result

0Lines in
0Lines out
0Lines removed
0Repeated items

How to remove duplicate lines

  1. Paste your list into the left box, or load a .txt file — every line counts as one item.
  2. Choose what to do: drop duplicates keeping the first or last copy, list only the repeated lines, or keep only the lines that appear once.
  3. Turn on ignore case or ignore spaces if near-identical entries should count as the same, then copy or download the cleaned list.

FAQ

Does keeping the first or last copy change the order?

No. Both modes preserve the original order of the lines that survive — only which copy is kept changes, which matters when the later entry has newer data.

How do I find the duplicates instead of removing them?

Pick Show duplicated lines only. Every line that appears more than once is listed with the number of times it occurs, which is the quickest way to audit an export before importing it somewhere else.

Is there a size limit?

Everything runs in your browser, so the limit is your device's memory. Lists of several hundred thousand lines are handled comfortably; nothing is uploaded.