Remove duplicate lines

Paste a list and keep every line only once. The first occurrence stays where it is; later copies are removed.

How it works

  1. Paste your text

    Type or paste the text in the left box, or open a .txt file. No text to hand? Click Example.

  2. Instant result

    The result appears as you type. Change the options and see straight away what changes.

  3. Copy or download

    Copy the result with one click, save it as a file or use it as input for a next step.

Options

  • Ignore case: Apple and apple count as the same line. Off by default.
  • Ignore spaces at the start and end: pear and pear count as the same (on by default).
  • Keep empty lines: blank lines are left where they are instead of being treated as duplicates of each other (on by default).

The order of the lines doesn't change. The note says how many duplicates were removed.

To also sort the list, use sort text alphabetically with Remove duplicate lines ticked. To just delete blank lines, use remove empty lines.

Frequently asked questions

Is the remove duplicate lines free?

Yes. The remove duplicate lines is completely free, with no account, sign-up or usage limit.

Is my text stored?

No. Your text is processed in your browser and is not sent to a server or stored.

Is there a maximum length?

No, there is no fixed limit. Very long texts can just be a little slower.