ToolWren logo ToolWren
ToolWrenText › Sort Lines

Sort Lines

Sort lines alphabetically, numerically or in reverse, with optional case-insensitivity and duplicate removal.

100% client-side · nothing is uploaded

Loading tool…

Quick answer

Sort Lines is a free, private online tool that lets you sort lines alphabetically (A-Z or Z-A), numerically, or reverse them, with dedupe. It runs entirely in your browser, so nothing you enter is uploaded to a server.

How to use the Sort Lines

  1. Paste your list, one item per line, into the Input box.
  2. Pick a mode — A→Z, Z→A, Numeric or Reverse.
  3. Tick Case-insensitive or Remove duplicates if needed.
  4. Click Copy to grab the sorted result.

Privacy: this tool runs entirely in your browser. Your input is never sent to, received by, or stored on any server — there are no uploads and no tracking of what you enter.

About Sort Lines

Sorting modes

Sort A-Z or Z-A, sort numerically by the number on each line, or simply reverse the current order.

Options

Case-insensitive sorting treats upper and lower case alike; the dedupe option removes repeats while sorting.

Where it helps

Organising lists, keywords, imports, CSV columns and any line-based data.

Frequently asked questions

Can it sort numbers correctly?
Yes — numeric mode sorts by value, not text.
Is it case-insensitive?
Optionally — toggle the checkbox.
Can it remove duplicates too?
Yes — enable Remove duplicates.

Understanding Sort Lines in depth

What a line sorter does

A line sorter reorders the lines of a block of text - alphabetically (A-Z or Z-A), numerically, or in reverse - and can optionally remove duplicates and ignore case while it sorts. It is the quick way to organise any list without pasting it into a spreadsheet.

The sorting modes

A-Z and Z-A sort alphabetically, ascending or descending. Numeric sorts by the number on each line by value rather than as text, so 2 comes before 10 (a plain alphabetical sort would wrongly put 10 first). Reverse simply flips the current order without sorting. Together these cover the common ways you need a list arranged.

Case sensitivity and duplicates

The case-insensitive option treats 'Apple' and 'apple' as equal when ordering, which usually gives a more natural result for mixed-case lists. The remove duplicates option de-duplicates while sorting, combining two cleaning steps in one. Both are toggles you can turn on as needed.

Why numeric sorting matters

A frequent frustration is that ordinary alphabetical sorting treats numbers as text, producing 1, 10, 11, 2, 3... Numeric mode reads the value of each line so it sorts 1, 2, 3, 10, 11 correctly. This matters whenever your lines start with or contain numbers - versions, IDs, quantities, rankings.

Common uses

Alphabetise a list of names, tags or imports; sort numbers by value; reverse an order; and tidy data exports or CSV columns. Combined with the dedupe option it is a one-step list cleaner. Paste your lines, pick a mode, and copy the result - all in your browser.

Related & complementary tools

More Text tools