Remove Duplicate Lines

Remove duplicate lines and keep the first occurrence. You can also trim each line and drop blank lines. Click Process to run it in your browser. Nothing is uploaded. Up to 50000 characters at a time.

Input

0 / 50000

Result

Common questions

How does duplicate-line removal work?

It compares lines and removes later duplicates, keeping the first occurrence and the original order. Apple and apple stay as two different lines. Click Process after you enter text.

What do trim and blank-line removal do?

Trim each line removes spaces at the start and end of every line before comparing, so “ banana ” and “banana” count as the same line. Remove blank lines drops empty lines and lines that contain only spaces.

Why is the limit 50000 characters?

50000 characters covers everyday lists of names, links, and keywords. Longer text is outside the usual use of this page.

Is the text uploaded?

No. Deduplication runs in your browser. No account is required, and the text is not sent anywhere. Copy places the result on your clipboard. Download saves a txt file named with the current time, to the minute.