Reverse Each Word
Reverse the letters inside every word while keeping word order and whitespace intact. Unicode-safe.
0 characters
0 characters
About Reverse Each Word
This tool splits your text on whitespace, reverses the characters inside each word, and then rejoins with the original separators. Word order is preserved; only the letters within each word are flipped. Surrogate pairs and emoji are handled as single units.
When to use it
- Producing 'mirrored word' effects for design or puzzles
- Generating fake words for placeholder copy or testing
- Creating text that's hard to read at a glance for a privacy gag
- Showing students the difference between letter-level and word-level reversal
How it works
Text is split on a regex that captures runs of non-whitespace and whitespace separately. Non-whitespace runs are iterated as Unicode code points, reversed, and rejoined. Whitespace runs pass through unchanged. The structure of the input — including line breaks, tabs, and multiple spaces — is preserved.
Examples
Word letters reversed, word order kept
Hello, world!
,olleH !dlrow
Emoji and accented characters preserved
café 🎉 party
éfac 🎉 ytrap
Frequently asked questions
- What counts as a word?
- Any run of non-whitespace characters. Punctuation attached to a word (commas, periods) is part of that word and gets reversed along with it.
- How is this different from reversing the whole string?
- Whole-string reversal flips the entire sequence, so 'Hello world' becomes 'dlrow olleH' and word order reverses too. This tool reverses letters within each word but keeps the words in their original positions.
- Are newlines and multiple spaces preserved?
- Yes. The split keeps whitespace runs as separate tokens that pass through unchanged.