Remove Duplicate Lines

Strip duplicate lines from a block of text.

Frequently asked questions

How does removing duplicate lines work?

The tool reads your text line by line and keeps only the first occurrence of each line, dropping any later repeats. The result is a list with every line appearing just once.

Does it keep the original order of my lines?

Yes. Duplicates are removed while the first appearance of each unique line stays in its original position, so the overall order is preserved.

What does the ignore-case option do here?

With ignore-case on, lines that differ only in capitalisation are treated as the same, so Hello and hello count as duplicates. Without it, casing differences make lines distinct.

What does the trim option do?

Trim strips leading and trailing whitespace before comparing lines, so two lines that look identical but differ by stray spaces are recognised as duplicates. It prevents invisible whitespace from defeating the de-duplication.

Can I keep blank lines or remove them?

The keep-blank option controls whether empty lines are preserved in the output or collapsed away. Turn it on to retain spacing, or off to drop empty lines entirely.

Is my data sent anywhere?

No. All processing runs client-side in your browser, so the text you paste is never uploaded or stored.

Will it remove duplicates that are not next to each other?

Yes. It compares every line against all earlier lines, so repeated entries are removed no matter how far apart they appear in the list.