Sort words or lines alphabetically, by length, or randomly. Optionally remove duplicates.
Runs in your browser
The Sort Words tool sorts lines of text, words, or lists alphabetically, numerically, by length, or randomly. It is useful for organising word lists, deduplifying sorted data, alphabetising bibliography entries, sorting CSV data, and preparing clean input for other tools.
Sorting options include ascending (A - Z, 1 - 9), descending (Z - A, 9 - 1), by word length (shortest first or longest first), by last word (for sorting by surname in a name list), and random shuffle. Case-insensitive and case-sensitive modes are available.
Paste your list of words or lines into the input one item per line. Choose your sort order and any options (case sensitivity, remove duplicates, trim whitespace). Click Sort and copy the result. For comma-separated lists, use the delimiter setting to split on commas instead of line breaks.
Use the Sort Words / Lines when you need Sort text without extra setup.
Example input: Lines: pear, apple, banana.
Example result: Ascending order is apple, banana, pear.
The Sort Words / Lines treats your input as plain text and applies a predictable transformation or analysis. Depending on the task, it may count tokens, change casing, remove characters, compare lines, detect duplicates, or generate a formatted output.
Text tools are deterministic, but language is nuanced, so review output for names, abbreviations, punctuation, and context-specific wording.
The Sort Words / Lines is designed for quick practical use. Inputs are handled according to the tool type; browser-based tools keep work local, while live lookup tools may need server-side checks.