Reverse Text

Reverse text by user-perceived characters.

Use this tool

Result

The result appears in this panel after you run the tool.

About this tool

The page splits the text into user-perceived characters and writes them in the opposite order. A family emoji or a letter with a combining mark is one unit when Intl.Segmenter is available.

Without that segmenter, the fallback is Unicode code points. A combined emoji can be split in that case. The page does not show a separate warning for the fallback.

How to use it

  1. Paste the text.
  2. Reverse it. The selected text locale decides the character breaks.
  3. Copy the reversed text.

Limitations

Graphemes run backward, words included

The whole string, not the word order

Reversal walks user-perceived characters from the end back to the start. It does not reverse words while leaving each word spelled forward. “ab cd” becomes “dc ba”, not “cd ab”. Spaces and punctuation travel with the sequence. A trailing newline becomes a leading newline. If you wanted the lines in reverse order but each line still readable, this is the wrong page. You would reverse the line list, which is a different edit.

Why emoji and accents need the segmenter

A family emoji or a flag is several code points and one grapheme. Reversing code points would tear it apart. When the browser provides a segmenter, the page reverses graphemes, so the emoji stays intact and moves as one unit. Without a segmenter, the fallback is code points, and a combined emoji can split. The locale selects the segmenter. It does not change the direction of the alphabet. Right-to-left scripts are still reversed as a sequence of graphemes, which is a visual change, not a bidi-algorithm run.

What you cannot recover by reversing twice if the fallback differs

Reversing twice on the same browser returns the original, because the operation is its own inverse for a given segmentation. Reversing on a browser with a segmenter and reversing back on one without can fail to round-trip a fancy emoji. Do not use this page as a cipher. The transform is obvious, and anyone can run it again. It is a display and puzzle edit, not a secret.

Lines and graphemes are different axes

Reversing the characters of a two-line paste also reverses the order of the lines, because the newline grapheme moves with everything else. The first line’s text ends up at the bottom, spelled backward. If you wanted each line reversed and the line order kept, split the lines, reverse each one, and join. This page does that only as the single sequence it was given.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.