📝 Text Tools 100% Free

Line Sorter

Sort lines of text alphabetically, numerically, reverse or shuffle them — with optional de-duplication.

Loading tool…

Sort lines of text in seconds

The Line Sorter arranges a list of lines however you need — alphabetically (A–Z or Z–A), numerically, in reverse, or randomly shuffled — and can remove duplicates at the same time. Paste your list, pick a mode, and copy the sorted result. It runs entirely in your browser.

Sorting modes

ModeUse
A → Z / Z → AAlphabetical order, ascending or descending
Numeric ↑ / ↓Sort lines as numbers
ReverseFlip the current order
ShuffleRandomize the order

How to use it

  1. Paste your lines.
  2. Choose a sorting mode.
  3. Optionally remove duplicates, then copy the result.

Alphabetical vs numeric sorting

This distinction trips people up. Alphabetical sorting treats lines as text, so "10" comes before "2" (because "1" sorts before "2"). Numeric sorting reads each line as a number, so 2 correctly comes before 10. Pick numeric mode whenever your lines are numbers — prices, IDs, scores — to get the order you actually expect.

Common uses

  • Alphabetizing names, terms, or a glossary.
  • Ordering a list of items or tasks.
  • Sorting and de-duplicating data before import.
  • Randomizing a list for fair ordering or sampling.

Remove duplicates while sorting

The de-duplicate option removes repeated lines as it sorts, giving you a clean, unique, ordered list in one step. This is handy for tidying up lists pasted from multiple sources, where the same entry often appears more than once.

Private and free

All sorting happens in your browser — your list is never uploaded. The tool is completely free with no limits.

Frequently asked questions

Can it sort numbers correctly?

Yes. Use a numeric mode so 2 comes before 10 — alphabetical sorting would put 10 before 2.

Can it remove duplicates?

Yes. Enable 'remove duplicates' to get a clean, unique sorted list in one step.

Does it support reverse and shuffle?

Yes. You can reverse the current order or randomly shuffle the lines.

Is my list private?

Yes. Everything runs in your browser and nothing is uploaded.