Skip to content

Sort letters

Sort the letters within each word or line alphabetically.

Input
Output

Sort letters

Sort letters puts the letters inside a word, or an entire line, into alphabetical order while leaving spaces, punctuation and line breaks exactly where they started. Paste a word list to alphabetize each entry's own letters, check anagram candidates, build word-game puzzles, or turn ordinary text into a scrambled-but-structured pattern for a worksheet or a cipher exercise.

Choose whether letters are sorted within each word or across the whole line with the Sort within option: word mode keeps the sort local to each run of letters, while whole-line mode mixes letters from every word on that line together before reordering them. Case-sensitive treats uppercase and lowercase as distinct letters, so capitals and lowercase letters land in separate blocks; leave it off to treat A and a as the same letter. Ignore diacritics folds accented letters such as á, č or ő to their base form for comparison, without changing what actually appears in the result. Order flips the direction between A → Z and Z → A, Limit results caps how many output lines come back (0 keeps them all), and Output format switches from plain text to a CSV table pairing each original line with its sorted version.

Numbers, punctuation and emoji are never touched — only Unicode letters move, so a hyphenated word or a sentence ending in a period keeps its shape. Both Windows (CRLF) and Unix (LF) line endings are recognized, and the live tally under the output reports the line count, how many letters were sorted, and the exact character total.

Everything runs locally in your browser: nothing you paste here is ever uploaded anywhere. Copy the result, download it as a .txt file, or send it straight back into the input to sort it again with different options.

FAQ

Does it change the spaces and punctuation in my text?
No. Only letters are reordered — spaces, digits, punctuation and line breaks stay exactly where they were.
What's the difference between sorting by word and by whole line?
Word mode sorts the letters inside each word on its own. Whole-line mode pools every letter on that line together before sorting, mixing letters across word boundaries.
How does ignoring diacritics affect the result?
It groups accented letters with their base form for ordering purposes (á sorts with a, ž with z) but keeps the original accented character in the output.
Can I export the result as a spreadsheet?
Yes. Switch Output format to CSV table to get each original line paired with its sorted version, ready to paste into a spreadsheet.
Is my text uploaded anywhere?
No. Sorting runs entirely in your browser — your text never leaves your device.