≠

Remove Duplicate Lines

Delete repeated lines from a list and keep only unique entries. Free, private and instant.

How to use the Remove Duplicate Lines

  1. Paste your list with one item per line.
  2. Tick Ignore case if Apple and apple should count as the same line. Trim whitespace is on by default.
  3. The unique list appears below as you change anything, with Copy and Download .txt buttons.

Example

Worked example (fictional list, run through this tool)

  • Input lines: apple, Banana, apple, an empty line, "banana " (with a trailing space), an empty line, cherry
  • Case-sensitive, trimmed: apple, Banana, an empty line, banana, cherry
  • Ignore case ticked: apple, Banana, an empty line, cherry (banana is dropped as a duplicate of Banana)

Limitations

  • The first occurrence of each line is kept and the order is unchanged.
  • Empty lines count too: only the first one is kept, so blank lines used as separators are reduced to one.
  • With Trim whitespace on, kept lines have their leading and trailing spaces removed. Turn it off to keep them exactly as typed.
  • Lines must match completely. Near-duplicates such as dog and dogs are different.

About this tool

Paste a list and remove every duplicate line. Choose whether to ignore case and whitespace. The original order of first occurrences is kept.

Remove Duplicate Lines is part of ToolStack Hub's Text Tools. It runs entirely in your browser, which keeps your data private and makes results instant. There is nothing to install and no account to create. There is no usage limit.

Frequently asked questions

Is the Remove Duplicate Lines free?

Yes. Remove Duplicate Lines is completely free with no sign-up, limits or watermarks.

Is my data private when I use the Remove Duplicate Lines?

Yes. It runs in your browser, so your input is not uploaded to our servers.

Does it work on mobile?

Yes. ToolStack Hub tools work on phones, tablets and desktop browsers.

Keep going

All text tools

Need this automated for your business?

Vantalume builds custom AI and web automation workflows so your team can stop doing repetitive work.

Talk to Vantalume