Text tool

Remove Duplicate Lines

Remove duplicate lines from a list and keep the first of each, in the original order. Choose case-sensitive or not, then copy the clean list. Free.

Your file never leaves your device.

Arabic and Urdu

Runs locally in your browser

Your text is not uploaded.

What does a duplicate line remover do?

A duplicate line remover deletes repeated lines from a list or text and keeps the first occurrence of each, in the original order. File ICU’s Remove Duplicate Lines is free and runs in your browser.

Simple steps

How it works

  1. 01

    Paste a list with one item per line.

  2. 02

    Choose whether line matching is case-sensitive.

  3. 03

    Copy the list with duplicate lines removed.

How lines are matched

By default, lines are compared without regard to letter case. In the list Apple, apple, Banana, Apple with a space at the end, Banana, the result is Apple, Banana and the Apple with the trailing space: apple and the second Banana are removed, but a line with an extra space is a different line.

Turn on Match case to keep Apple and apple, or ignore accents to treat café and cafe as the same. For Arabic and Urdu, options can also ignore diacritics and treat different forms of the same letter as equal.

Order, blank lines and spaces

Nothing is sorted: every line that stays keeps its position. Blank lines count as lines too, so the first blank line stays and later ones are removed; if your text has paragraphs, run the tool on the list part only.

Spaces at the start or end of a line are not trimmed. Lists copied from spreadsheets and web pages often carry stray spaces, so clean them first if lines that look the same are not merged.

Good to know

Frequently asked questions

Is there a free tool to remove duplicate lines from text?

Yes. Paste your list into Remove Duplicate Lines, with one item per line, and the repeated lines are removed, keeping the first copy of each where it was. Matching ignores letter case unless you turn on case-sensitive matching. It is free, needs no account and runs in your browser.

Which duplicate is kept?

The first matching line stays in its original position.

Are matching lines case-sensitive?

By default, matching ignores letter case. Enable case-sensitive matching to treat different capitalization as distinct.

Are blank lines removed?

No. Blank lines are treated like other line values, so only repeated blank lines are removed.

Does the tool sort my lines?

No. The original order is preserved.

Is my list sent to a server?

No. Duplicate removal runs locally in your browser.