Palindrome Checker - Is It a Palindrome?

Check if any word, phrase, or sentence reads the same forwards and backwards. Ignores spaces and punctuation automatically.

Runs in your browser. No data leaves your device.

Frequently Asked Questions

How does the Palindrome Checker work?

The tool strips all non-alphanumeric characters using a regex, converts the remaining text to lowercase, then compares the cleaned string with its reversed version (using Array.reverse()). If the forward and reversed strings are identical, the input is a palindrome. The comparison ignores spaces, punctuation, and case so phrases like "A man, a plan, a canal: Panama" are correctly detected.

What is a palindrome?

A word, phrase, or sentence that reads the same forwards and backwards. Examples include "racecar", "madam", and "A man a plan a canal Panama" (ignoring spaces and punctuation).

Does it ignore spaces and punctuation?

Yes. The checker strips spaces, punctuation, and capitalization before comparing. This means phrases like "Was it a car or a cat I saw?" are correctly identified as palindromes.

Can I check numbers too?

Yes. Numbers like 12321, 1001, and 45654 are palindromes. The tool works with any text input including numbers, letters, and mixed content.