Sort Lines

🔒 Your text is processed locally in the browser.

🔒 Privacy: Inputs remain on your device and are not sent to a server.

Sort Lines

Sort any list alphabetically, reverse, or numerically, with an option to remove empty lines.

How to sort a list

Paste your list (one item per line), choose a sort order — A-Z, Z-A, or numeric — and optionally remove empty lines. In numeric mode, each line is converted to a number and sorted by its value.

Frequently Asked Questions

How does numeric sort work?

In numeric mode, each line is converted to a number (when possible) and sorted by that value instead of alphabetically. Non-numeric lines are placed at the end.

Is the alphabetical sort language-aware?

Yes — it uses the browser’s standard locale comparison, which handles accented letters and special characters sensibly.

What happens to empty lines?

By default they stay in the list. Check "Remove empty lines" to strip them out before sorting.