Free online sort text lines tool
This tool takes any list of lines and puts them in the order you want — alphabetically from A to Z or Z to A, numerically by the value at the start of each line, reversed, or shuffled into a random order. It's perfect for tidying keyword lists, names, CSV columns, log entries, and any text where order matters. The result updates live as you type or paste, and nothing ever leaves your browser.
How to sort lines of text
- Paste or type your lines into the Input lines box.
- Choose a Sort order — A → Z, Z → A, numeric, reverse, or shuffle.
- Optionally tick Case insensitive so
Appleandapplesort together. - Tick Remove duplicate lines, Remove empty lines, or Trim each line to clean up as you go.
- Click Copy output to grab the sorted list, or Clear to start again.
Alphabetical, numeric, reverse, and random
Alphabetical sorting uses natural locale ordering, while
Numeric ascending and Numeric descending
read the leading number on each line so that 2 comes before
10; lines without a number drop to the bottom.
Reverse flips your list exactly as it stands, and
Shuffle gives a fair random order every time.
Related text tools
Want to strip repeats before sorting? Try the Remove Duplicate Lines tool. To measure the length of your list once it's sorted, head over to the Word Counter. Everything runs privately in your browser, with no sign-up and no limits.