Three ways to reverse text
"Reverse" means different things in different contexts. That's why this tool has three modes:
- By character — turns
GenfyintoyfneG. The classic Programming 101 exercise. - By word — turns "the cat eats" into "eats cat the". Useful for certain copy edits or language exercises.
- By line — flips row order. If a log has the oldest line on top, this puts the newest first.
Why Unicode matters
In JavaScript, doing "abc".split("").reverse().join("") works for ASCII
but breaks compound emoji: a flag emoji is two code points, and reversing per
character would give a different flag. This tool uses Intl.Segmenter when
available so each grapheme is treated as one unit. Composed accents (an e
+ grave in decomposed form) are also kept as single units.
Real-world uses
- Palindromes. Check whether a phrase reads the same both ways: reverse, compare, done.
- Logs. When a log is in ascending chronological order and you want the newest first.
- Mnemonic passwords. An old technique: take a memorable word and write it backwards as a base. Doesn't replace a password manager, but useful for exercises.
- Type and design checks. Reversed text lets you see your typography without your brain reading automatically — exposes kerning issues.
- Language drills. For students of languages with reverse word order (Japanese, Korean), comparing reversed sentences helps internalize syntax.
What this tool isn't
It's not a graphic mirror generator (the kind with characters like ɐ that
look like an upside-down a). For that, separate tools exist. We reverse
order, not the visual appearance of each glyph.
How word reversal works
We tokenize on spaces and punctuation, then reorder the tokens. Punctuation stays in relative position, so "hello, world" becomes "world, hello" rather than leaving the comma orphaned.
Privacy
The text you paste never leaves your browser. If you handle confidential material (contracts, sensitive logs), this page is safe for use inside your company network: no server request, all processing local.