Reverse Text

Reverse characters, words or whole lines instantly.

Free reverse text tool — flip a string character by character, reverse the order of words, or reverse the order of lines. Runs entirely in your browser, nothing is uploaded. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

What does reverse mode do?

Character mode flips the string back to front, word mode reverses the order of words while keeping each word intact, and line mode reverses the order of lines.

This tool reverses text three different ways: character by character (classic backwards text), the order of words, or the order of lines. It is handy for puzzles, palindrome checks, testing, formatting tasks, and quick string manipulation.

Three modes, three distinct uses

Character reversal flips the string so the last character becomes the first. This is what people usually mean by “reverse text” — it reads as gibberish forward and is used for social-media mirror text, puzzle generation, and testing whether a parser handles right-to-left sequences. It is also the correct input for palindrome detection: if the reversed string equals the original (ignoring spaces and case), you have a palindrome.

Word reversal keeps every word intact but places them in the opposite order. “the quick brown fox” becomes “fox brown quick the”. This mode is useful for rearranging sentences to check reading comprehension exercises, testing natural language parsers, or flipping quote attributions.

Line reversal keeps each line’s content unchanged but swaps the order of lines. The last line moves to the top, the first to the bottom. This is handy for reversing a numbered list, inverting a log file to see newest entries first, or flipping the order of a CSV without touching the column headers (exclude the header line first).

How it works

  • Characters: splits the text into Unicode grapheme clusters — not raw code units — so emoji, flags, and composed characters like accented letters remain whole. Naive reversal splits multi-unit characters and produces garbled output; grapheme-aware splitting avoids this.
  • Words: splits on any whitespace run, reverses the array of words, rejoins with single spaces.
  • Lines: splits on line breaks (\n and \r\n), reverses the array, rejoins with the original line ending.

The result updates instantly as you type, and the Copy button puts it on your clipboard.

Example

Input: Hello World

ModeOutput
CharactersdlroW olleH
WordsWorld Hello

For line mode, three lines one / two / three become three / two / one.

Palindrome check example

Reverse racecar in character mode: you get racecar — same as the input, so it is a palindrome. Try Hello — reversed is olleH, which differs, so it is not.

Everything runs entirely in your browser and nothing is uploaded to a server.