Text Reverser / Palindrome Checker
Reverse text by characters or words and check for palindromes.
Utility
Text Reverser / Palindrome Checker
Generated on April 24, 2026
Reversed (characters)
—
Reversed (words)
—
?What is the Text Reverser / Palindrome Checker?
A text reverser does exactly what its name suggests: it reverses any input text either character by character (total mirror reversal) or word by word (reverse word order while keeping each word intact). It also doubles as a palindrome checker, detecting whether the cleaned-up text reads the same forwards and backwards. This tool is useful for programmers solving the classic 'reverse a string' interview problem, writers and puzzle lovers creating or verifying palindromes, students learning about string manipulation, and anyone looking to have some wordplay fun.
The Formula
Character reversal swaps the first and last positions, second and second-to-last, and so on toward the middle. Word reversal splits the text by whitespace, reverses the resulting array, and joins the words back together with single spaces. Palindrome detection prepares the text by removing punctuation and spaces and lowercasing everything, then compares to its character-reverse — this allows classic palindromes like 'A man, a plan, a canal: Panama' to register correctly despite their punctuation and spaces.
Practical Examples
'Hello World' reversed by character is 'dlroW olleH' — a total mirror.
'Hello World' reversed by word is 'World Hello' — word order flipped but letters intact.
'racecar' is a palindrome — it reads the same forwards and backwards letter by letter.
'A man a plan a canal Panama' is a famous palindrome when spaces and case are ignored — one of the most cited examples in English literature.
'Madam, in Eden, I'm Adam' is another classic palindrome attributed to Adam introducing himself to Eve.
'No lemon, no melon' is a short, memorable palindrome useful for demonstrating the concept.