All tools

Remove duplicate lines

Remove repeated lines while keeping their original order.

UTF-8 TXT or pasted text · up to 1 MB. Inputs stay in this tab.

How to use

  1. Remove repeated lines while keeping their original order.
  2. Enter your values and choose the options. Use the example below to check the result.
  3. Review the result; copy or download when available. Reset clears this tool.

Before you start

By default, comparison is case-sensitive and keeps spaces. Optional trimming changes comparison only; the first original line is retained.

apple / pear / apple → apple / pear (one item per line).