Sort lines of text alphabetically, numerically or randomly
Sort Lines reorders the lines in any block of text using the method you choose: alphabetical, numeric, by length, reversed, or shuffled into a random order. It is the quickest way to alphabetize a list of names, put version numbers in the right sequence, arrange items from shortest to longest, or randomize entries for a draw. You paste your text, pick a sorting mode, and the ordered result appears immediately, ready to copy back into your document or spreadsheet.
Different jobs call for different sorting logic, and this tool handles the tricky cases plain sorting gets wrong. Numeric mode reads the number in each line so "10" lands after "9" instead of before it, and case-insensitive alphabetical sorting groups words the way a dictionary would rather than pushing all capitals ahead of lowercase letters. Reverse and shuffle modes cover the remaining needs, from flipping an existing order to creating unbiased random arrangements with the Fisher–Yates algorithm.
Because the sorting runs entirely in your browser, it is fast and completely private — your list never gets uploaded or stored, which matters for confidential names, internal data or unpublished content. There is nothing to install and no account to make. For messy source data you can pair Sort Lines with our duplicate remover and whitespace cleaner to produce a perfectly tidy, ordered list in just a few clicks.