Text Tools
Sort Lines
Sort any list of lines alphabetically, in reverse order, numerically, or randomly, in one click. Handles hundreds of thousands of lines instantly, all in your browser.
Paste lines of text and choose a sort order below.
Processed in your browser; your text is never uploaded
Features
- Alphabetical (A-Z) and reverse (Z-A) sort
- Numerical sort for number lists (natural sort order)
- Random shuffle for list randomisation
- Case-insensitive sort option
- Remove blank lines before sorting option
- Shows line count before and after
How to use it
- Paste your list into the input panel.
- Select the sort type: A-Z, Z-A, Numerical, or Random.
- Sorted list appears instantly in the output panel.
- Copy or download the sorted result.
Use cases
- Alphabetising a list of names or keywords
- Sorting file paths for comparison or documentation
- Numerically ordering log line IDs or version numbers
- Randomising a list of items for a random assignment
Limitations
- Supports ascending, descending, length ascending, length descending, and random shuffle.
- Very large text blocks depend on browser memory.
- Processing happens entirely in the browser tab.
Related tools
Remove Duplicate Lines
Remove duplicate lines from any text list instantly. Case-insensitive mode, blank line removal, and sorted output options. All in your browser, no upload.
Use toolRemove Empty Lines
Remove all empty and blank lines from text instantly. Optionally remove lines with only whitespace, paste and get clean output in one click.
Use toolLine Counter
Count total, empty, and non-empty lines in any text instantly. Paste or upload a file, live stats, no upload required.
Use toolWord Counter
Count words, characters, sentences, paragraphs, and reading time in real time. Paste or upload text, live stats update as you type, all in your browser.
Use toolCharacter Counter
Count characters with and without spaces, words, lines, and UTF-8 bytes in real time. Essential for Twitter, SMS, meta tags, and form field limits.
Use toolCase Converter
Convert text between uppercase, lowercase, title case, sentence case, camelCase, snake_case, and kebab-case instantly. Paste text and click. All in your browser.
Use toolFrequently asked
What is the difference between alphabetical and numerical sort?
Alphabetical sort compares character by character, so '10' comes before '9'. Numerical sort treats values as numbers, so 9 comes before 10.
Does case matter in alphabetical sort?
By default, uppercase letters sort before lowercase. Enable case-insensitive mode to sort 'apple' and 'Apple' together.