Reverse Text

Reverse text by characters, words, or lines. Handles accented and multi-byte characters correctly.

Independently verified for accuracy

Calculator by Toolsloft ↗

Reverse text in three ways: character by character, word by word, or line by line. Paste your text, pick a mode, and copy the flipped result. Character mode handles accented and multi-byte letters without splitting them.

How this is calculated

Character mode walks the text by Unicode code point and reverses the sequence, so characters outside the basic set stay intact. Word mode splits on single spaces and reverses the order, and line mode splits on line breaks and reverses them, both keeping their separators.

How to use

  1. Paste or type your text.
  2. Choose whether to reverse characters, words, or lines.
  3. Copy the reversed output.

Examples

  • Characters: "hello" becomes "olleh"
  • Words: "one two three" becomes "three two one"

FAQ

Does character mode break accented letters?
No. It reverses by Unicode code point, so a letter like á stays whole instead of splitting into pieces.
How does word mode define a word?
Word mode splits on single spaces and reverses that order. It is meant for simple, space-separated text.
Is my text sent anywhere?
No. The reversal happens in your browser and your text never leaves the page.

Embed this calculator

Add this free calculator to your own site. Copy the code and paste it where you want it to appear.