Remove Duplicate Lines

Delete repeated lines from a list while keeping the first occurrence, with options for case and surrounding spaces.

How to use Remove Duplicate Lines

  1. Paste your list, one item per line.
  2. Choose case sensitivity and whether to ignore spaces and blank lines.
  3. Copy or download the unique lines.

Supported features and limitations

The original order is preserved and the first occurrence wins. Very long lists (hundreds of thousands of lines) may be slow on phones.

Privacy

Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.

Frequently asked questions

Is the comparison case sensitive?

By default yes. Untick the option to treat “Apple” and “apple” as the same.

Can it sort too?

Use Sort Lines afterwards.

Related tools

  • Sort Lines Alphabetically - Sort lines A–Z, Z–A, by length or numerically, reverse their order or shuffle them randomly.
  • CSV Duplicate Row Remover - Remove duplicate rows from a CSV, comparing whole rows or only selected columns.
  • Remove Extra Spaces - Collapse repeated spaces, tabs and blank lines in pasted text and trim each line, with optional settings.
  • Text Case Converter - UPPERCASE, lowercase, Title Case and Sentence case.
  • Word & Character Counter - Count words, characters, lines and reading time.
  • Character Counter - Count characters with and without spaces, words, lines and UTF-8 bytes, and check text against limits like 280, 160 or 2,200.

More Text & Document Tools · All free tools