GlobalFree to use

Remove duplicate lines

Keep the first occurrence of every exact line and preserve the original order.

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Input

Tip: press Ctrl + Enter to run

Your result

Your result will appear here.

About this tool

Mailing lists, keyword exports, inventory codes and log extracts often contain the same line several times. This tool keeps the first occurrence of each line and removes later exact repeats, without re-sorting the list, so the order you had is preserved.

Matching is exact. Lines that differ only in capitalization or trailing spaces are treated as different, which avoids merging entries you did not mean to merge. Clean those first if you want them treated as the same.

How to use it

  1. Paste the list, one item per line.
  2. Run the tool.
  3. Copy the de-duplicated list.
  4. If near-duplicates remain, normalize case with the case converter and spaces with the whitespace cleaner, then run it again.

How the calculation works

Lines are read in order; a line is kept only if exactly the same line (including spaces and case) has not appeared before.

Worked example

A product list contains "apple", "Apple", "apple " (with a trailing space), "pear" and "apple". The result keeps "apple", "Apple", "apple " and "pear": only the last line was an exact repeat. Lowercasing and trimming first would reduce the list to "apple" and "pear".

Sample input and result

apple / pear / apple → apple / pear

Limitations

  • Exact matches only; no fuzzy matching.
  • Blank lines are treated like any other line, so only the first blank line is kept.
  • Up to 100,000 characters.

Last updated:

Frequently asked questions

Does it sort the list?

No, the original order is kept. Use sort lines afterwards if you want alphabetical order.

Can it ignore uppercase and lowercase?

Not directly. Convert the list to lowercase first if case should not matter.

What about duplicate rows in a CSV?

This works on whole lines, so identical CSV rows are removed. For column-aware cleanup, use the CSV cleanup tool.

Troubleshooting

Duplicates are still there.

Look for differences in case, trailing spaces or invisible characters copied from websites.

My blank lines disappeared.

Repeated blank lines are duplicates of the first blank line. Keep paragraph breaks by removing duplicates only from a list.

Email addresses with different capitals were kept.

Lowercase the list first; email addresses are not case-sensitive in practice.

Privacy & Free to use

Are my inputs stored?

Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.

Is this tool free?

Yes. No signup or payment is required.

Processed in your browser

Useful next steps