Text Sorter
Our free text sorter rearranges the lines of your text in one click. Sort alphabetically (A to Z or Z to A), numerically, or by line length, in either direction. Perfect for lists, glossaries, CSV rows and any ordered data. Everything runs in your browser, so your text never leaves your device.
How to use Text Sorter
- 1
Paste your lines
Add the data you want to sort.
- 2
Pick a sort mode
Choose alphabetical, numeric or by length, and direction.
- 3
Copy the result
Grab your sorted text for reuse.
Why sort your text?
Ordered data is easier to scan and compare. Whether you're alphabetizing a list, sorting grades numerically or re-ordering names by length, a sort tool saves you from doing it by hand.
What sorting modes are available?
Alphabetical (case-insensitive), numeric, and by line length — each ascending or descending. Numeric mode handles mixed text gracefully by leaving non-numeric lines last.
Examples
Alphabetize a list
- Input
- Names in any order
- Output
- Sorted A to Z
Sort numbers
- Input
- Scores 10, 2, 20, 1
- Output
- Sorted 1, 2, 10, 20
Frequently asked questions
Does the alphabetical sort ignore capitalization?
Yes. 'Apple' and 'apple' compare as equal, so their relative order is preserved rather than pushing lowercase words first.
How does numeric sorting work?
Each line that is a number is sorted numerically, so 10 comes after 2 (not after 1). Lines that aren't numbers are grouped at the end in alphabetical order.
Is my text uploaded anywhere?
No. Everything runs in your browser and your text never leaves your device.
More text tools
Case Converter
Client-SideConvert text to uppercase, lowercase, Title Case, Sentence case, camelCase, PascalCase, kebab-case and snake_case instantly. Free and 100% private.
Character Counter
Client-SideCount characters, letters, digits, punctuation and words instantly. Includes a no-spaces count. Free, fast and 100% private in your browser.
Find & Replace
Client-SideFind and replace text instantly with optional case-sensitivity and whole-word matching. Free, offline tool that never uploads your text.
Line Counter
Client-SideCount lines, non-empty lines, blank lines and average line length instantly. Free, fast and 100% private in your browser.
Random Text Generator
Client-SideGenerate lorem-style random text — words, sentences or paragraphs — in one click. Free, instant and fully private in your browser.
Remove Duplicate Lines
Client-SideRemove duplicate lines from any text instantly. Keeps the first occurrence and reports how many lines were removed. Free and 100% private.
Related tools
Case Converter
Client-SideConvert text to uppercase, lowercase, Title Case, Sentence case, camelCase, PascalCase, kebab-case and snake_case instantly. Free and 100% private.
Remove Duplicate Lines
Client-SideRemove duplicate lines from any text instantly. Keeps the first occurrence and reports how many lines were removed. Free and 100% private.
Reverse Text
Client-SideReverse text by characters, words or lines instantly. Emoji and accented letters stay intact. Free and 100% private in your browser.
Last updated 7 August 2026