↕️

Sort Lines

Sort text lines alphabetically, reverse, by length, or numerically.

Input
Output

How to Use

1
Paste linesPaste any list of lines into the Input field.
2
Choose sort orderSelect from alphabetical, reverse, by length, numeric, or random.
3
Set optionsToggle case sensitivity, blank line removal, or unique-only filtering.
4
Click SortThe sorted result appears in the Output field instantly.
5
Copy resultUse the Copy button to copy the sorted output to your clipboard.
📌 All processing happens locally in your browser. Your data is never uploaded.

About Sort Lines

Editing and transforming text manually is tedious and error-prone. Sort Lines automates the process so you can sort text lines alphabetically, reverse, by length, or numerically in one click. It works with any length of text, from a single sentence to thousands of lines, and runs entirely in your browser for complete privacy.

Frequently Asked Questions

Numeric sort parses the beginning of each line as a number and sorts them in ascending numeric order. Lines that don't start with a number are placed at the end.
When enabled, duplicate lines are removed from the output before sorting. This combines deduplication and sorting in one step.
Random shuffle uses the Fisher-Yates algorithm to randomly reorder all lines. Each click produces a different random order.
Yes. For equal elements, the original relative order is preserved (stable sort). This means if two lines are identical, they maintain their original sequence.