{"content":{"intro":"The Palindrome Checker tells you whether a word, phrase or number reads the same forwards and backwards. It ignores spaces, punctuation and capital letters, just as people do when they enjoy palindromes.","sections":[["Famous examples","Single words like \"racecar\", \"level\" and \"madam\"; phrases like \"A man, a plan, a canal: Panama\" and \"Was it a car or a cat I saw?\"; and numbers like 12321. Dates can be palindromes too: 22 February 2022, written 22022022, reads the same both ways."],["How the check works","Everything except letters and digits is removed, the remaining text is lowercased, and the result is compared with its own reverse. If they match, it's a palindrome."],["Limitations","Only the English letters a–z and the digits 0–9 are compared, so accented and non-Latin letters are ignored when checking."]],"faqs":[{"q":"Do spaces and punctuation matter?","a":"No, they're ignored, so whole sentences can count as palindromes."},{"q":"Can numbers be palindromes?","a":"Yes, 121, 1331 and 12321 are all palindromic numbers."},{"q":"What's the longest palindromic word in English?","a":"\"Tattarrattat\", a word coined by James Joyce in Ulysses, is often cited as the longest."}]},"sfaq":[{"q":"Do spaces and punctuation count in a palindrome check?","a":"No, they're ignored, along with capitalization, so phrases like \"A man, a plan, a canal: Panama\" are correctly identified as palindromes."}],"copy":{"explain":"With &quot;Ignore spaces &amp; punctuation&quot; on, everything except letters and digits is removed; with &quot;Ignore capitals&quot; on, the text is lowercased. The result is compared with its own reverse, and each mirrored pair of letters is checked so mismatches can be highlighted.","example":"&quot;Never odd or even&quot; → Palindrome: &quot;neveroddoreven&quot; reads the same both ways. &quot;hello&quot; → Not a palindrome, with 2 mismatched pairs shown in red, and the tool suggests &quot;hellolleh&quot; as the shortest way to make it one.","intro":"The Palindrome Checker tells you whether a word, phrase or number reads the same forwards and backwards. Letter tiles show each mirrored pair, with any mismatches in red, and it suggests the shortest ending that would turn your text into a palindrome. You can choose whether spaces, punctuation and capitals count.","sections":[["Famous examples","Single words like &quot;racecar&quot;, &quot;level&quot; and &quot;madam&quot;; phrases like &quot;A man, a plan, a canal: Panama&quot; and &quot;Was it a car or a cat I saw?&quot;; and numbers like 12321. Dates can be palindromes too: 22 February 2022, written 22022022, reads the same both ways. Tap an example to try it."],["How the check works","By default everything except letters and digits is removed, the remaining text is lowercased, and the result is compared with its own reverse. Switch off either option for a strict check, where &quot;Racecar&quot; with a capital R would not count."],["Any language","Letters from any alphabet are compared, so words in Hindi, accented European words and other scripts are checked too."]],"faqs":[{"q":"Do spaces and punctuation matter?","a":"Not by default, so whole sentences can count as palindromes. Switch off &quot;Ignore spaces &amp; punctuation&quot; to include them."},{"q":"Can numbers be palindromes?","a":"Yes, 121, 1331 and 12321 are all palindromic numbers."},{"q":"What's the longest palindromic word in English?","a":"&quot;Tattarrattat&quot;, a word coined by James Joyce in Ulysses, is often cited as the longest."}]},"feat":[["Instant verdict","Tells you if it reads the same both ways."],["Mirrored letter tiles","Each pair is matched, with mismatches in red."],["Make it a palindrome","Suggests the shortest ending that would turn it into one."],["Your rules","Choose whether spaces, punctuation and capitals count."]],"faqx":[{"q":"What is a palindrome? Give some examples.","a":"A palindrome reads the same forwards and backwards. Words like madam, level, racecar and malayalam are palindromes, as are phrases like &quot;Never odd or even&quot; once spaces and capitals are ignored, and numbers like 12321."},{"q":"What is a palindrome date?","a":"A date whose digits read the same both ways. In the Indian day-month-year format, 22-02-2022 gives 22022022, which is a palindrome, and so does 12-02-2021. Type the digits without dashes to check any date."},{"q":"How does &quot;Turn it into a palindrome&quot; work?","a":"It finds the longest part at the end of your text that is already a palindrome, then adds the reverse of the remaining start. For &quot;hello&quot; the ending &quot;o&quot; is a palindrome, so &quot;lleh&quot; is added to give &quot;hellolleh&quot;."},{"q":"Why is &quot;A man, a plan, a canal: Panama&quot; not a palindrome for me?","a":"With &quot;Ignore spaces &amp; punctuation&quot; or &quot;Ignore capitals&quot; switched off, the commas, spaces, colon and capital letters are compared too, so the phrase fails. Switch both options on and it is compared as &quot;amanaplanacanalpanama&quot;, which is a palindrome."},{"q":"What do the red and green tiles mean?","a":"Each letter is paired with its mirror from the other end. Green pairs match and red pairs do not, and in an odd-length word the middle letter is marked separately because it has no partner. Text over 30 characters is still checked but not drawn."},{"q":"Is &quot;stressed&quot; and &quot;desserts&quot; a palindrome?","a":"No. Reversing &quot;stressed&quot; gives a different word, &quot;desserts&quot;, so neither is a palindrome. Words like this are called semordnilaps. A true palindrome turns into itself when reversed, as &quot;refer&quot; does."},{"q":"How do you check a palindrome in a program?","a":"Clean the string the same way this tool does, then compare it with its reverse, or move two pointers inward from both ends and stop at the first mismatch. The two-pointer method needs no extra copy and is a common interview answer."},{"q":"Does a palindrome need an odd number of letters?","a":"No. Odd-length palindromes like racecar have a middle letter that matches itself, while even-length ones like noon or abba pair every letter. Even a single letter counts as a palindrome, since it reads the same both ways."}]}