text reverser

How to use the text reverser

  1. Paste or type any text into the input box.
  2. Pick a reversal mode: characters (default), words, lines, or sentences.
  3. For word mode, decide whether to reverse the letters inside each word, or just reverse the word order.
  4. Optionally enable 'Swap case' to flip upper and lower at the same time.
  5. Copy the reversed output, or click 'Use output as input' to re-reverse and restore.

When to use it

Useful for word puzzles, mirror-writing fonts, debugging UTF-16 surrogate handling, preparing RTL samples, or generating password variants. Character mode is the everyday use. Word and sentence modes handle the less obvious reversal use cases — reversing a list of paragraphs, or inverting the word order of a sentence without flipping individual words. Alternative: one-liner `echo 'text' | rev` on Unix handles the character case but not the word/line/sentence variants or emoji-safe reversal.

Frequently asked questions

Will the text reverser handle emoji correctly?
Yes — it iterates over Unicode code points (via spread syntax) rather than UTF-16 code units, so compound emoji and multi-byte characters reverse cleanly without corruption.
What is the difference between reversing characters and reversing words?
Character mode turns 'hello world' into 'dlrow olleh'. Word mode with letters-off turns it into 'world hello' (word order reversed, letters intact). Word mode with letters-on turns it into 'olleh dlrow'.
How do I reverse only the word order without reversing letters?
Switch mode to 'Words' and turn off the 'Reverse word letters' toggle in the sidebar.
Can I reverse the order of lines in a file?
Yes. Pick 'Lines' mode — the last line becomes the first. Preserves the content of each individual line exactly.
Is my text sent to a server?
No. Reversal runs entirely in your browser — nothing is uploaded or logged.
Why doesn't my reversed text read correctly in RTL scripts?
Reversing already-RTL text (Arabic, Hebrew) produces visual order that looks correct at a glance but is logically LTR. For authentic RTL display, use the `dir="rtl"` HTML attribute instead of reversing.

Related tools

Last updated: 2026-04-24