TextStyle4

Remove Duplicate Lines

Delete repeated lines and keep the first occurrence of each.

Example

Input
apple
banana
apple
Cherry
cherry
Output
apple
banana
Cherry
cherry

How to use

  1. Type or paste your text into the box.
  2. Adjust the options if the tool has any – the result updates instantly.
  3. Press Copy result, or “Use result as input” to chain another step.

How it works

Optionally ignore case and surrounding spaces when comparing lines.

Frequently asked questions

Which duplicate is kept?

The first occurrence; later ones are removed.

Is the text I type sent to a server?

No. Conversion runs in your browser and your text is not uploaded.

Related tools

Sort Lines

Sort lines A–Z or Z–A, with optional natural number ordering.

Text Cleaner

Remove zero-width characters, straighten smart quotes and tidy whitespace.

Uppercase Converter

Convert any text to UPPERCASE instantly.

Lowercase Converter

Convert text to lowercase in one click.