Skip to content

Text tool

Remove Duplicate Lines

Delete repeated lines while keeping the first one in its original place.

Stays in your browser Processed in your browser. The text is not sent to our servers.

Tip: press Ctrl+Enter (or ⌘+Enter) to run from a text box.

Result will show here after you run the tool.

How to remove duplicate lines

  1. Paste the lines.
  2. Click Remove duplicates.
  3. Copy the list. The first copy of each line is kept.

Comparison is exact, including spaces. A later line that matches an earlier line is dropped.

Back to Text tools

Frequently asked questions

Which copy is kept?

The first one, in its original position. Later matches are removed.

Is the text uploaded?

No. The filter runs in your browser.

More questions on the FAQ page · Browse guides

Keep working without leaving the site.