Skip to content

Text Reverser

Reverses a string, the words in it, or the order of lines — grapheme-aware, so emoji survive.

Reverses text by whole characters, by word order, by the letters inside each word, or by line order. The character mode is the one worth having done properly: it reverses grapheme clusters, so an emoji stays an emoji and a decomposed Hangul syllable stays a syllable.

🔒 Runs entirely in your browserreversestring

Text

Reverse

Positive moves the first lines to the end.

Reversed

What the obvious approach would have done

enil driht enil dnoces dlrow �� 글한 olleH

That is split('').reverse().join(''), which reverses UTF-16 units. It cuts an emoji into two halves that render as replacement characters, separates a combining accent from its letter, and takes apart decomposed Hangul — the form Korean text arrives in from a Mac. This tool reverses whole grapheme clusters instead.

How to use it

  1. Choose the unit

    Characters for a puzzle or a test string, word order for a sentence, letters within each word to keep the word order but scramble the words, line order to flip a list.

  2. Rotate the lines if you need to

    A positive rotation moves the first lines to the end. It composes with the reversal, so you can get any cyclic arrangement of a list in one step.

  3. Compare against the naive result

    When the two differ, the panel shows what split("").reverse().join("") would have produced — and why that is the wrong answer for your text.

Common questions

Why did another site break my emoji?

It reversed UTF-16 units. That cuts an emoji into two surrogate halves, which render as replacement characters, and separates a combining accent from the letter it belongs to. This tool reverses whole grapheme clusters instead.

Is reversed Korean readable?

The syllables survive intact — 한글 becomes 글한, not a jumble of jamo. That holds even for text copied from a Mac, where each syllable is stored as three separate code points.

Can I reverse only part of the text?

Not by selection, but the four modes cover most of what that would be for — reversing the words while keeping the letters, or the letters while keeping the word order.

Feed it from

Next

These accept what this tool produces, so the result can go straight in.