Sort lines of text alphabetically, numerically, by length, reverse the order or shuffle them — with case-insensitive and remove-duplicates options.

Paste a list, pick how to sort it and copy the result. All sorting happens in your browser.

A → Z
Z → A
Numeric ↑
Numeric ↓
Length ↑
Length ↓
Reverse
Shuffle
Your lines
Sorted lines
Your sorted lines will appear here.

About Sort Lines

Sort Lines reorders any line-based list in eight ways: alphabetically A to Z or Z to A, numerically ascending or descending, by line length shortest-first or longest-first, reversed, or shuffled into random order. Paste one item per line and the sorted result appears instantly.

Two options refine the result: ignore case treats “Apple” and “apple” as equal while sorting, and remove duplicates drops repeated lines in the same pass. A line counter keeps track of the list size, and the sorted output is one click away from your clipboard.

The numeric modes sort by actual value rather than character order, so 2 comes before 10. All sorting runs in your browser — nothing is uploaded, and the tool is free.

How to use Sort Lines

  1. Paste your list into the box, one item per line.
  2. Pick a sort order: A→Z, Z→A, numeric, by length, reverse or shuffle.
  3. Optionally enable “Ignore case” and “Remove duplicates”.
  4. Copy the sorted lines from the result panel.

Frequently asked questions

Paste your items one per line, choose A→Z, and the sorted list appears immediately. Pick Z→A for reverse alphabetical order, and enable “Ignore case” if capitalization should not affect the order.

Alphabetical sorting compares characters, and “1” comes before “2”. Switch to the numeric ascending or descending mode to sort by actual value, so 2 correctly comes before 10.

Yes. Turn on the “Remove duplicates” option and repeated lines are dropped in the same pass, combined with “Ignore case” if variants like “apple” and “Apple” should count as the same line.

Yes — pick the shuffle mode to put the lines in random order. It is useful for randomizing quiz questions, name draws or playlists; re-select it for a new arrangement.

Yes. It is free with no sign-up, and every sort runs in your browser — your list is never uploaded to a server.


Popular searches
sort lines alphabetical order tool sort text online sort list alphabetically sort numbers shuffle lines
Need help?
Found an issue with this tool? Let our team know.
Report an issue

Add this free tool to your own website — copy and paste the code below.