Remove Duplicate Lines

Deduplicate a list while keeping the original order.

Runs in your browser Text Tools Free · No account

Input

Processed locally

This tool runs entirely in your browser. The data you paste or load is never uploaded.

Result

Enter your input, then run the tool.

About this tool

Removes repeated lines and reports how many were dropped. Choose case-insensitive matching, trim surrounding spaces first, or keep the last occurrence instead of the first.

How to use it

  1. Paste a list with one entry per line.
  2. Choose trimming and case sensitivity.
  3. Remove duplicates, then copy or download the cleaned list.

Frequently asked questions

Does sort order change?
No. The first occurrence stays where it was, so the list remains readable. Use the sort tool if you also want alphabetical order.
Are empty lines removed too?
They are when “Remove empty lines” is enabled, which is usually what you want after cleaning a pasted list.

Keep going

More in this category