Skip to content
XUtilHub

Reverse Text – Reverse String Online

Reverse a string, the word order, or each word's letters. Unicode- and emoji-safe. Free online text reverser.

  • Free, no sign-up
  • Runs in your browser, nothing uploaded
Input
Output

About the Reverse Text

Reverse text character by character, reverse the order of words, or reverse the letters in each word. Emoji and accented characters are handled correctly.

Key features

  • Reverse the whole text character by character
  • Reverse word order while keeping each word intact
  • Reverse the letters inside each word
  • Reverse the order of lines
  • Emoji- and accent-safe (grapheme-aware)
  • Instant results as you type

Reverse text four different ways

Reversing text is useful for puzzles, palindrome checks, mirror-writing effects, programming exercises, flipping lists and reversing log files so the newest entries are on top. Choose how to reverse:

ModeInputOutput
Whole textHello worlddlrow olleH
Word orderHello big worldworld big Hello
Each wordHello worldolleH dlrow
Line orderone⏎two⏎threethree⏎two⏎one

Unicode done right

Text like café 👋🏽 contains characters built from multiple Unicode code points. A careless reversal produces broken output like 🏽👋 éfac with a detached skin-tone modifier or a stray accent. This tool uses the browser's Intl.Segmenter to reverse graphemes, the characters you actually see, so emoji, flags and accented letters survive intact.

Use cases

  • Palindromes: check words like racecar and level.
  • Puzzles and games: create hidden messages for escape rooms and treasure hunts.
  • Lists: reverse a chronological list (Line order).
  • Logs: put newest lines first.
  • Coding practice: verify the output of your own string-reversal function.

Reversing in code

// JavaScript (grapheme-safe)
const reversed = [...new Intl.Segmenter().segment(text)].map(s => s.segment).reverse().join("");
# Python
reversed_text = text[::-1]

Flip text upside down with Upside Down Text, or sort lines instead of reversing them with Sort Text Lines.

How to use the Reverse Text

  1. Type or paste your text into the input box.
  2. Choose the options you want.
  3. The result updates instantly as you type.
  4. Copy the output or download it as a .txt file.

Frequently asked questions

Why do some reversers break emoji?

Many emoji and accented letters are made of several code units. Naive reversal splits them apart. This tool reverses by grapheme (visible character), so 👋🏽 and é stay intact.

What's the difference between the modes?

Whole text: 'abc def' → 'fed cba'. Word order: → 'def abc'. Each word: → 'cba fed'. Line order flips the lines but keeps each line as it is.

Can I check for palindromes?

Yes. Reverse the text with 'Whole text' and compare. Ignore spaces and punctuation for phrase palindromes like 'A man, a plan, a canal: Panama'.

How do developers reverse a string in code?

In JavaScript, [...str].reverse().join('') handles most cases; use Intl.Segmenter for full grapheme safety. In Python, s[::-1].

Is my text sent anywhere?

No. All text tools run locally in your browser.

Do these tools support Unicode?

Yes. They handle Unicode text, including emoji and accented characters.

Last updated:

Related Text tools