Sort Lines
Sort a list of lines alphabetically, by length or numerically, in either direction, with optional case-sensitivity, trimming and duplicate removal. Runs entirely in your browser.
How it works
Lines are sorted alphabetically, by length, or numerically (using the first number found on each line). Reverse simply flips the current order. Sorting is case-insensitive by default; tick the box to make capitals matter. You can also trim spaces and drop duplicate lines in one pass.
Your list stays in your browser, nothing is uploaded.
What this does
This tool sorts a list of lines alphabetically, by length or numerically, in either direction, with optional trimming and duplicate removal.
How to use it
- Paste your list.
- Choose a sort type and direction.
- Toggle case-sensitivity, trim or de-dupe.
- Copy the sorted list.
How it works
Numeric sorting reads the first number on each line, so “item 2” comes before “item 10”. Alphabetical and length sorts can run case-sensitively or not, and duplicates can be dropped in the same pass.
Understanding your result
Sorting only reorders lines, it never changes their content, so a surprising order usually means the mode does not match your data: numeric sort reads the first number on each line (item 2 beats item 10), while alphabetical sort treats digits as characters (10 comes before 2). Watch the case-sensitivity toggle, and remember that trimming or duplicate removal, if enabled, also changes the line count, not just the order.
Example
Sorting “10, 2, 1” numerically gives 1, 2, 10 instead of 1, 10, 2.
Sources & methodology
Last updated .
Frequently asked questions
How does numeric sorting work?
It reads the first number found on each line and orders the lines by that value, so “item 2” comes before “item 10”.
Can I sort and de-duplicate at once?
Yes. Tick “Remove duplicates” to drop repeated lines in the same pass as the sort.
Is my list uploaded?
No. Sorting happens locally in your browser; your list is never sent anywhere.
Related tools
Word Counter
Count words, characters, sentences, paragraphs and lines as you type, with an estimated reading time. Fast and private, your text is analysed in your browser.
Case Converter
Convert text between UPPER, lower, Title, Sentence case and programmer styles like camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE. Instant and in-browser.
Slug Generator
Turn any title into a clean, URL-friendly slug: accents are stripped, spaces and symbols become hyphens, and the result is lowercased. Slugify many lines at once, all in your browser.
Remove Duplicate Lines
Remove duplicate lines from a list while keeping the first occurrence and the original order. Optional case-insensitive matching, trimming and sorting, all in your browser.