Sort Lines Alphabetically – Text Sorter
Sort lines of text alphabetically (A to Z, Z to A), by line length, shuffle randomly, or remove duplicate entries.
How to use Text Sorter & Alphabetizer
Paste your lines of text into the input editor.
Select a sorting mode: A to Z, Z to A, Shortest First, Longest First, or Shuffle.
Optionally toggle Deduplicate to remove duplicate entries or Case Sensitive to preserve exact letter casing.
Copy the sorted text to your clipboard or download it as a .txt file.
Features
5 Sorting & Ordering Modes
Sort lines alphabetically from A to Z, reverse alphabetical from Z to A, by shortest or longest length, or randomize order with Shuffle.
Deduplication & Case Sensitivity
Optionally filter out repeated lines and choose locale-aware case-sensitive or case-insensitive comparisons.
Instant Copy & File Download
Review live line counts and export sorted text via one-click clipboard copy or as a plain text .txt file.
Related Text Tools
Remove Duplicate Lines
Remove duplicate lines from lists and text with optional case sensitivity, whitespace trimming, and empty line filtering.
Whitespace & Blank Line Cleaner
Remove duplicate spaces, trailing whitespace, blank lines, and convert tabs to 2 spaces across your text.
Case Converter
Convert text between 12 casing styles including uppercase, lowercase, Title Case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE.
Word Counter
Count words, characters, sentences, paragraphs, reading time, and keyword frequency directly in your browser.