Remove Duplicates Case-Insensitive screenshot

Remove Duplicates Case-Insensitive

Remove duplicate lines ignoring letter case, keeping the first spelling of each line.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What this page computes

Paste a list and the page removes every line that repeats an earlier one once letter case is ignored. The key is the trimmed line lowercased, so Ann, ann and ANN collapse to a single entry, and the entry that survives is the first spelling in your paste rather than a lowercased rewrite. The second line counts what came in, what was kept and what was removed.

Where it stops

Lowercasing is not full Unicode case folding: the Turkish dotless i and the German sharp s do not fold the way a locale-aware comparison would, and the page says nothing about a locale because it has none. Blank lines are dropped, and comparison is on the whole trimmed line, so Ann, 4 and Ann,4 stay separate. Nothing is sorted; the input order is kept.

The deduplication runs in this tab. Nothing is uploaded, nothing is stored, and the same paste always prints the same lines.

`Ann`, `ann`, `Bob`, `BOB`, `Cara` becomes `Ann`, `Bob`, `Cara`: the key is the trimmed line lowercased, and the spelling that survives is the first one in your paste.

Lowercasing is not full Unicode case folding, so a locale-aware comparison is outside what the page claims.

How to use it

Paste the list and press Run. The output is not lowercased: it holds the first spelling of each distinct value, in input order.

The comparison

Each trimmed line is lowercased into a key and offered to a Set; the first line that produces a key is kept with its original characters, and later lines with the same key are counted as removed.

Where it stops

Case folding here is `toLowerCase`, which is not the full Unicode mapping: `ß` and `İ` do not collapse the way a locale-aware comparison would. Nothing inside a line is normalised, so `Ann, 4` and `Ann,4` stay separate.

What to Expect

Best for

  • `Ann`, `ann`, `Bob`, `BOB`, `Cara` becomes `Ann`, `Bob`, `Cara`: the key is the trimmed line lowercased, and the spelling that survives is the first one in your paste.
  • Seeing the result before copying it.

What this tool keeps

  • Your input is converted in the browser and never posted, so the page works offline and retains nothing.

Sample input

Ann, ann, Bob, BOB, Cara

Sample output

Ann Bob Cara 5 lines in → 3 lines kept, 2 lines removed (case-insensitive; blank lines are dropped)

Frequently asked questions

How do I use it?

Paste the list and press Run. The surviving lines keep their original spelling, and the second line counts what came in, what was kept and what was removed.

Is anything uploaded?

No. The text is converted in this tab with JavaScript: no request is made, no account is needed, nothing is stored, and the page keeps working offline once loaded.

What are its limits?

The key must be the lowercased trimmed line, which means the Turkish dotless i and the German sharp s do not fold the way a locale-aware tool would. Blank lines are dropped and comparison is on the whole line.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.