Skip to content
I Hate Online Tools

Line sorter

Sort lines A–Z, reverse, or numeric.

Runs in this tab. The file stays here.

Sorted lines

This runs in your browser. Nothing is uploaded.

About Line sorter

Sort newline-separated lines alphabetically, reverse, or numerically in your browser.

Sorting a list should not require a spreadsheet or a script you have to trust. Paste lines, pick ascending, descending, or a numeric interpretation, copy the result. Ordinary JavaScript string compare powers the alphabetical modes — locale quirks included.

Numeric mode helps when the lines are mostly numbers and you do not want '10' sorting before '2' as text. Mixed content still follows the mode you chose; garbage in remains garbage in.

Remove duplicates first on the duplicate-line tool if you need a unique sorted list. Case converter changes casing without sorting. Slug generator is for URL titles, not list order.

How to use Line sorter

  1. 1Paste newline-separated lines.
  2. 2Choose alphabetical, reverse, or numeric sort.
  3. 3Copy the sorted output.

What it won't do

  • Whole-line sort, not multi-column.
  • Not a full Unicode collation customizer.

Common questions

Does line sorter use locale-aware sorting?

It uses ordinary JavaScript string comparison. For language-specific collation rules you may still want a dedicated locale tool.

How does numeric sort treat non-numbers?

Non-numeric lines are handled best-effort alongside parsed numbers. Clean the list if you need strict numeric-only order.

Can I sort by a CSV column?

No — whole lines only. Split columns elsewhere first if you need field-aware sorting.

Related tools

Why this one doesn't upload your file

There is no server to upload to. This page is a static file, and the work happens in your browser using the same graphics and WebAssembly code that renders every other site you visit. Your file is read from disk into memory, processed, and handed back as a download. Once the page has loaded you can disconnect from the network entirely and it keeps working. The longer explanation

Install the app