Reverse Text

Flip characters, words, or lines — plus palindrome checker and repeater

Input

Result

!dlroW ,olleH

About the Text Reverser

This tool reverses text at three levels: character order within the whole string, word order within each line, or the order of the lines themselves. Each answers a different question, so all three are available separately.

Reverse text at the level that matches the job. Character reversal turns "hello" into "olleh" — used for palindrome checks, puzzles and novelty text. Word reversal keeps each word intact but flips their sequence. Line reversal leaves lines untouched and inverts their order.

Line reversal is the most practically useful. Log files, chat exports and changelogs are usually chronological, and reading newest-first is often what you want without sorting by a timestamp column that may not parse cleanly.

Character reversal handles Unicode carefully, since naive reversal splits multi-byte characters and emoji into meaningless fragments. Accented characters and emoji come back intact rather than corrupted.

How to use the Text Reverser

  1. Paste your text. Enter the text you want reversed.
  2. Choose the level. Pick characters, words or lines.
  3. Read the output. The reversed text appears immediately.
  4. Copy it. Take the reversed result.

Text Reverser features

  • Reverse the characters in the text
  • Reverse the order of words within each line
  • Reverse the order of the lines themselves
  • Repeat text a set number of times with a chosen separator
  • Copy the result
  • Runs in your browser; nothing is uploaded

Frequently asked questions

What is the difference between the three reversals?

Character reversal turns hello into olleh. Word reversal turns one two three into three two one while leaving each word intact. Line reversal puts the last line first and leaves the lines themselves alone.

Which one do I actually want?

Line reversal, usually — it is how you flip a log or an export from oldest-first to newest-first. Character reversal is mostly for puzzles and testing; word reversal for checking palindromic phrases.

Does it handle emoji correctly?

Emoji and other characters built from multiple code units can break apart under character reversal, which is a general hazard of reversing text rather than a fault here. Word and line reversal are unaffected.

What is the repeat option for?

Producing a block of the same text a set number of times, with a separator of your choosing between copies — useful for filling a test fixture or padding out a layout.