Reverse Text

Reverse a string backwards, reverse each word, reverse the word order or reverse each line of your text.

Paste or type here. The text stays in your browser.

Reversed text

25 characters

Reverse the whole text

.em esreveR !dlrow ,olleH

Your text is reversed. Use Copy result to copy it.

Add this calculator to your website

Free to use on any site or blog. Paste this code where you want the calculator to appear. It stays up to date, needs no account, and keeps your visitors' numbers in their own browser.

Preview

How it works

Choose how to reverse and the result appears as you type. "Reverse the whole text" turns the text around from the last character to the first, so "Hello" becomes "olleH" and line breaks move too. "Reverse each word" turns each word around but keeps the words in place. "Reverse the word order" keeps each word as it is and reverses their order, line by line. "Reverse each line" reverses the characters of every line but keeps the lines in their order.

The text is reversed by what you see as one character, not by the raw code units stored in the computer. That keeps an emoji such as a family or a flag in one piece, and keeps an accent with its letter, so "é" written as "e" plus a combining accent does not end up on the wrong letter. A plain reversal of the code units would break these into garbage.

Right to left scripts such as Arabic and Hebrew are reversed in the order they are stored, which can look unchanged on screen because the browser displays them right to left. Upside down and mirrored text are different tricks that swap in other characters, and this tool does not do them.

Check it by hand: "Hello, world! Reverse me." has 25 characters, including spaces and punctuation. Reversing the whole text reads it from the last character to the first: the final full stop comes first, then "em", a space, "esreveR" and so on, ending with "H". The result is ".em esreveR !dlrow ,olleH", also 25 characters.

Worked example

The sample "Hello, world! Reverse me." is 25 characters. Reversing the whole text gives ".em esreveR !dlrow ,olleH". Reversing each word gives ",olleH !dlrow esreveR .em" (punctuation counts as part of the word). Reversing the word order gives "me. Reverse world! Hello,".

Good to know

  • Reversing makes text that is hard to read. It is for puzzles, fun and simple tests, not for hiding information, because anyone can reverse it back.
  • Spaces inside the text are kept as they are in "each word" mode. In "word order" mode, runs of spaces between words become one space.
  • Some joined characters in scripts such as Devanagari are reversed as a unit. The result is correct as a string reversal but may not read as the language.
  • Very long text is refused above 1,000,000 characters so the page stays fast.

Questions people ask

How do I reverse text?

Paste your text, leave the choice on "Reverse the whole text" and copy the result. The last character becomes the first.

How do I reverse the order of the words in a sentence?

Choose "Reverse the word order". "one two three" becomes "three two one" and each word is left alone.

How do I reverse each word but keep the sentence order?

Choose "Reverse each word". "one two three" becomes "eno owt eerht".

Does it work with emoji?

Yes. Emoji, including joined ones like family groups and flags, move as one character, and accented letters stay together with their accents.

Can I reverse a string in code?

Yes, but a plain reverse in many languages breaks emoji and combining accents. Reverse by grapheme clusters, for example with Intl.Segmenter in JavaScript, as this tool does.

Does it make upside down text?

No. This tool reverses the order of the characters. Upside down text swaps in different characters and is a separate thing.

How do I reverse the order of the words but not the letters?

Choose reverse the word order. "one two three" becomes "three two one" and each word keeps its spelling.

Part of the guide: Text tools: word counter, case converter, duplicate lines and more

Formulas and text last checked on 14 October 2026. Everything is calculated in your browser, so nothing you enter is sent or stored. Spotted a mistake? Tell us and we will fix it.