Skip to main content

Remove Duplicate Lines

Keep the first copy of each line and drop later duplicates. Optional ignore case.

Rated 4.7 out of 5 based on 340 reviews

Input
Output

How to use remove duplicate lines

  1. Paste one item per line.
  2. Turn ignore case on if Red and red should count as the same line.
  3. The first time a line appears it is kept. Later copies are removed.
  4. Copy the result. Nothing is sent to CZNull.

Remove Duplicate Lines

Remove Duplicate Lines

Where it runsThis browser
UploadNone
NetworkNo request to compute the result
LimitInvalid input stays on the page as an error

What remove duplicate lines does

First-seen order is kept. Ignore case treats Red and red as the same line and keeps the first spelling. Empty lines collapse to one blank row.

How this page works

All options on the form are sent into the local engine. Keep the first copy of each line and drop later duplicates. Optional ignore case. Results never leave this device to be computed.

Limits and related pages

Stay on this URL for this job. Sibling tools in the same group cover nearby jobs without mixing formulas. Open the category hub if you need a different input set.

Questions

Does this page upload what I type?
No. The work runs in the page you opened. CZNull does not receive the input.
Is order preserved?
Yes. The first time a line appears it stays. Later copies are removed.
Ignore case?
Red and red count as one line. The first spelling is kept.
What happens on invalid input?
The status line shows the error. The previous result is cleared.