Palindromes on demand
This tool serves a random palindrome — a word or phrase that reads the same forwards and backwards — from a curated, verified list, and includes a checker so you can test your own. It is handy for word games, puzzle design, and idle linguistic curiosity.
How it works
For checking, the input is normalized: every character that is not a letter or digit is removed and the rest is lowercased. The cleaned string is then compared to its reverse:
clean = text.replace(non-alphanumerics).toLowerCase()
isPalindrome = (clean === reverse(clean))
This is why “A man, a plan, a canal: Panama” counts — once spaces, commas, the colon, and case are stripped, both directions match. The same routine validates every entry in the built-in list at runtime, so you only ever see genuine palindromes.
Example
racecarreverses toracecar— palindrome.Was it a car or a cat I saw?normalizes towasitacaroracatisaw, which is its own reverse — palindrome.helloreverses toolleh— not a palindrome.
Everything runs locally, so your puzzles and drafts stay private.