Skip to content

Sort & Dedupe Lines

Paste one item per line, choose a sort order and whether to remove duplicates, and PocketSpry processes it instantly in your browser. Sorting is natural and alphanumeric (so item2 comes before item10) under a fixed locale, and duplicate removal is exact — case and whitespace matter. It never trims, cleans, or rewrites your lines, and your text is not sent to PocketSpry’s AI service.

Paste one item per line. Processed in your browser — it is not sent to PocketSpry’s AI service or to analytics. Lines are never trimmed or cleaned; content is preserved exactly.
Natural alphanumeric order (item2 before item10), or keep the original order.
Remove exact duplicate lines (case- and whitespace-sensitive), or keep every line.

Sort and dedupe lines instantly

Paste one item per line, choose an ordering and whether to remove duplicates, and PocketSpry processes it locally in your browser — no sign-up, no upload, and no waiting on a server. It is built for lists, IDs, names, keywords, URLs, tags, and any other line-oriented text.

Sort A to Z or Z to A

Sorting is natural and alphanumeric, so in ascending order item2 comes before item10 (not after it). Choose A → Z or Z → A, or keep the original order.

Remove duplicate lines

Choose Remove duplicates to keep only the first occurrence of each exact line, or Keep duplicates to leave every line in place.

Keep original order

Pairing Keep original order with Remove duplicates lets you de-duplicate a list without reordering it — the first occurrence of each line stays where it was.

Exact means exact

Duplicate matching is case-sensitive and whitespace-sensitive. `hello`, `Hello`, and `hello ` (with a trailing space) are three different lines, and only exact repeats are removed.

Blank lines are preserved

This tool does not clean or remove blank lines. Interior blank lines are treated as real lines: they take part in sorting, and multiple identical blank lines collapse to one only when you choose Remove duplicates.

Trailing newline behavior

A single newline at the very end is treated as document termination, not as an extra blank item — so a list ending in a newline keeps its two lines, and the result is returned with one trailing newline.

Private and browser-local

Your lines are processed locally in your browser. They are not sent to PocketSpry’s AI service, and neither your input nor the result is sent to analytics.

Sort & Dedupe vs cleaning up text

This tool only sorts lines and removes exact duplicates — it never trims spaces, changes case, or rewrites individual lines. Keeping content exact is deliberate, so you always know a line was reordered or removed, never altered.

Frequently asked questions

What does Sort & Dedupe Lines do?
It sorts your lines and, optionally, removes exact duplicate lines — all in your browser.
Can it sort lines alphabetically?
Yes — choose A → Z or Z → A.
Can it sort Z to A?
Yes.
Can I remove duplicates without sorting?
Yes — choose Keep original order together with Remove duplicates.
Can I sort without removing duplicates?
Yes — choose Keep duplicates.
Is duplicate matching case-sensitive?
Yes.
Are “hello” and “Hello” duplicates?
No — matching is case-sensitive.
Are “hello” and “hello ” duplicates?
No — a trailing space makes them different lines.
Does it trim spaces?
No. Lines are preserved exactly.
Does it remove blank lines?
No. Blank lines are kept as real lines.
What happens to interior blank lines?
They are preserved and take part as lines (and can be de-duplicated if you remove duplicates).
What happens to a trailing newline?
A single trailing newline is preserved as document termination, not counted as an extra blank line.
Does it sort numbers naturally?
Yes — natural alphanumeric comparison sorts item2 before item10.
Do you parse lines as numbers?
No — it uses natural alphanumeric comparison, not numeric parsing.
Does it support Unicode?
Yes, under a fixed-locale Unicode collation.
Does sorting depend on my browser language?
No. PocketSpry uses a fixed collation locale, so the same input sorts the same for everyone.
Does my text leave my browser?
No. Everything is processed locally.
Is my text sent to AI?
No. This tool does not use AI and makes no server or AI call.
Does PocketSpry send my lines or settings to Plausible?
No. Your input, output, and settings are not sent to analytics.
What is the maximum input size?
200,000 characters.
Is the result AI generated?
No. It is computed deterministically in your browser.