Reverse Text / Words
Reverse text by character, word, or line order — with correct handling of emoji and multi-byte characters.
About this tool
Reverse Text / Words flips text in three different ways: character reversal (spelling the entire input backwards), word reversal (keeping each word intact but reversing their order), and line reversal (keeping each line intact but reversing the order lines appear in).
Character reversal is deceptively tricky to implement correctly. A naive split-and-reverse operates on UTF-16 code units, which breaks any character represented by a surrogate pair — most emoji end up corrupted. This tool iterates by Unicode code point instead, so emoji, accented characters, and other multi-byte content reverse correctly and remain intact.
For word and line reversal, an additional toggle lets you also reverse the characters within each word or line independently, rather than just reversing their order.
All transformations run instantly and entirely client-side using plain JavaScript string and array operations.
