How to Use the Palindrome Checker
Checking for palindromes is instant:
Type your text. Enter any word, phrase, sentence, or number into the input field.
Configure options. Toggle case sensitivity and whether to ignore spaces and punctuation. Most natural-language palindromes require ignoring both.
View the result. The checker shows whether your input is a palindrome, along with a mirror visualization that highlights matching character pairs from the outside in.
- Words: racecar, level, kayak, civic, radar
- Phrases: 'Was it a car or a cat I saw?'
- Numbers: 12321, 1001, 9876789
- Sentences: 'Never odd or even'
Types of Palindromes
Palindromes come in many forms:
- Word palindromes: Single words like 'noon', 'deed', 'rotor', and 'refer'.
- Phrase palindromes: Multi-word sequences like 'Do geese see God?' that are palindromic when spaces and punctuation are removed.
- Numeric palindromes: Numbers like 12321 or dates like 02/02/2020.
- Sentence palindromes: Full sentences like 'Mr. Owl ate my metal worm'.
- Semordnilaps: Words that spell a different valid word backwards, like 'stressed' → 'desserts'.
The longest known English palindromic sentence contains over 17,000 words — created by computer in 2020.
Palindrome Checks in Programming
Palindrome detection is one of the most popular coding interview questions. Common approaches:
- Two-pointer technique: Compare characters from both ends, moving inward. O(n) time, O(1) space.
- String reversal: Reverse the string and compare. Simple but uses O(n) extra space.
- Recursive approach: Compare first and last characters, then recurse on the substring. Elegant but less efficient.
This tool uses the two-pointer approach for maximum performance on long inputs.
Step-by-Step Instructions
- 1Enter a word, phrase, or number into the input field.
- 2Toggle 'Ignore case' and 'Ignore spaces & punctuation' as needed.
- 3The tool instantly shows whether the input is a palindrome.
- 4View the mirror visualization to see matching character pairs.
- 5Explore the famous palindromes section for inspiration.