142+ Free Online Tools · Easy. Fast. Accurate.

Remove Duplicate Lines

Remove duplicate lines from a block of text, instantly in your browser.

How to use the Remove Duplicate Lines

  1. Paste your text or list, one item per line.
  2. Tick "Ignore case" if lines differing only in capitalization should count as duplicates.
  3. Click Run to get the list with duplicates removed.

How the Remove Duplicate Lines works

The tool reads your text line by line and remembers each line it has already seen. The first occurrence of every line is kept in its original position, and any later repeats are dropped, so the order of your list is preserved.

With "Ignore case" on, lines are compared in lower case, so Apple and apple count as the same item and the first spelling is kept. Lines that differ only by leading or trailing spaces are treated as different. To sort the list afterwards, use Sort Lines.

Frequently asked questions

Is this tool free?
Yes. Remove duplicate lines at no cost, with no account required.
Does it keep the original line order?
Yes. The first occurrence of each line is kept, in its original position.
Does my text leave my browser?
No. The conversion runs entirely in your browser, so your text is never sent to a server.

More Text Tools

Browse all Text Tools →