Alphabetise names, tidy keyword lists or shuffle items. Natural sort puts "item 2" before "item 10", just like a person would.
How to use the Sort Text Lines
- 1 Paste your list with one item per line.
- 2 Choose the sort order and options.
- 3 Copy the sorted list.
Worked examples
Input: file10 file2 file1
Result: file1 file2 file10
Numbers compared by value
Alphabetical vs. natural sort
Plain alphabetical sorting compares character by character, so "file10" comes before "file2". Natural sort compares embedded numbers by value, which is usually what you want for file names, versions and numbered items.
Locale-aware ordering
Sorting uses your browser's language rules, so accented letters (é, ü, ñ) are placed alongside their base letters instead of at the end.
Private by design
All processing happens in your browser. Your text is never uploaded, logged or stored on a server.
Frequently asked questions
How do I alphabetize a list?
Paste it, choose A → Z and copy the result.
Can I sort numbers correctly?
Choose "Numeric" to sort by the first number in each line, or "Natural" for mixed text and numbers.
Is the random shuffle truly random?
It uses an unbiased Fisher–Yates shuffle with your browser's random number generator.
Related tools
Word Counter
Count words, characters, sentences and paragraphs, with reading time, speaking time, readability and keyword density.
Case Converter
Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, kebab-case and more.
Remove Duplicate Lines
Remove duplicate lines from a list while keeping the original order, with case-insensitive and trimming options.
Remove Extra Spaces & Line Breaks
Remove extra spaces, tabs, blank lines and line breaks, and strip invisible characters from copied text.
Reverse Text
Reverse text by characters, word order, line order, or flip each word in place.
Find and Replace
Find and replace text with case-sensitive, whole-word and regular-expression options, and see the number of replacements.