Text Reverser Online – Reverse Text Generator

Instantly flip any text backwards in real time! Choose from 5 reversal modes—reverse the entire text, reverse characters per line, reverse individual word lettering, reverse word order, or flip multi-line lists bottom-to-top. Built with emoji-safe Unicode grapheme segmentation, optional punctuation preservation, and a live Palindrome Detector.

caracteres: 0

Palavras: 0

Linhas: 0

Palindrome: —

Comparison of All 5 Text Reversal Modes

Different tasks call for different ways of flipping text. Here is how each mode transforms the sample two-line input Hello, World! / Text Tools 123:

Reversal Mode What It Flips Example Input Reversed Output
Reverse Entire Text Every character & line from the very last character to the first Hello, World!
Text Tools
slooT txeT
!dlroW ,olleH
Reverse Each Line's Characters Characters within each line, keeping Line 1 on top Hello, World!
Text Tools
!dlroW ,olleH
slooT txeT
Reverse Each Word's Letters Letters inside every word while preserving word & line order Hello, World! ,olleH !dlroW
(or olleH, dlroW! with Keep punctuation)
Reverse Word Order The sequence of words per line while keeping word spelling intact One Two Three Three Two One
Reverse Line Order Flips a multi-line list from bottom-to-top without altering text on each line 1. First
2. Second
3. Third
3. Third
2. Second
1. First

Common Uses for Reversing Text

  • Palindromes & Wordplay – Test and craft palindromic sentences (phrases like "Was it a car or a cat I saw?" or "Never odd or even") with instant verification in the stats bar.
  • Mirror Writing & Ambulance Text – Create backwards lettering that reads normally when viewed in a physical mirror or rear-view mirror (like ECNALUBMA).
  • Reversing Log Files & Lists – Use Reverse Line Order to flip chronological log entries, changelogs, or numbered lists from oldest-first to newest-first.
  • Programming & Unicode Testing – Verify string manipulation algorithms with complex multi-byte emojis (🚀, 👨‍👩‍👧‍👦) and accented characters.

How to Reverse a String Safely in JavaScript (Without Breaking Emojis)

A common pitfall in JavaScript is using str.split('').reverse().join(''). Because JavaScript strings are sequences of 16-bit UTF-16 code units, split('') tears 4-byte emojis (surrogate pairs) in half. To reverse strings safely in modern JavaScript:

// Safe for basic emojis (code points):
const reversed = Array.from("Hello 🚀").reverse().join(""); // "🚀 olleH"

// Best practice for all grapheme clusters (flags, skin tones, ZWJ emojis):
const segmenter = new Intl.Segmenter(undefined, { granularity: "grapheme" });
const safeReverse = Array.from(segmenter.segment("Hello 👨‍👩‍👧‍👦"), s => s.segment).reverse().join("");

Perguntas frequentes

What is the difference between "Reverse each word's letters" and "Reverse word order"?

Reverse each word's letters keeps every word in its original position in the sentence but spells each word backwards ("Quick brown fox" → "kciuQ nworb xof"). Reverse word order keeps every word spelled normally but reverses the sequence of words ("Quick brown fox" → "fox brown Quick").

How do I keep commas and periods at the end of reversed words?

Select Reverse each word's letters and check Keep punctuation in place. With this option enabled, "Hello, world!" converts cleanly to "olleH, dlrow!" instead of moving the comma and exclamation mark to the front of the words.

How do I reverse the order of lines in a list without reversing the letters?

Choose the Reverse line order (bottom-to-top lines) radio option in the settings panel. This flips the vertical order of your lines (making the last line first and the first line last) while leaving all words and characters on each line untouched.