Sort Lines

Paste a list and reorder it instantly — alphabetically, numerically or by length — with options to remove duplicates and trim whitespace.

🔒 100% private — nothing is uploaded
Sort by
Direction

0 lines

0 lines

How the line sorter works

Everything re-sorts the moment you type or change an option — no button to press.

1

Paste your list

Drop in names, URLs, numbers, keywords — anything with one item per line.

2

Pick how to sort

Alphabetical A→Z or Z→A, true numeric order, or shortest-to-longest by length. Toggle case sensitivity, trim, and de-duplicate.

3

Copy or download

Grab the sorted list with Copy, or save it as a .txt file — nothing is ever sent anywhere.

About the sort options

Alphabetical ordering uses locale-aware comparison, so accented characters sort naturally alongside their plain counterparts. Numeric sorting reads the first number it finds on each line and orders by value — so 10 correctly comes after 2, unlike plain text sorting. Lines without a number sink to the bottom.

By length orders lines from shortest to longest (or the reverse). Turn on Case-sensitive to make uppercase and lowercase sort separately; Trim whitespace strips leading and trailing spaces from every line; Remove duplicates keeps only the first occurrence of each line; and Drop blank lines discards empty rows.

This tool is handy for tidying lists, alphabetising glossaries, deduplicating exports, and cleaning up data before pasting it somewhere else.

🔒

Private by design. Your text never leaves your device. All sorting happens right here in your browser — nothing is uploaded or stored.

Frequently Asked Questions

What ways can I sort my lines? ▼
Three: Alphabetical (A→Z or Z→A), Numeric by the value on each line, or by Length from shortest to longest.
Does numeric sorting handle numbers correctly? ▼
Yes. It reads the first number on each line and orders by value, so 10 correctly comes after 2 — unlike plain alphabetical sorting. Lines without a number sink to the bottom.
Can I remove duplicates while sorting? ▼
Yes. Tick Remove duplicates to keep only the first occurrence of each line, and Drop blank lines to discard empty rows.
How do I control upper vs lower case order? ▼
Turn on Case-sensitive to sort uppercase and lowercase separately. Leave it off and accented letters sort naturally alongside their plain versions.
Can I copy or download the sorted list? ▼
Yes — copy it with one click, or download it as a plain text file.
Is my text uploaded anywhere? ▼
No. All sorting happens in your browser on your own device — nothing is uploaded or stored.