Free Sort Lines
Unsorted lists are hard to scan and full of hidden duplicates. Paste your lines here and sort them A–Z, Z–A, numerically or by length — with optional case-insensitive sorting and one-click deduping.
How to Use the Sort Lines
- Paste your lines, one per line.
- Choose the sort mode.
- Tick ignore-case or dedupe if needed, then click “Sort lines”.
- Copy or download the sorted list.
Features
Six sort modes: A–Z, Z–A, numeric ascending/descending, length short–long/long–short, plus plain reverse. Numeric mode extracts numbers from within text; optional case-insensitive comparison and duplicate removal run in the same pass.
Benefits & Use Cases
Organize keyword and tag lists alphabetically. Sort numeric data pasted from reports. Tidy config files and enum lists. Prepare sorted, deduped data for imports without spreadsheet gymnastics.
Tips
Numeric mode sorts by the first number found in each line — perfect for “Item 2” vs “Item 10”, which alphabetical mode would order wrong. Combine dedupe with A–Z for a clean unique sorted list in one click. Length sorting is great for finding outliers.
Frequently Asked Questions
Is the line sorter free?
Yes, free and unlimited.
How does numeric sorting work?
It finds the first number in each line and sorts by its value, so “Item 10” correctly follows “Item 2”.
Can it remove duplicates too?
Yes — tick “Remove duplicate lines” before sorting.
Is sorting case-sensitive?
By default it ignores case; the option is on but you can change the behavior per run.
Is my list uploaded?
No, sorting happens locally in your browser.
Related Tools
Remove Duplicate Lines
Delete duplicate lines free online while preserving original order. Optional case-insensitive matching with removed-count report — no sign-up.
Open tool →Find and Replace
Find and replace text free online with regex support. Count matches, preview highlights, replace all — runs in your browser, no sign-up.
Open tool →Text Cleaner
Clean messy pasted text free online: trim lines, collapse spaces, fix smart quotes, normalize line endings — one-click pipeline, no sign-up.
Open tool →Remove Extra Spaces
Remove extra spaces from text free online. Collapse multiple spaces, trim every line and delete empty lines — with saved-character count. No sign-up.
Open tool →Line Counter
Count lines instantly with this free online line counter. Live totals for all, non-empty and empty lines plus longest line — no sign-up needed.
Open tool →