Text Tools
Sort Lines
Sort lines alphabetically (A→Z or Z→A), numerically (ascending or descending), by length, in reverse, or shuffled. Toggle case-insensitive comparison to put "apple" and "Apple" next to each other.
Your input is processed locally in your browser. It is not uploaded to Dueneo.
Loading Sort Lines…
How to use
- 1
Paste your lines
Drop one item per line — names, numbers, file paths, anything.
- 2
Pick a sort mode
Choose alphabetical, numeric, reverse, shuffle or by length. Toggle case-insensitive if you want "Apple" and "apple" adjacent.
- 3
Sort
Click Sort lines. The result replaces the output box on the right.
- 4
Copy or save
Use Copy to put the result on your clipboard, or Save to download sorted-lines.txt.
Common use cases
- Alphabetise a list of names for a directory or attendee list.
- Sort numeric IDs in ascending order before joining a database table.
- Reverse a list of git commits so the latest appears at the bottom.
- Shuffle a list of participants for a random presentation order.
Limitations
- Numeric sort extracts the leading number from each line; lines without a leading number sort after numeric lines.
- Shuffle uses
Math.randomand is not cryptographically secure. - Sorting uses the default Unicode code-point comparison, which sorts uppercase before lowercase when case-sensitive.
- Inputs larger than 1 MB are flagged but still processed on the main thread.
Frequently asked questions
Related tools
View allRemove Duplicate Lines
Remove duplicate lines from a list, case-sensitive or not.
Open
Reverse Text
Reverse text characters, words or lines.
Open
Remove Empty Lines
Strip blank lines from text instantly.
Open
Text Cleaner
Clean text by removing extra spaces, empty lines and special characters.
Open