Home › Generators & Text Tools › Palindrome Checker

Palindrome Checker

Use this free palindrome checker to test any word, phrase, or number in seconds. Type your text, and the tool cleans it up — ignoring case, spaces, and punctuation — reverses it, and gives you a clear yes or no verdict. It runs entirely in your browser, with no sign-up and nothing sent anywhere.

Try an example — tap one:

Yes — it is a palindrome
Reversed: racecar

The checker ignores capital letters, spaces, and punctuation, so "Racecar" and "racecar" give the same answer.

How it works

A palindrome reads the same forwards and backwards. Checking one by hand is easy for a short word — you compare the first letter with the last, then the second with the second-to-last, and so on until you reach the middle — but a long phrase is harder because spaces, commas, and capital letters get in the way. This checker does the same comparison, in three steps. First it cleans the text: it turns every letter into lower case and removes everything that is not a letter or a digit, so spaces, commas, colons, and question marks disappear. Then it reverses what is left. Then it compares the cleaned text with the reversed text: if they match exactly, the answer is yes; if any letter differs, the answer is no.

Clean the text (lower case, letters and digits only) → reverse it → compare the two

The cleaning step is what makes phrases work. Take "Was it a car or a cat I saw?" — on the page it is full of spaces and ends with a question mark, but after cleaning it becomes "wasitacaroracatisaw", and reversed it is the same string, so it is a palindrome. Single words need no cleaning at all: "racecar" reversed is "racecar", while "hello" reversed is "olleh", and the mismatch at the very first letter — h against o — is enough to say no. Numbers work the same way because digits are kept during cleaning: 12321 reversed is 12321, but 12345 reversed is 54321, so only the first is a palindrome.

One edge case is worth knowing: a single letter, or a single digit, is always a palindrome, because a one-character string reversed is itself. An empty box, on the other hand, is not a test at all, so the checker asks you to type something first instead of giving a misleading answer. Very long text works fine too — the checker compares the whole string, however many words it has — although a long sentence is a palindrome only by careful construction, not by accident.

Worked example

Suppose you want to test the famous sentence "A man, a plan, a canal: Panama". Type or paste it into the box and press Check palindrome. Here is what the tool does, step by step.

Step 1: Clean the text. Lower case turns A into a, and removing spaces and punctuation leaves "amanaplanacanalpanama" — 21 letters.
Step 2: Reverse it. Reversing "amanaplanacanalpanama" gives "amanaplanacanalpanama" again.
Step 3: Compare. The cleaned text and the reversed text match letter for letter, so the verdict is yes.

The tool shows exactly this: Yes — it is a palindrome, with the detail line "Reversed: amanaplanacanalpanama". For a contrast, try the word "hello": cleaning leaves "hello", reversing gives "olleh", and the tool shows No — not a palindrome with the detail "Reversed: olleh". The reversed text is always shown, so you can see the mismatch for yourself instead of taking the verdict on trust.

FAQ

What is a palindrome?

A palindrome is a word, phrase, or number that reads the same forwards and backwards. Racecar, level, and madam are single-word palindromes, and longer ones include phrases such as A man, a plan, a canal: Panama. When checking a phrase, spaces, punctuation, and capital letters are ignored, so only the letters themselves are compared.

Do spaces and punctuation matter in a palindrome?

No. This checker removes spaces, punctuation, and symbols before comparing, and it treats upper and lower case letters as the same. That is the standard way palindromes are judged: Was it a car or a cat I saw? counts as a palindrome even though the question mark and spaces break up the letters on the page.

Can numbers be palindromes?

Yes. A number such as 121, 1331, or 12321 reads the same forwards and backwards, so it is a palindrome. This checker accepts digits too, so you can test a date, a year, or a whole number the same way you test a word.

What is the longest famous palindrome?

One of the longest well-known English palindromes is A man, a plan, a canal: Panama, written about the building of the Panama Canal. Longer playful sentences exist, such as Doc, note: I dissent. A fast never prevents a fatness. I diet on cod, but those are word games rather than natural sentences.

Why is my word not a palindrome?

A word fails when its first and last letters do not match after cleaning, or when any mirrored pair differs. The checker shows the reversed text so you can spot the mismatch: compare the original and the reversed version letter by letter, and the first place they differ is the reason it is not a palindrome.