ToolSprinkle.

Remove duplicate lines

Remove repeated lines while keeping the first occurrence and original order. Optionally ignore letter case; spaces remain significant. Runs in your browser.

Text, made tidy.
PROCESSED ON YOUR DEVICE

Ready when you are.

◎ No uploads. Your input stays here.↗ Free to use. No account needed.⌘ / Ctrl + Enter to run

A worked example

With default case-sensitive matching, Pear and pear are different. Enable Ignore letter case to get Pear followed by apple: the original first spelling survives.

Input / settings

Pear
pear
Pear
apple

Expected result

Pear
pear
apple
A LITTLE GUIDANCE

How to use Remove duplicate lines

Paste one item per line. Leave Ignore letter case off for exact matching, or enable it to compare lowercase versions. Run the tool, review the surviving lines and copy or download them.

Good to know

No automatic trimming, sorting, Unicode normalization or fuzzy matching. Blank lines count as a value. Clean whitespace first only when those spaces are not meaningful.

A few quick answers.

Are differently capitalized lines duplicates?

Only when Ignore letter case is enabled. The first occurrence is retained; spacing remains significant. Clean whitespace first when spaces should not distinguish lines.

Is my input sent to a server?

No. This tool processes your input in your browser. We don't store your text, files or results. Standard website access logs are separate; read our privacy notes.

Can I use it for free?

Yes. No account, subscription or usage credits are required.

How do I keep my result?

Use Copy or Download after running the tool. Inputs are not saved automatically and disappear when you leave or refresh the page.

Deduplicate without changing the first value

Exact matching or ignore letter case

By default, Pear and pear remain separate. Ignore letter case compares JavaScript lowercase values but returns the original first line. It does not perform fuzzy spelling correction, locale-specific case folding or accent removal.

Spaces and visually identical text

A line containing apple and a line containing apple followed by a space remain distinct. Composed é and an e followed by a combining accent can look identical but remain different strings. The tool does not normalize Unicode. Run whitespace cleanup first if line-edge spaces are accidental.

Order, blank lines and records

The first occurrence stays in its original position; the tool does not sort. Repeated empty lines collapse to one empty line at its first position. CRLF input is accepted and results use LF. Work with one record per line: a CSV cell containing a line break is not handled as a single record here.

Build a list-cleaning workflow: trim unwanted whitespace → keep unique lines → sort the result. Deduplicate before sorting when the original first occurrence matters. Copy your result before switching tools; input is not transferred automatically.

Keep your flow going.

More text & writing ↗

What would you like to do?

↑ ↓ Navigate · Enter Open · Esc Close. Switching tools clears unsaved input.