Reverse Text

Flip strings by Unicode code points, reverse word order, or invert multi-line lists instantly in your browser without breaking emoji or Bengali script.

Flip any text backwards — by characters, by whole words, or by line order — with one tap each. Character mode is code-point safe, so emoji and Bengali conjuncts survive the flip intact instead of turning into broken halves.

How to use Reverse Text

  1. Paste or type your text into the first box.
  2. Pick a mode: Characters, Words, or Lines.
  3. Copy the reversed result with one click.

Who it is for

People making mirror-word puzzles and games, testers who need reversed strings, designers checking symmetric layouts, and anyone whose language renders right-to-left and wants to see the underlying order.

How it works

  • Character mode walks the text code point by code point, so multi-byte emoji reverse as single units rather than as broken surrogate halves.
  • Word mode splits on whitespace while preserving the spacing structure, and line mode reverses the order of lines without touching the text inside them.
  • The output updates as you type, and the mode buttons let you switch direction without re-pasting.

What it cannot do

  • Character mode reverses code points, not shaped glyphs: a combining mark stays attached to the character before it only when your platform keeps the pair together, so heavily marked text can look odd after flipping.
  • There is no "reverse each line’s characters but keep line order" combination mode — use Lines for order, Characters for content.

Sample input & output

You give

Mode: Reverse characters | Input: PDF Tura 🚀

Reverse Text returns

🚀 aruT FDP — reversed safely by Unicode code points without corrupting surrogate-pair emoji.

Frequently asked questions

Will emoji survive the flip?

Yes. Emoji are made of several code points each; the tool reverses code points, so a thumbs-up stays a thumbs-up rather than becoming two broken halves.

What is the difference between Words and Lines mode?

Words flips the sequence of words inside the text; Lines keeps every line’s content unchanged and reverses only the order of the lines — useful for stanzas, logs, and lists.

Why would I need reversed text?

Word games, mirrored signage mockups, RTL-layout testing, and puzzle-making are the common reasons; some ciphers and checksum jokes also need it.

Why does naive JavaScript str.split('').reverse().join('') corrupt emoji and non-BMP scripts?

JavaScript strings store UTF-16 code units, so 4-byte emoji like 🚀 (U+1F680) occupy two surrogate halves (\uD83D\uDE80). Splitting by UTF-16 unit swaps the low surrogate ahead of the high surrogate (\uDE80\uD83D), producing broken replacement boxes (). Iterating proper Unicode code points (Array.from(str)) keeps surrogate pairs intact.

What is the difference between Reverse Characters, Reverse Words, and Reverse Line Order?

Reverse Characters flips the characters from end to start ("cat dog" → "god tac"); Reverse Words keeps each word spelled normally while inverting word sequence ("cat dog" → "dog cat"); and Reverse Line Order flips a multi-line log or chronological list bottom-to-top while leaving every individual line untouched.

How do combining diacritics and Bengali vowel signs (kar/matra) behave when reversed?

In complex Brahmic scripts like Bengali and accented Latin sequences, a visible grapheme cluster consists of a base consonant followed by combining vowel signs or virama/hasanta marks. Reversing individual code points detaches combining marks from their base consonant; use Reverse Words or Reverse Line Order when reordering Bengali sentences or lists.

What are practical engineering uses for reversing lines or strings?

Developers routinely use Reverse Line Order to flip oldest-first server logs or CSV exports into newest-first order without opening a spreadsheet, and use character/word reversal to test bidirectional UI rendering, palindrome algorithms, and Unicode-safe string pipelines.