Uber Tools

Remove Duplicate Lines

Take repeated lines out of a list or a text, keeping the order of the lines

Text

Result

Repeated lines

Lines that were there more than once, and how many times

LineTimes
apple2
banana2
cherry2

How to remove duplicate lines

  1. Paste your list or text.
  2. Keep the first or the last of each repeated line; the order stays as it was.
  3. Ignore case and spaces around lines, and remove empty lines, if you like.
  4. Copy the result, and see which lines were repeated and how many times.

Questions

Does it keep the order of my lines?

Yes, unlike sorting, the lines stay in their order; only the repeats are taken out.

Can I find the lines that repeat?

Yes, show only the repeated lines, once each, or only the lines seen once.

Are Apple and apple duplicates?

Only when you ignore case; otherwise lines are compared exactly as typed.

Is my text sent anywhere?

No, it's processed by your browser as you type.

Related tools