Text Reverser

Reverses text — by characters, by words, or line by line. Simple in principle, and a surprisingly good demonstration of why “reverse a string” is a harder problem in Unicode than it looks.

Live demo · real result from this tool
Reverse

Result

👋 !dlrow ,olleH

Processed on your device — nothing is uploaded.

How to use Text Reverser

  1. Paste your text.
  2. Choose whether to reverse characters, words or lines.
  3. Copy the result.
  4. Character reversal works on code points, so ordinary letters, digits and punctuation reverse cleanly.
  5. Emoji built from several code points — flags, skin tones, family groups — may not survive character-level reversal intact.
  6. Word reversal preserves each word’s spelling and only changes their order.

Three different reversals

Character reversal turns “hello world” into “dlrow olleh”. Word reversal keeps each word intact and reverses their order, giving “world hello” — which is what you usually want for prose. Line reversal flips the order of lines while leaving each one alone, useful for turning a chronological log or a list into reverse order. They are genuinely different operations and people often ask for one while meaning another.

Why reversing a string is a classic trick question

Reversing an array of characters is trivial until Unicode is involved. An emoji is stored as a surrogate pair, and reversing the code units splits it into two invalid halves. A composed character — e followed by a combining acute — reverses into the accent attached to the wrong letter. A flag emoji is two regional indicator symbols; reversed, it becomes a different country’s flag. Fully correct reversal means working in grapheme clusters, which is why the interview question is more interesting than it first appears.

What people actually use it for

Puzzles and word games, where reversed text is a standard obfuscation. Checking whether something is a palindrome by eye. Creating mirror-writing effects for design. Reversing a list that came out in the wrong order when no sort key is available. And testing how software handles unusual text — reversed strings with combining characters are a good quick probe for rendering bugs.

Frequently asked questions

What is text reversal used for?
Fun puzzles, simple encoding, checking palindromes, and creative typography.
Can I reverse by words?
Yes — choose from reverse characters, reverse word order, or reverse line order.
Does it preserve capitalization?
Character reversal flips everything including case. Word reversal keeps words intact.
How do I reverse the order of words instead of letters?
Choose word mode. Character mode spells every word backwards; word mode keeps each word as it is and reverses their sequence, which is what you want for readable output.
Why does my emoji break when reversed?
Because many emoji are made of several code points joined together — a flag is two regional indicators, a family is several people joined by zero-width joiners. Reversing that sequence produces a different or invalid character. Plain text reverses without trouble.
Can I use this to check for a palindrome?
You can compare the reversed text against the original by eye, but the palindrome checker does it properly — it ignores case, spaces and punctuation, which is the convention for phrase palindromes and what makes “A man, a plan, a canal: Panama” count.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close