Sort Text Lines
Sort lines alphabetically, by length or numerically — reverse, ignore case, drop blanks and duplicates.
Stays on your device. This tool runs in your browser — nothing you paste or open ever leaves it. Nothing uploaded, nothing to leak.
↳ received from
Your text
Sorted
Help us improve
Was this tool useful? Tap a star.
Thanks — your rating helps others find it.
A text sorter reorders the lines of your text. TechWhack sorts alphabetically (A-Z or Z-A), by line length, or numerically, with options to ignore case, remove blank lines and drop duplicates as it sorts — all client-side in your browser.
Alphabetical versus numeric
Plain alphabetical sorting treats everything as text, so "10" lands before "2". Numeric mode reads the actual value, so a list of numbers or versioned items sorts the way you expect. Choosing the right one is the difference between a tidy list and a confusing one.
FAQ
How do I sort a list alphabetically?Choose A-Z for ascending or Z-A for descending and the lines reorder instantly. You can also sort by line length or numerically, which is useful for lists of numbers or items of varying size.
Why are my numbers sorting in the wrong order?Alphabetical sorting treats 10 as coming before 2 because it compares character by character. Switch to numeric sort so values are ordered by their actual size, putting 2 before 10 as expected.
Can I remove duplicates and blank lines while sorting?Yes. Options let you remove blank lines and remove duplicates as part of the same sort, so you clean and order the list in one step. There is also an ignore-case option for case-insensitive alphabetical sorting.
Does sorting treat uppercase and lowercase differently?By default uppercase letters can sort separately from lowercase ones, which may group capitalized items apart. Turn on ignore-case for a natural A-to-Z order that mixes them as a reader would expect.