Palindrome checker
Type a word or phrase and find out instantly whether it reads the same backwards. Nothing is uploaded.
A palindrome is a word, phrase, number or sequence that reads the same forwards and backwards. Type or paste your text, press the button, and this tool tells you at once whether it qualifies. By default it ignores capital letters, spaces and punctuation, so Racecar, racecar and race car all count, and a full sentence like A man, a plan, a canal: Panama passes even though the raw characters clearly do not match end to end. Everything happens inside your browser the instant you press the button, with no server, no account and no waiting.
Runs entirely in your browser. Your text is never uploaded — open DevTools, Network tab, and you will see zero requests while you use this tool.
How to use it
- Type or paste the word, phrase or number you want to test into the box.
- Press "Check if palindrome" — the result appears immediately, along with the normalised version that was compared.
- By default case, spaces and punctuation are ignored, which is what "palindrome" usually means for a phrase.
- Copy or clear the result and try the next candidate.
What this tool does
The check runs in two simple steps, and understanding them tells you exactly why any answer came out the way it did. First it normalises your text: it converts every letter to lower case and strips out everything that is not a letter or a digit — spaces, commas, colons, apostrophes, hyphens and so on. The phrase Was it a car or a cat I saw? becomes the bare string wasitacaroracatisaw.
Second, it reverses that normalised string and compares it to the original normalised string, character by character. If the two are identical, the text is a palindrome; if a single character differs, it is not. That is the entire algorithm, and it is exactly what you would do by hand — remove the noise, then read it backwards.
Because the comparison is done on the cleaned string, the tool is forgiving by design. Real palindromic sentences depend on that forgiveness: nobody writes a sentence whose spaces and punctuation also mirror perfectly. Ignoring them is what makes the concept work for phrases at all.
Famous examples
Palindromes have been a language game for over two thousand years, and a handful have become genuinely famous. Paste any of these in and watch them pass:
- racecar — the classic single-word example, symmetric letter for letter.
- A man, a plan, a canal: Panama — perhaps the best-known English sentence palindrome.
- Was it a car or a cat I saw? — reads identically in both directions once the spaces and question mark are removed.
- Madam, I'm Adam — a short conversational palindrome, ignoring the comma and apostrophe.
- Never odd or even — a phrase that also happens to describe symmetry itself.
- level, rotor, civic, kayak, refer, noon — everyday words that are palindromes without anyone noticing.
Names count too: Anna, Bob, Hannah and Otto all read the same both ways, which is why they turn up so often in puzzles and word games.
When you need it
- Homework and language study. Spotting and building palindromes is a standard classroom exercise; the checker settles arguments about whether a tricky phrase really qualifies.
- Puzzles, crosswords and word games. Many puzzle clues hinge on a word reading the same backwards, and testing candidates by hand is slow and error-prone.
- Programming practice. "Is this string a palindrome?" is one of the most common coding interview questions; use this to sanity-check the expected output of your own function.
- Writing and wordplay. Poets, songwriters and puzzle setters test constructed sentences to confirm the symmetry actually holds before they publish it.
- Curiosity about numbers and dates. Working out whether today's date or a phone number reads the same backwards is a small pleasure the tool makes instant.
Word, phrase and number palindromes
The same idea applies at three levels, and the difference is worth knowing.
Word palindromes are single words that are symmetric — level, deed, stats. There is nothing to strip out.
Phrase palindromes are whole sentences that only work once you ignore spaces and punctuation. This is the interesting category, and it is why normalisation exists. Without it, almost no sentence would ever pass, because the spacing rarely mirrors.
Number palindromes are digits that read the same both ways: 1221, 90709, 7. Palindromic dates are a fun special case — written as a plain digit string, dates such as 02/02/2020 read the same backwards. Because the tool strips the slashes before comparing, you can paste a date in any separator style and it still works.
Doing it without this tool
By hand. Cross out every space and punctuation mark, lower-case the letters in your head, then read the result from the last letter to the first and check it matches. It works, but for anything longer than a few words people miscount and miss a mismatched letter in the middle.
In code. In Python the whole thing is one line: s = ''.join(c.lower() for c in text if c.isalnum()); print(s == s[::-1]). In JavaScript, const s = text.toLowerCase().replace(/[^a-z0-9]/g,''); s === [...s].reverse().join(''). If you already have a console open this is faster than any website; the tool exists for the times you do not.
Privacy: your text never leaves your browser
Everything this tool does happens locally in your browser using JavaScript. The word or phrase you type is never uploaded, logged or sent to any server, and there is no account to create. That matters because the text you test may be a draft, a password candidate, a real name or a private note. Once the page has loaded you can even disconnect from the internet and it keeps working.
Related tools
Frequently asked questions
A palindrome is a word, phrase, number or sequence that reads the same forwards and backwards. "level" and "12321" are palindromes; "hello" is not. For phrases, spaces and punctuation are normally ignored, so "Never odd or even" counts.
Yes. It lower-cases the text and strips spaces and punctuation before comparing, so "Racecar" and "race car" both pass.
Because the check compares the cleaned text. Once you remove the spaces and lower-case the letters you get "amanaplanacanalpanama", which reads identically in both directions. The spaces in the original are ignored on purpose.
Yes. A number like 1221 reads the same backwards, and a date such as 02/02/2020 becomes a palindrome once the slashes are stripped. Paste the date in any format; the tool removes the separators before comparing.
A single character is trivially a palindrome because it is identical read either way. An empty string is generally treated as a palindrome too, since there is nothing to contradict the symmetry, though it is rarely a useful case.
No. The entire check runs in your browser with JavaScript. Nothing you type is uploaded, saved or logged, and the tool keeps working even if you go offline after the page loads.