Loading...
Loading...
We use cookies to enhance your experience, analyze site usage, and serve personalized content. By clicking "Accept All," you consent to our use of cookies. See our Cookie Policy and Privacy Policy for details.
Sort lines, remove duplicates, filter empty lines, and randomize text
Text line sorter with 8 modes: A-Z, Z-A, length ascending, length descending, numeric sort, natural sort (human-friendly), reverse order, and randomize. Supports deduplication, empty line removal, trimming whitespace per line, case-sensitive toggle, and a paste button for quick input from clipboard.
Sorting lines of text manually is slow and error-prone. This tool provides a variety of sort orders and preprocessing options so users can organize any list-based text in one click.
Anyone who works with lists, CSV extracts, keyword collections, code imports, or any line-delimited text that needs ordering or deduplication.
Paste or type text (one item per line) into the input area; use the paste button to quickly load clipboard content.
Select a sort mode: A-Z, Z-A, Length ↑, Length ↓, Numeric, Natural, Reverse, or Randomize.
Toggle case-sensitive sorting on or off — when off, all lines are compared case-insensitively.
Enable Remove Duplicates, Remove Empty Lines, and Trim Each Line as needed via checkboxes.
Click Sort to process the text; the output appears in the result area with line count shown.
Use the copy button to copy the sorted output to your clipboard.
Input: lines "banana", "Apple", "cherry", "Banana", "" with A-Z sort, case-insensitive, remove duplicates, remove empty → Output: ["Apple", "banana", "cherry"] (4 lines → 3 lines)Input: lines "file2.txt", "file10.txt", "file1.txt", "file20.txt" with Natural sort → Output: ["file1.txt", "file2.txt", "file10.txt", "file20.txt"] (numeric-aware ordering)each click produces a fresh random order using a cryptographically secure PRNG.
each line is treated as a single item. Use a spreadsheet for columnar sorting.
Count words, characters, sentences, and analyze text readability with Flesch scores
Test and debug regular expressions with real-time matching, capture groups, and extended flags
Live preview and edit Markdown with syntax highlighting
Calculate subnet masks, CIDR notation, and IP ranges
Dive deeper with our comprehensive guides and tutorials.