Shard Tools

Reverse Text

Reverse text in your browser, correctly handling emoji and accented characters.

Maintained by Roshan.

Use Reverse Text

Converts text to reversed in this tab, with nothing sent anywhere.

Runs entirely on your deviceThe conversion happens in this browser tab. Nothing you type is uploaded, logged or stored, which is worth knowing for anything you would not paste into a search box.

Explore text tools

Find related browser-local tools for nearby tasks without starting another search.

Browse all text tools

About Reverse Text

Reversing text - writing it back to front - is used for puzzles, for novelty and mirror-writing effects, for testing how software handles unusual input, and occasionally for a simple obfuscation that anyone can undo. It seems like the most trivial operation imaginable, and for plain English it is. The catch is modern text. An emoji, a flag, or an accented letter formed from combining marks is not a single unit under the hood; it is stored as several pieces. A naive reversal that flips those pieces individually turns a valid emoji into two broken symbols. This tool reverses by whole characters - by code point - so an emoji stays an emoji and an accented letter stays intact, and the reversed text is still valid rather than peppered with replacement squares.

Work through the input

  1. The text is split into whole characters by code point rather than into the underlying storage units.
  2. That keeps an emoji or a high character as one piece, so reversing does not split it into broken halves.
  3. The characters are reversed in order and rejoined.
  4. Line breaks are treated as characters and reversed along with the rest, so the last line comes first.
  5. The result reads back to front while every character remains valid.

When reverse text is useful

Making a puzzle

Reverse a phrase for a word game or a hidden message that solvers flip back.

Testing input handling

Reversed text with emoji is a good check that a program treats characters correctly rather than breaking them.

Check the output

Questions about Reverse Text

Does it break emoji?

No. It reverses by whole characters, so an emoji or accented letter stays intact rather than splitting into broken halves.

Does it reverse word order too?

No. It reverses characters, so the whole text reads back to front. Reversing word order is a different operation.

What happens to line breaks?

They are reversed along with everything else, so the last line ends up first.

Can I undo it?

Yes. Reversing the reversed text returns the original.

Related tools

Remove Extra Spaces

Remove extra spaces from text in your browser, collapsing runs and trimming each line.

Sort Lines

Sort lines of text alphabetically in your browser, with natural numeric ordering and a reverse option.

ROT13 Encoder and Decoder

Apply ROT13 to text in your browser. The same operation encodes and decodes, since it is its own inverse.