Remove Duplicate Lines

Remove duplicate text lines while keeping the first occurrence and original order.

Convert in your browser · No sign-up

Optional whitespace trimming and case folding affect comparison only. The first original line, including its spaces, is kept.

Up to 100,000 UTF-16 units per input · 0 / 100,000

How to use

  1. Paste your text or load the example.
  2. Choose the mode or options, then run the tool.
  3. Review the result, then copy or download the TXT file.

Example

apple
banana
apple
→
apple
banana

Details and limitations

Remove duplicate text lines while keeping the first occurrence and original order.

Optional whitespace trimming and case folding affect comparison only. The first original line, including its spaces, is kept.

Text stays in your browser; it is not sent to a conversion server.

Format references

Tool page updated: