← All tools

TEXT TOOL

Remove Duplicate Lines

Deduplicate text lines with options for spaces, case, and ordering.

Options
0 unique lines0 duplicate lines removed

Duplicate matching and ordering run locally in your browser.

How to use Remove Duplicate Lines

  1. Paste or type text with one item per line.
  2. Choose how duplicates are matched and whether to preserve order.
  3. Copy the cleaned text or review the updated result.

Which duplicate is kept?

The first matching line is kept. When trimming is enabled, the kept line is also trimmed.

What happens when original order is turned off?

Unique lines are sorted alphabetically after duplicate removal.