Text Sorter
Sort any list line by line: A to Z, Z to A, natural order (so "item2" comes before "item10"), by line length or in reverse. You can also shuffle lines using your browser's cryptographic random generator, remove duplicates and empty lines, and choose whether case matters.
How to use the Text Sorter
- Paste your list with one item per line.
- Choose a sort order from the menu.
- Tick options such as ignore case or remove duplicates.
- For shuffle, press "Shuffle lines" — press again for a new order.
- Copy or download the sorted list.
Features
- Alphabetical A–Z and Z–A using language-aware sorting
- Natural numeric sort for file names and numbered items
- Sort by length, shortest or longest first
- Reverse the current order or shuffle with a cryptographically secure random source
- Optional duplicate removal, empty-line removal and trimming
Benefits
- Organise lists, references and names in seconds
- Fair random order for draws, quizzes or playlists
- Accented letters sort where readers expect them
Frequently asked questions
What is natural sort?
Natural sort compares numbers inside text by their value, so "Chapter 2" comes before "Chapter 10". Plain alphabetical sorting would put "Chapter 10" first.
How random is the shuffle?
It uses the Fisher–Yates algorithm with numbers from your browser's crypto.getRandomValues, so every order is equally likely.
Does ignore case affect duplicate removal?
Yes. With ignore case on, "Apple" and "apple" are treated as duplicates and only the first is kept.
Related tools
- Character Counter — Count characters with and without spaces, letters, digits and UTF-8 bytes, with live limit bars for X, SMS, titles and meta descriptions.
- Word Counter — Count words, characters, sentences and paragraphs live, with reading time and top keywords.
- Case Converter — Convert text to UPPER, lower, Title Case, Sentence case, camelCase, snake_case, kebab-case, CONSTANT_CASE and more.
- Remove Duplicate Lines — Delete repeated lines from a list, with options to ignore case, trim spaces, drop empty lines and keep the first or last copy.
- Text Diff Checker — Compare two texts side by side or in a unified view and highlight added and removed lines, words or characters.
- Sentence Counter — Count sentences and see average sentence length, the longest and shortest sentence, and a numbered list of every sentence.