Sort Text Lines

Sort lines A to Z, Z to A, reverse or shuffle them.

Also called: sort lines alphabetically, alphabetize list.

FreeNo sign-upRuns in your browser
TEXT & WRITING

Sort Text Lines

Sort lines A to Z, Z to A, reverse or shuffle them.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading tools…

Watch: how to use the Sort Text Lines (14 seconds)

Recorded on a phone, steps written on screen, no sound.

About the Sort Text Lines

Sort lines A to Z, Z to A or shortest first, reverse their order, or shuffle them randomly.

How to use the Sort Text Lines

  1. Enter your textType or paste your text.
  2. Pick the optionsmethod (the defaults suit most uses).
  3. Press Run toolThe result appears right under the button.
  4. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Example

The result the Sort Text Lines gives for a short sample note that contains a date, an e-mail address, a web address, a phone number and prices (produced by the tool itself).

Method
A to Z

Result:

Café Olé opened on 12 March 2025 in Lahore.
Call +92 300 1234567 to order; delivery is free over 1500 rupees.
Email hello@example.com or visit https://example.com/menu for the menu.
The café serves 3 kinds of coffee and 2 kinds of tea.

Good to know

What you need
You type or choose: Input text
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Questions

Does it sort numbers correctly?

For numbers, use Number Sorter & Statistics.

Can I remove duplicates too?

Use Remove Duplicate Lines.

More tools in Text & Writing

See all Text & Writing tools