● online

Sort Lines Alphabetically

Put any list in order with one click: A to Z, Z to A, natural number order where 2 comes before 10, by length, reversed, or randomly shuffled.

Advertisement

How to use the Sort Lines Alphabetically

  1. Paste your text with one item per line.
  2. Pick options such as ignoring case and removing duplicates or empty lines.
  3. Click the sort you want, then copy the result.

About the Sort Lines Alphabetically

Plain alphabetical sorting puts “item 10” before “item 2” because it compares character by character. The Numbers mode uses natural sorting, which reads the numbers inside text and orders file names, chapter titles and version numbers the way a person would. Case-insensitive sorting stops capitalised words from all jumping to the top. Shuffle uses your browser’s cryptographic random generator, so it is suitable for randomising a quiz order or a raffle list. Sorting respects accented letters in most languages because it uses your browser’s locale-aware comparison.

Advertisement

Frequently asked questions

How do I sort numbers correctly so 10 comes after 9?

Use the “Numbers (1, 2, 10)” button. It recognises numbers inside each line and sorts them by value.

Can I sort in reverse alphabetical order?

Yes — press Z → A. “Reverse order” instead flips the current order without sorting.

Is the shuffle truly random?

It uses the browser’s cryptographically secure random numbers and an unbiased Fisher–Yates shuffle.

Does it work with accented and non-English letters?

Yes. Sorting uses locale-aware comparison, so é sorts with e and other alphabets sort in their natural order.

Related free tools

← Back to all 150 free online tools

Runs in your browser — what you enter stays on your device. Published .

The Tools Guru Editorial Team

Three front-end engineers and technical writers in Punjab, Pakistan, shipping browser software since 2011. Every formula on this site is implemented from a primary source and checked against an independent reference implementation before release — see our editorial policy. Spotted a wrong number? Tell us and we will reproduce it, usually the same working day.

Advertisement

Explore all 150 free tools

Results filter as you type. Press Control plus K to jump here. Ctrl K
150tools0uploads to servers100%free forever

Trending now

All tools