Skip to content

Remove Duplicate Lines

Remove repeated lines, keeping the first or last, ignoring case or spaces if you like

Runs on your device

How to use Remove Duplicate Lines

  1. Type or paste your text into the box, or press Sample to see an example.

  2. Set the options: “Keep”, “Ignore upper and lower case”, “Ignore spaces at the line ends”, “Remove empty lines too” and more. Reset puts them back.

  3. The result updates as you go. Copy it or download it.

About Remove Duplicate Lines

Remove repeated lines, keeping the first or last, ignoring case or spaces if you like.

Remove Duplicate Lines: common questions

Is Remove Duplicate Lines free?

Yes. There's no sign-up, no limit on how often you use it and no watermark.

Is your text uploaded anywhere?

No. Remove Duplicate Lines works on this device only, so your text stays private. You can even turn off the internet once the page is open.

What can I change?

6 settings, including “Keep”, “Ignore upper and lower case”, “Ignore spaces at the line ends”, “Remove empty lines too”, “Sort the result” and “Show what was removed”. Every setting has a sensible default, and Reset puts them all back.

Does it work on a phone?

Yes, in any current browser on Android, iPhone, iPad and desktop.

More text tools

All 74 text tools