How to Use Keep Duplicate Lines: Steps and a Worked Example

By 1 min read

Show only the lines that appear more than once. This guide shows what to enter, a worked example, and the limits to keep in mind. The Keep Duplicate Lines tool is free, needs no account and runs in your browser.

What you need

  • Lines

Step by step

  1. Open the Keep Duplicate Lines tool.
  2. Fill in Lines.
  3. Read the result, which updates as soon as the inputs change.

Worked example

the tool returns:

apple
banana

How it works

Paste a list. Every line that repeats is listed once.

Things to keep in mind

Check your inputs, units and any local rules before you rely on the result.

If this is not quite what you need, try Remove Duplicate Lines, Keep Unique Lines or Collapse Multiple Blank Lines.

More from the blog