Sort Lines Z–A

Put every line of your list into reverse alphabetical order, from Z to A.

Tip: press Ctrl + Enter to run.

About the Sort Lines Z–A

Reverse alphabetical order is useful when you want the end of the alphabet first, or when you want the highest-numbered items at the top of a list. This tool sorts your lines from Z to A.

It uses the same natural, case-insensitive comparison as our A–Z sorter, so “Version 10” comes before “Version 9” in descending order. Empty lines are removed by default.

How to use it

  1. Paste your list, one item per line.
  2. Choose whether to remove empty lines.
  3. Click Sort Z–A and copy the result.

Example

Input
Version 9
alpha
Version 10
Zulu
bravo
Result
Zulu
Version 10
Version 9
bravo
alpha

When to use it

  • Listing versions or file names with the newest first.
  • Reversing an alphabetical list without re-typing it.
  • Sorting leaderboards or labels in descending order.
  • Checking a list from the bottom of the alphabet.

Frequently asked questions

How are numbers ordered?

By value, so higher numbers come first when sorting Z–A.

Does it keep duplicate lines?

Yes. Use Remove Duplicate Lines if you want unique items.

Is uppercase sorted separately?

No. Letter case is ignored when comparing lines.

Is the text I enter kept private?

Yes. The Sort Lines Z–A runs entirely in your web browser, so your text is never uploaded to or stored on our servers. Like most free websites, TextForge shows ads from Google, which may use cookies. See our Privacy Policy for details.