Reverse text

Flip any text in one click: reverse every character ("hello" becomes "olleh") or just the order of the words, then copy the result.

Your text stays in your browser: nothing is saved or sent anywhere.

Why would you reverse text?

More often than you'd think: building riddles and scavenger hunts with messages to decode, checking whether a phrase is a palindrome (it reads the same in both directions, like "never odd or even"), writing backwards bios or comments on social media to grab attention, or generating test input to see how a website handles unusual strings. Reversing only the word order, on the other hand, is handy for flipping lists or sentences while keeping every individual word readable.

Words in reverse order, line by line

With the «Reverse words only» button, line by line the words are put back from last to first: «the cat sleeps on the sofa» becomes «sofa the on sleeps cat the». It's used for word games and puzzles, for preparing reading and word-order exercises at school, and for a practical case that comes up more often than you'd think: a list where the piece you care about sits at the end of the line («Smith John 12/03 Manchester») and you want it at the front so you can sort by it.

How it treats spaces

When only the words are reversed, the letters of each word stay intact: the order is reversed, not the spelling. What does change are the spaces: every line is tidied up, runs of spaces become a single one, tabs become spaces and the indent at the start disappears. That's unavoidable, because the first space becomes the last one, but it means a text laid out in columns loses its columns. Empty lines stay empty and the number of lines never changes.

Emoji and accents: how the reversal works

Reversing text letter by letter is trickier than it looks: an emoji with a skin tone, a family, a flag or a letter with a separately written accent are a single character to the reader, but several pieces inside the computer, and a naive reversal would split them apart, producing unreadable garbage. This tool reverses characters the way a reader sees them, so a thumbs-up with a skin tone, a family emoji or a flag stay whole and every accent stays on its letter.

Nearby tools

To put the lines back from last to first, instead of the words inside a line, there's also the «Reverse the line order» button, which gives the same result as Reverse the lines. To sort them alphabetically Sort lines, and to shuffle the words at random instead of reversing them Shuffle words.

To find out whether a phrase reads the same both ways there is Palindrome checker.

Related tools