Palindrome Checker
| Classic palindromes |
|---|
| racecar · level · madam · rotor · never odd or even · was it a car or a cat I saw · a man, a plan, a canal: Panama · 12321 · 02-02-2020 |
Type a word, phrase, or number and this checks whether it is a palindrome - reading identically forwards and backwards: 'racecar', 'A man, a plan, a canal: Panama', or the date 02-02-2020. Case, spaces and punctuation are ignored, which is how palindromes are properly judged.
Bottom line: the check is mechanical, not subjective. The input is normalized to lowercase letters and digits, reversed, and compared to the original - a match means palindrome. The reversed text is printed below the verdict so you can see the mirror yourself, and near-misses are the fun part: 'almostomla' wants to be one and is not, while 'taco cat' sails through with its space ignored.
The honest part: palindromes split into two honest families. Word palindromes are language play, old as the ancient Greek SATOR square carved on walls across the Roman empire. Date palindromes are rarer arithmetic: 02-02-2020 was the first US-style palindrome date in 929 years by one popular counting, and the next full mirror dates march through this century one by one. Numbers and words obey the same rule here - the string is the string, whichever way it reads.
How to use
- Type a word, phrase, or number - capitals, spaces and punctuation are handled automatically.
- Read the verdict: palindrome or not, with the reversed text shown as the mirror proof.
- Try the canon: racecar, never odd or even, was it a car or a cat I saw, and 12321.
Frequently asked questions
What is a palindrome?
A palindrome is a sequence that reads the same forwards and backwards. The word palindromes everyone meets first are single words - racecar, level, madam, rotor - but the celebrated ones are phrases that survive ignoring spaces and punctuation: 'A man, a plan, a canal - Panama', attributed to Leigh Mercer in 1948 as a celebration of the canal's builder. Numbers join the game too: 12321 backwards is 12321, and whole calendar dates can mirror, which is how 'palindrome day' entered the almanac.
How does the palindrome checker decide?
It normalizes first: everything except lowercase letters and digits is stripped, so spaces, apostrophes and punctuation cannot fool the comparison. Then the cleaned string is reversed and compared with itself. 'Never odd or even' becomes neveroddoreven, which reverses to exactly the same sequence - a palindrome. The reversed text is displayed under the verdict precisely so a human eye can audit the machine's answer character by character.
What are palindrome dates, and when is the next one?
A palindrome date is a calendar date whose digits mirror - like 02-02-2020, which reads identically in the month-day-year format. Full eight-digit palindrome dates are rare: in the US MM-DD-YYYY format they cluster in what one meteorologist famously counted as the first in 929 years, then arrive roughly a decade apart through this century - 12-02-2021, 03-02-2030, 04-02-2040 and onward. Different date formats give different palindrome days, which is why countries argue about which ones count.
Are palindromes good for anything besides wordplay?
Quietly, yes. The mirror property makes palindromes a standard first exercise in programming education - the canonical beginner problem for loops, string reversal, and thinking about edge cases, which is exactly why so many interview loops start there. In mathematics, palindromic numbers appear in recreational number theory and in the ongoing hunt for Lychrel numbers, the candidates that may never become palindromes no matter how many times you reverse and add. And in genetics, palindromic sequences - DNA that reads the same on both strands - matter in how restriction enzymes find their cut sites.