Text & writing

Remove Duplicate Lines

Remove repeated lines while keeping the first occurrence.

Let’s get to work

Fill in the details below to get started.

BROWSER TOOL

About Remove Duplicate Lines

Compare lines exactly or without regard to case. The first occurrence is retained in its original position; other content on the line is not changed.

How to use it

  1. Paste one item per line.
  2. Choose whether to ignore case.
  3. Remove duplicates and copy the result.

Frequently asked questions

Are leading spaces ignored?

No. Lines are compared as written, except for case when that option is selected.

Does it keep the first or last line?

It keeps the first occurrence of each matching line.