Sort Lines Online
Sort one value per line by alphabetical or numeric order, clean copied lists, and copy a stable output for configs, spreadsheets, and debugging.
Quick answer
This page sorts newline text in ascending or descending order and keeps the result as one value per line.
It is useful for config keys, IDs, tag lists, exports, and any list that becomes easier to scan after sorting.
InputOne value per line
OutputSorted lines
How to use
- Paste one value per line into the input box.
- Choose alphabetical or numeric sorting.
- Copy the sorted output.
Common questions this page answers
- How do I sort lines alphabetically online?
- How do I sort a list of numeric strings?
- How do I normalize and sort copied values before comparing them?
Example input and output
Input
gamma
alpha
delta
beta
Output sorted A to Z
alpha
beta
delta
gamma
FAQ
Can I sort numbers numerically instead of alphabetically?
Yes. Use the numeric presets when your lines contain numeric strings like IDs or counters.
Will it remove blank lines?
It can. Leave skip-empty enabled if you want blank rows removed before sorting.
Can I trim whitespace before sorting?
Yes. Turn on trim to sort based on normalized values.