Reverse Text
Reverse text by character, by word or by line.
Every character is reversed. Emoji and accented characters stay in one piece.
Reversed
The reversed text appears here.
About Reverse Text
Reversing text is a small operation that comes up surprisingly often - testing palindromes, undoing a reversed export, flipping the order of a log file, or simply having fun with a message.
This tool offers three modes and handles Unicode correctly, so accented characters and emoji survive the round trip intact.
How Reverse Text works in your browser
Character mode reverses by grapheme cluster rather than raw code unit, so emoji and accented characters built from several code points stay intact. Word mode keeps each word whole and reverses their order, and line mode reverses only the order of lines.
Reversing changes character order; it does not produce mirrored glyphs.
When to use it
- Testing whether a word or phrase is a palindrome.
- Flipping the order of lines in a log or list.
- Undoing text that was exported in reverse order.
Worked examples
Reverse characters without splitting an emoji
Settings: Reverse characters
Input
A👩💻BExpected output
B👩💻AOn browsers with Intl.Segmenter, the joined emoji is treated as one grapheme. This reverses character order, not the appearance of individual glyphs.
Reverse words independently on each line
Settings: Reverse word order
Input
red green blue
one twoExpected output
blue green red
two oneWords stay intact and each line is processed separately. Runs of whitespace between words become a single space. Choose Reverse line order instead to keep complete lines unchanged.
Limits and checks before you use the result
- Word mode normalizes whitespace, so reversing twice does not restore original tabs or repeated spaces. Save a copy when layout matters.
- Older browsers without Intl.Segmenter fall back to Unicode code points; complex emoji and combining marks may separate. Check the preview before copying.
- This is not encryption, right-to-left layout correction or mirror-image lettering. The palindrome indicator ignores case and non-letter/non-number characters.
Frequently asked questions
Does it handle emoji correctly?
Modern browsers with Intl.Segmenter reverse grapheme clusters, keeping joined emoji and combining characters intact. Older browsers use a code-point fallback that may separate complex clusters.
What is the difference between the modes?
Character mode reverses every character, word mode keeps words intact but reverses their order, and line mode reverses the order of lines only.
Is this the same as mirrored text?
No. This changes the order of characters; it does not produce mirror-image glyphs.