Text Reverser
Reverse text in multiple modes instantly
The Text Reverser flips any text backwards in one click. You can reverse the whole string character by character, swap the order of whole words, or reverse the letters inside each word while leaving word positions alone. It is built for palindrome hunters, puzzle makers, and developers who need to test how an app handles reversed or right-to-left text. With an optional case-preservation switch, you can keep the original capitalization pattern while the characters move.
How the Three Modes Differ
The mode buttons change exactly what gets rearranged:
- Full Reverse reverses the entire string, character by character.
Hello WorldbecomesdlroW olleH. - Word Order keeps each word intact but reverses the sequence of words.
Hello WorldbecomesWorld Hello. - Each Word keeps the word order but reverses the letters inside each word.
Hello WorldbecomesolleH dlroW.
There is also a Preserve case position checkbox. When it is on, the tool compares the original and reversed strings index by index and reapplies the original upper/lower pattern, so the output keeps its capitals in the same slots.
Under the hood the modes use different splitters. Full Reverse spreads the string into individual characters and flips the array. Each Word splits on runs of whitespace first, reverses only the non-whitespace pieces, then rejoins, which is why spaces, tabs, and line breaks survive intact. Word Order keeps the whitespace runs as tokens as well, but it reverses the token array too, so the gaps travel with the words they separated. That last detail is the reason a leading indent can reappear at the end of the output in Word Order mode.
Worked Examples
| Input | Full Reverse | Word Order | Each Word |
|---|---|---|---|
| The quick brown fox | xof nworb kciuq ehT | fox brown quick The | ehT kciuq nworb xof |
| Coding is fun | nuf si gnidoC | fun is Coding | gnidoC si nuf |
| level | level | level | level |
| Hello | olleH | Hello | olleH |
level is a palindrome, so full reverse returns it unchanged. The phrase A man, a plan, a canal: Panama is often called a palindrome, but full reverse produces amanaP :lanac a ,nalp a ,nam A, which is not identical because the comparison is literal and includes capitals, commas, colons, and spaces.
A second way to read the table is to notice which modes preserve word identity. Full Reverse destroys every word boundary position because the spaces flip with everything else, so the output has to be read right to left to make sense. Word Order is the only mode where each individual word stays spelled correctly from left to right, which makes it the right choice for anagram-style puzzles and for quickly checking that a list is complete. Each Word keeps the reading order of the sentence while making every word unreadable on its own, which is the classic look of children’s mirror writing.
Preserving Capitalization
The Preserve case position option is easiest to see on a single word. Hello reversed is olleH; with the option enabled it becomes Olleh, because the uppercase slot from the first character is applied to the first character of the result rather than staying attached to the letter H. On a mixed sentence the effect is a stylized pattern of capitals that no longer marks the original proper nouns, which is exactly what you want for a mirrored display name and exactly what you do not want if the capital letters carry meaning.
Unicode and Emoji Limits
Reversal works on Unicode code points, not on grapheme clusters. Simple emoji, accented Latin letters, and CJK characters are single code points and reverse safely. Sequences that are assembled from several code points can split, including skin-tone modifiers such as the medium-tone thumbs-up, zero-width-joiner family emoji, flag pairs made of regional indicators, and letters carrying separate combining accent marks. A lone skin-tone emoji reversed at the end of a word may render as its modifier followed by its base, which looks broken.
To see why, remember that a visual glyph is not the same as a code point. The character é can be stored either as one precomposed code point or as the letter e followed by a combining acute accent, and the two forms behave differently here: the precomposed form reverses as a unit, while the decomposed form separates and the accent can land on the wrong letter. The same split affects flag emoji, which are two regional-indicator code points that only combine into one flag when they sit next to each other. Also note that reversing text does not change its directionality, so a reversed Arabic or Hebrew phrase is still laid out right-to-left by the browser.
Common Mistakes
- Treating reversal as encryption. It is trivially undoable and offers no security.
- Forgetting that palindrome testing is literal. Case, spaces, and punctuation all count, so normalize the text before comparing.
- Expecting Preserve case to move capitals onto the matching letters. It reapplies the case pattern by position, not by letter identity.
- Ignoring whitespace movement in Word Order. Leading spaces become trailing because whitespace tokens are reversed too.
- Assuming every emoji survives. Multi-code-point emoji and combining marks can break apart.
Practical Uses
Palindrome fans use Full Reverse to test whether a phrase reads the same both ways once case and punctuation are set aside. Puzzle and escape-room creators write answers backwards so they are not obvious at a glance. Developers flip strings to expose bugs in right-to-left layout and Unicode handling. Social posts use Each Word to create a mirrored style that is still readable letter by letter. None of these uses should be confused with securing data.
Related Tools
Frequently Asked Questions
Why does an emoji like a thumbs-up with a skin tone break apart after reversing?
The reverser flips text by Unicode code point, and some emoji are made of several code points glued together. A skin-tone modifier, a zero-width-joiner family emoji, or a pair of regional-indicator letters all count as multiple code points, so reversing the string can move the modifier or join character away from its base and the glyph renders as separate symbols. Simple single code point emoji reverse cleanly.
Does Word Order mode remove punctuation or spaces?
No. Word Order keeps every word and every punctuation mark exactly as written; it only changes the sequence of words. The whitespace between words is preserved as its own token and is reversed along with the words, so leading spaces can end up trailing and repeated spaces stay grouped.
How does Preserve case position choose which letters to capitalize?
It compares the original text and the reversed text character by character by index. Wherever the original character at position i was uppercase, the reversed character at the same position is forced uppercase, and the same for lowercase. So Hello reversed becomes olleH, and with the option on it becomes Olleh: the capital stays in slot one rather than travelling with the H.
Why is A man, a plan, a canal: Panama not flagged as a palindrome?
That famous phrase is only a palindrome if you ignore case, spaces, and punctuation. This tool compares characters literally, so reversing the string gives amanaP :lanac a ,nalp a ,nam A, which does not equal the original because of the capital A, the commas, colons, and spaces. Strip those first if you want a word-based palindrome check.
What happens to newlines, tabs, and repeated spaces?
They are treated as whitespace tokens. In Each Word mode they are left untouched between the reversed words; in Word Order mode the whitespace runs are preserved as tokens and their order is reversed along with the words, which can move a blank line or an indentation gap to a different place in the output.
Can I use reversed text to hide a password or secret?
No. Reversal is a visible transformation that anyone can undo instantly by running the same operation again. It is not encryption and provides no secrecy. Use a real cipher or password manager for anything confidential.
Reviewed by the HandyTools Hub team · Last updated