Reverse String Tool: Four Ways to Flip Text
This reverse string tool flips text in four ways and shows all four results side by side. You can mirror every character, reverse the order of words, reverse the order of lines, or reverse the letters inside each word while the words stay where they are.
Example
Here is the sentence “Hello World! Was it a car or a cat I saw?” in three of them:
Reversed characters: ?was I tac a ro rac a ti saW !dlroW olleH
Reversed word order: saw? I cat a or car a it Was World! Hello
Each word reversed: olleH !dlroW saW ti a rac ro a tac I ?was
Reversed line order works on multi-line text: the last line moves to the top and the text of each line is untouched.
What each card shows
- Reversed characters reverses the whole input, including spaces, punctuation and line breaks.
- Reversed word order reverses words within each line. Line breaks stay in place and the spacing between words is preserved. Punctuation stays attached to its word, so “World!” moves as one piece.
- Reversed line order is handy for flipping a log file so the newest entry comes first, or reversing a numbered list.
- Each word reversed reverses every run of non-space characters, which is how you create simple mirrored puzzle text.
Emoji and accented letters
Reversal works on Unicode code points, not on raw UTF-16 units. An emoji such as 👍 therefore survives intact instead of turning into broken symbols. That is a common bug in the JavaScript one-liner s.split('').reverse().join(''); spreading the string with [...s] avoids it, and Python's s[::-1] also works per code point.
Two cases still need care. Emoji built from several code points, such as flags or skin-tone variants, come out in a different order. And an accent typed as a separate combining mark can end up on the neighboring letter. Precomposed letters like “é” are not affected.
Checking palindromes
A palindrome reads the same in both directions once you ignore case, spaces and punctuation. Reversing “Was it a car or a cat I saw?” shows the letters match. To compare exactly, first strip symbols with Remove Punctuation, then make the text lowercase with the Case Converter, and reverse it.
Reverse vs upside-down text
Reversing only changes the order of characters; every letter still faces the normal way. If you want text that looks rotated 180 degrees, use Upside Down Text, which swaps each letter for a flipped look-alike and also reverses the order.
Privacy
The reversal runs in your browser. Nothing you paste is sent to a server unless you click Save & Share to create a link.