Home / Tools / Remove Duplicate Lines & Sort

Line Tools — Dedupe, Sort & Clean

Fix messy lists in one click: remove duplicates, sort alphabetically or by length, reverse, shuffle, strip empty lines and stray spaces.

Runs 100% in your browser No upload — files never leave your device Free · No sign-up
1Paste your list (one item per line)
2Set your options
3Get your results

See it in action

apple Banana apple cherry Banana → dedupe (ignore case): apple Banana cherry

Merged lists, keyword sets, email lists — cleaned in one click, order preserved. Made with this tool.

Limits

Honest limits: Exact dedupe compares lines character-for-character — 'Item' and 'Item ' (trailing space) count as different until you tick the trim option or run trim first. Sorting uses your browser's locale order. Shuffle is genuinely random each run.

How to use it

1Paste or type your text

Put the text you want to work on into the input box. It stays in this tab — nothing is sent anywhere.

2Pick the operation

Dedupe is the classic: paste the merged list, get each line once, original order kept. Ignore-case dedupe also treats 'Apple' and 'apple ' as the same line.

3Run it

Click the run button and the result appears in the output box below, ready to copy or save.

4Copy or download

Copy the result with one click, or download it as a plain text file for later.

About this tool

Lists rot quietly: the email list merged from three sources with everyone twice, the keyword list with the same term in three capitalizations, the inventory pasted from two sheets. Cleaning them by hand in a text editor is where afternoons go. These line tools do the mechanical operations exactly — dedupe (exact or forgiving), sorting three ways, reversing, shuffling, empty-line removal, trimming, numbering — on lists of any realistic size, instantly, in your browser, where a customer list being cleaned has no business leaving.

Everything runs locally in your browser. Your text is processed with JavaScript in this tab only — it is never uploaded, logged or stored, so you can safely use it on drafts, client copy, code snippets and data you would not paste into a stranger's server. There is no sign-up, no daily limit and no paywall counter ticking down: run it as many times as you need, on any device.

Frequently asked questions

Why are there still duplicates after deduping?

Because the lines differ invisibly: trailing spaces, different capitalization, or a stray character. Use the ignore-case dedupe, or run trim first and then exact dedupe. If duplicates persist, they are genuinely different lines — compare them character by character and the difference will show itself.

Does dedupe keep the original order?

Yes — the first occurrence of each line stays in its place and later copies are dropped, so a deduped list reads exactly like the original with the repeats removed. Sorting operations, of course, deliberately change the order instead.

Is this tool free to use?

Yes — free, with no sign-up and no daily limit. Your text is processed in your browser, so there is no server cost and nothing to meter.

Is my text sent to a server?

No. Everything happens with JavaScript inside this browser tab. Your text is never uploaded, logged or stored — paste drafts, client copy or data freely.

How much text can I paste?

Plenty — everyday documents, articles and data files are fine. Extremely large pastes (many megabytes) depend on your device's memory, and the browser may slow down while it works.

Does it work on my phone?

Yes, in any modern mobile browser. For very long texts a bigger screen is more comfortable, but the processing itself works the same everywhere.

Related tools

Want more free tools?

Free tools that all run locally in your browser — no uploads, no fees.

Browse all tools

Or own them all: the self-host pack — $9.99