Sort Text Lines
TextSort lines alphabetically or by numeric value.
Instructions, example & limitations
How it works
Paste lines and choose ascending, descending or numeric sorting.
Example
Numeric ascending sorts 2 before 10.
Know the limits
Alphabetical sorting uses English collation. Numeric mode requires a finite number on every line.
Processing stays in your browser. Files and text are never sent to a processing service. Page assets still load from this website.
About Sort Text Lines
Sort Text Lines rearranges a pasted list without editing the contents of each entry. Alphabetical ordering uses English collation, while numeric mode compares the value of every line. Select the mode according to what the lines represent; a text comparison can put number strings in an order that differs from their numeric magnitude.
Use one entry per line and inspect the result before moving it into another system. Numeric mode requires a finite number on every line, so headings, units or mixed descriptions must be removed or handled separately. Sorting does not remove duplicates, validate identifiers or understand relationships between adjacent lines. Keep multi-line records together outside this tool.
How to Use Sort Text Lines
- Paste your list of items or data lines into the input editor.
- Select sorting criteria: alphabetical (A-Z or Z-A), numerical, case sensitivity, or reverse.
- Review the sorted output lines and copy to clipboard or download as a text file.
Key Features & Privacy
- Sorts text lines alphabetically or numerically with ascending and descending order options.
- Intelligently parses numbers within strings for natural numerical sorting.
- All sorting operations run locally in browser memory with zero network requests.
Practical examples
Alphabetize a simple list
Paste independent names or labels and choose ascending or descending alphabetical order. Check language-specific names against your preferred dictionary rules if English collation is not appropriate, and leave duplicates unless a separate cleanup step is wanted.
An ascending list of pear, apple and banana becomes apple, banana, pear.
Order numeric measurements
Choose numeric mode for a list containing only numbers. This compares values rather than their text representation. Keep a separate copy of any units or labels, because the numeric field is not designed to parse annotated measurements.
Numeric ascending places 2 before 10, unlike a simple character-by-character comparison.
Detailed walkthroughs
Continue your workflow
Choose your next step. Content is not transferred automatically.
- JSON to CSV Converter — Convert sorted records into a structured CSV spreadsheet table.
Sort Text Lines FAQs
How does alphabetical sorting compare text?
Alphabetical mode uses English collation. Results can differ from language-specific dictionary ordering.
Why should I use numeric mode for numbers?
Numeric mode compares numeric values, so 2 comes before 10 in ascending order rather than sorting their text representations.
Can numeric mode sort mixed text and numbers?
No. Every line must contain a finite numeric value. Invalid entries are rejected rather than silently dropped.
Is Sort Text Lines free, and is my input uploaded?
It is free and requires no account. Processing happens in your browser with zero tool-input uploads to a processing server. Website assets still load from this host, whose provider may keep normal access logs.