Remove Duplicate Lines
Paste any list and drop the duplicates instantly — case and whitespace aware. Runs in your browser, nothing uploaded.
Need this in a pipeline, not a browser tab?
Cleaning the same list every day? An API beats pasting by hand.
Get the All-Access Bundle — $49 onceFree for 10 rows per table · $9 once, no subscription
Runs entirely in your browser. No upload, no account, no analytics.
Why dedupe misses duplicates
Two lines that look identical on screen can differ in the bytes. Dedupe works on bytes, so it keeps both and you conclude the tool is broken.
Cause one: case. SKU-001 and sku-001 are different
strings. Most systems treat them as the same identifier and your catalogue shows two products.
Cause two: invisible characters. A non-breaking space from a web page, or a zero-width space from a copied document, sits inside the value. It renders as nothing.
Cause three: whitespace at the edges. A trailing space after a comma-separated value means the line differs only after the last visible character.
The reliable sequence. Trim whitespace, normalise line endings, optionally case-fold, then dedupe. Do it in that order; deduplicating first and trimming afterwards merges nothing.
What dedupe cannot decide for you. Which copy to keep. Keeping the first preserves the original entry; keeping the last preserves the most recent edit. Neither is correct in general, so choose deliberately.
Questions
Why does dedupe keep both copies?
The lines differ in bytes: case, a hidden character, or a trailing space.
Does it keep the first or the last occurrence?
That is a choice, not a default you should assume. Decide which one you need.
Will dedupe destroy leading zeros?
No, because it works on text. Converting to numbers is what destroys them.