Remove Duplicate Lines

Drop repeated lines and leave the list unique.

Tool Panel

Loading tool...
About Remove Duplicate Lines

Removes duplicate lines while keeping first-seen order, with case-insensitive and blank-line options and a count of what was removed.

  • 1

    First-seen order is preserved rather than sorted-then-deduped: the output keeps the original line order and only drops later repeats.

  • 2

    Each line is trimmed and blank lines are removed by default, so two lines differing only in surrounding spaces count as duplicates; turn trimming off to keep them apart.

  • 3

    Ignore case affects comparison only, not output — the surviving line keeps the capitalisation of its first occurrence.

Related tools

View all
Word Counter
Text Tools

Word Counter

Count characters, words and lines as you type.

Text Tools
Case Converter
Text Tools

Case Converter

Switch between upper, lower, camel, snake and other case styles.

Text Tools
Text Diff
Text Tools

Text Diff

Compare two texts and highlight exactly what changed.

Text Tools
Find and Replace
Text Tools

Find and Replace

Replace across a whole document, with optional regular expressions.

Text Tools
Text Cleaner
Text Tools

Text Cleaner

Strip extra spaces, blank lines and stray markup in one pass.

Text Tools
Sort Lines
Text Tools

Sort Lines

Order lines alphabetically, numerically or by length, in either direction.

Text Tools