Line Sorter

Paste a list and get it back in order. Alphabetical, numeric, by length, reversed or randomly shuffled, with optional trimming and duplicate removal — perfect for CSV columns, inventory lists, glossaries and to-do lists.

Your text

Sort options

Sorted result

Paste your list above — the sorted result appears here instantly.

Lines in
1
Lines out
0
Duplicates removed
0
Empty lines removed
1
Most processing happens locally in your browser. Your text never leaves your device.

Related tools

How to use

  1. 1

    Paste your list, one item per line.

  2. 2

    Pick a sort order, for example A → Z or numbers low → high.

  3. 3

    Turn on trimming, empty-line and duplicate removal as needed.

  4. 4

    Copy or download the sorted list.

Supported formats

Accepts

Produces

FAQ

Yes. The alphabetical sort understands numbers inside text, so Item 2 is placed before Item 10 instead of after it.

The first number found in each line decides its position, so “Order 1043 — pending” sorts by 1043. Lines without a number keep their order at the end.

Yes — trim whitespace, drop empty lines and remove duplicate lines in the same step.

No. Sorting happens entirely on your device.

About this tool: Line Sorter

Put any list in order, then clean it up

Sorting a list sounds trivial until numbers are involved. Alphabetical order puts "10" before "9", because it compares character by character — which is why a spreadsheet column of IDs or prices comes back wrong so often. The numeric modes here compare the values as numbers, so 2, 9, 10, 100 sort the way you expect. Length sorting is the quick way to spot outliers, and shuffle is genuinely useful for randomising a draw or a test order.

The cleanup options matter as much as the order. Trimming removes the invisible leading and trailing spaces that arrive with anything copied out of a web page or a PDF — and those spaces break both sorting and deduplication, because " apple" and "apple" are different strings. Removing empty lines and duplicates turns a messy paste into a clean list in the same pass.

The practical sequence is to trim first, then deduplicate, then sort: cleaning before comparing is what makes the duplicate removal actually catch everything. Everything runs as plain JavaScript in the page, so a customer list or an export of internal data stays in your browser.

Like every Piclizer tool, this one runs entirely in your browser — your files stay on your device.