Reverse Text
Quickly reverse the order of characters in your text.
Quickly reverse the order of characters in your text.
Text can be reversed at multiple levels — character by character, word by word, or line by line — each producing a different result. Understanding the difference helps choose the right operation for your use case.
A palindrome reads the same forwards and backwards. Word palindromes: "racecar", "level", "madam". Phrase palindromes (ignoring spaces and punctuation): "A man a plan a canal Panama". Palindromes are common in programming interview questions and mathematical proofs.
JavaScript: str.split('').reverse().join(''). Python: str[::-1] (slice with step -1). Java: new StringBuilder(str).reverse().toString(). Note: the split/reverse/join method in JS doesn't handle multi-codepoint Unicode characters (emoji, some accented chars) correctly — use Array.from() instead.
Simple byte/char reversal can corrupt multi-byte Unicode sequences — especially emoji (often 4+ bytes) and combining characters (base + diacritic). A correct Unicode reversal must split by grapheme clusters rather than individual code units. This tool handles Unicode grapheme clusters to preserve emoji and accented characters correctly.