Skip to content
TypeParser
All tools

Reverse Text

Reverse a string character-by-character.

beats reversetext.org edge: Grapheme-aware + word/line modes
input
output
Guide

About Reverse Text

Reverse text by character, by word, or by line. Grapheme-aware mode keeps multi-codepoint emoji and accented characters intact instead of splitting them into pieces. Useful for palindrome checking, obfuscation puzzles, RTL preview testing, and meme creation.

Surprising uses

  • Palindrome check. Reverse, compare. Most input is not symmetric, but the test is one click.
  • Pseudo-localization. Reverse English to simulate RTL layout — catches truncation and alignment bugs without translating to Arabic.
  • Obfuscation puzzles. Hide a clue by reversing, decode by reversing again. Common in escape rooms.
  • Word-order swap. Reverse word mode flips a sentence’s word order — useful for some grammar puzzles or mock-up text.

Why grapheme mode

The string 🇺🇸 (US flag) is two codepoints (U+1F1FA + U+1F1F8). Naive reversal splits the flag into halves and pairs them with adjacent characters, breaking display. Grapheme mode keeps the flag whole. Same logic for é written as e + combining acute.

The default in this tool is grapheme-aware — turn it off only when you specifically need byte-level reversal.

Common workflows

Test that your truncation logic handles emoji. Long emoji strings with reversal — does your text middle-truncation cleanly break at boundaries?

Quick palindrome check. “racecar” reversed is “racecar” — palindrome. “level” same. “abcdef” no.

Reverse line order. Useful when log files print newest-last but you want newest-first for review.

Frequently asked questions

What is grapheme-aware reversal?
Some characters are multiple codepoints — flag emoji, family emoji, accented letters with combining marks. Naive reversal breaks them into bytes. Grapheme mode treats each visible character as a unit.
Word vs character vs line reversal?
Character: helloolleh. Word: hello worldworld hello. Line: lines reverse top to bottom.
Will RTL text reverse correctly?
Be careful — RTL languages (Arabic, Hebrew) display right-to-left, but the underlying bytes are stored left-to-right. Reversing the bytes can produce visually surprising output.
What about palindrome detection?
Reverse the input, compare to original. If equal (modulo case and punctuation per setting), it is a palindrome.
Can I reverse just a substring?
Not built-in — paste the substring alone, reverse, paste back into context.
What's a use case besides puzzles?
Testing internationalization — reverse English text to simulate the visual challenge of RTL languages without needing Arabic content.

Related tools

Last updated: 2025-01-15