Check if any word, phrase, or sentence is a palindrome. Ignore spaces, punctuation, and case. Shows character mirror diff and longest palindromic substring.
“Is this a palindrome?” hides three smaller questions, and all three are checkboxes here. Does spacing count? Does punctuation? Does capitalisation? The Palindrome Checker opens with all three ignored, the literary convention that lets A man a plan a canal Panama qualify, and each one can be switched back on for the strict answer.
The verdict banner is only half the output. Beneath it a character mirror lays the cleaned string out as tiles, green where a character matches its counterpart from the far end and red where it does not, so a near miss shows you precisely which pair broke it. When the answer is no, a third panel names the longest palindromic run buried inside the string and gives its length.
Six sample chips sit at the foot, five of them palindromes and one that is not, so the failure state can be inspected without inventing an input. Everything is computed in the page as you type.
Dennis sinned and Dennis, sinned reduce to the same candidate.The search expands around every centre. At each position it tries a centre on the character, then a centre in the gap before the next one, and walks outwards while the two ends agree. That covers odd-length and even-length runs in a single pass and costs O(n²) at worst, which is nothing on the 80-character strings this panel appears for. Tap the rotator engine chip and it answers rotator at 7 characters, having discarded the shorter otato and tat on the way.
Racecar fails, because the leading R no longer matches the trailing r. The mirror shows 2 red tiles at the ends and green throughout the middle.2002 qualifies, and 20/02 qualifies too once punctuation is ignored.À loses that letter before the check even runs.✅ Palindrome
Cleaned string: racecar · 7 characters
Character Mirror — green = matching, red = mismatch
Try these: