What is a text palindrome checker?
A text palindrome checker tells you whether a word or phrase reads the same forwards and backwards. Type "racecar" and it is a palindrome. Type "A man, a plan, a canal: Panama" and it is also a palindrome — once the spaces, commas, and colon are removed and the capitals are lowered, the 21 letters read the same in both directions.
Palindromes are a word puzzle as old as written language. The Latin phrase "in girum imus nocte et consumimur igni" reads the same backwards, and the English "Madam, I'm Adam" is the classic example. Puzzle fans, teachers, and programmers all check palindromes, for fun and for practice.
This checker works on text — words and phrases — which is different from the number palindrome checker on this site, which checks numbers only. The rule here is the same idea applied to letters: strip everything that is not a letter or a digit, lower the case, and compare with the reverse.
Palindromes have a long history as a word game, and the famous examples are almost all phrases rather than single words. A man, a plan, a canal: Panama is the best known, and it works only because the cleaning step removes the commas, the spaces, and the colon before the comparison. Single words such as level, radar, and madam are palindromes too, but they are less interesting — they need no cleaning, so the checker has nothing to do. The phrases are the real test, because the punctuation is what hides the symmetry.
How palindrome checking works
The method has three steps. First, clean the text: remove every space, punctuation mark, and symbol, and turn every capital letter into a lower-case one. "A man, a plan, a canal: Panama" becomes "amanaplanacanalpanama" — 21 letters, with nothing else left.
Second, reverse the cleaned text. "amanaplanacanalpanama" reversed is "amanaplanacanalpanama" again, letter for letter. Third, compare the two. If they match exactly, the text is a palindrome; if any letter differs, it is not.
The cleaning step is what makes phrases work. Without it, "A man, a plan, a canal: Panama" would fail at the first character, because "A" is not "a" and the comma is not a letter. With cleaning, the phrase passes, and so do "racecar" (7 words in the default text, but only 7 letters in racecar) and "Was it a car or a cat I saw".
The comparison itself is simple once the text is clean: read the first character and the last character, and if they match, move one step in from each end and compare again. The checker repeats that until the two ends meet in the middle, and if every pair matched, the text is a palindrome. The work is all in the cleaning step, which is why the checker shows the cleaned text — it is the honest record of what was actually compared, and it is where a surprising result usually comes from.
The cleaning step, explained
Cleaning removes three things: spaces, punctuation, and capitalisation. Spaces are removed because a palindrome is about the letters, not the gaps between words — "nurses run" is a palindrome once the space goes, and it is not one with the space in place.
Punctuation is removed for the same reason. The comma in "Madam, I'm Adam" and the colon in the Panama phrase are not letters, so they cannot be part of the comparison. Apostrophes go too: "I'm" becomes "im", which is what the reverse needs.
Capitalisation is lowered because "A" and "a" are the same letter for this purpose. A case converter does the same lowering on its own, if you need the text in lower case for another reason. The cleaned text in the box below shows exactly what was compared — for the default phrase, 21 lower-case letters with no spaces or punctuation. If the cleaned text looks wrong, the input had a character you did not expect.
The cleaning step also decides what counts as a letter. Digits are kept, because a number such as 12321 is a palindrome and the checker should say so, and letters from other alphabets are kept too, because the rule is about characters, not about English. The only characters removed are the ones that carry no sound and no meaning in the comparison: spaces, punctuation, and symbols. That rule is what makes the checker fair across languages — a palindrome in Hindi or French is checked the same way as one in English.
A worked example: the Panama phrase
Take the default text: "A man, a plan, a canal: Panama". It has 7 words and 30 characters, but the checker only cares about the letters. Cleaning removes the spaces, the comma, and the colon, and lowers the capitals, leaving "amanaplanacanalpanama" — 21 letters.
Reverse those letters: start from the last "a" and read back to the first. The reverse is "amanaplanacanalpanama" — identical. Every letter matches its mirror, so the result is "Palindrome". The phrase was built to do this: it describes a man with a plan for a canal in Panama, and the words were chosen so the letters mirror.
Try a failure to see the difference: "hello world" cleans to "helloworld", 10 letters, and its reverse is "dlrowolleh". The first letters differ — h against d — so the result is "Not a palindrome". The checker compares letter by letter, and the first mismatch decides it.
Who uses a palindrome checker, and why
Puzzle fans are the main users. Crosswords, word games, and riddle sites all use palindromes, and a checker settles an argument in a second: is "taco cat" a palindrome? (Yes — "tacocat" reads the same both ways.) Is "hello" one? (No.)
Teachers are the second group. Palindromes teach symmetry, spelling, and careful reading, and a checker lets students test their own inventions at once. A student who writes "Never odd or even" and sees it pass has found a real palindrome — and the cleaned text shows them why.
Programmers are a third group, and they use palindromes as a practice problem. Checking a palindrome is a standard coding exercise, and this tool shows the expected answer for any input. A word counter pairs well when a puzzle asks for the longest palindrome in a passage.
Text palindromes vs number palindromes
A text palindrome mirrors letters; a number palindrome mirrors digits. The number palindrome checker on this site checks numbers such as 121 and 12321, where the rule is the same — reverse and compare — but the cleaning step is different, because numbers have no spaces or punctuation to remove.
Text palindromes are harder to build, because words must make sense in both directions. Number palindromes are easy: any digit string reversed is a digit string. That is why the famous palindromes are all text — "Madam, I'm Adam", "A man, a plan, a canal: Panama", "Was it a car or a cat I saw" — and why they are quoted as puzzles rather than as numbers.
Both kinds share the same test: clean, reverse, compare. If you can check one, you can check the other, and the tools on this site do both. A character counter tells you how long the cleaned text is, which is useful when a puzzle asks for the longest palindrome you can find.
Common palindrome mistakes
The first mistake is forgetting the cleaning step. "Racecar" with a capital R is still a palindrome, because case is ignored — but "Race car" with a space is only a palindrome after the space is removed. If you check by eye and the spaces confuse you, let the tool clean the text and read the cleaned version.
Second: counting spaces as characters. A phrase with an odd number of letters can still be a palindrome — "racecar" has 7 letters, and the middle "e" mirrors itself. The count that matters is the cleaned letter count, 21 for the default phrase, not the raw character count.
Third: assuming a palindrome must be a real sentence. "amanaplanacanalpanama" is not a sentence, but it is the cleaned form of one. The palindrome lives in the letters, not in the grammar — which is why the checker shows you the cleaned text, so you can see the mirror for yourself.
Fourth: single letters and empty text. A single letter is a palindrome by the rule, since it reads the same backwards, but it is not much of a puzzle. Empty text has nothing to compare, so the checker calls it not a palindrome rather than guessing.
A second mistake is forgetting that the checker is case-insensitive on purpose. A phrase such as Racecar reads as a palindrome only because the capital R and the lower-case r are treated as the same letter, and a checker that kept the case would call it a failure. The same goes for accented letters: an e with an accent is a different character from a plain e, so a phrase that mixes the two will fail even though a reader would call it a palindrome. When a result surprises you, look at the cleaned text first — the answer is usually there.
How to use this text palindrome checker
Type a word or phrase into the box — the default is "A man, a plan, a canal: Panama", 7 words. The result updates live: "Palindrome" or "Not a palindrome", with the cleaned letter count (21 for the default) and the word count below it.
Read the cleaned text in the box below to see exactly what was compared. For the default phrase it is "amanaplanacanalpanama" — 21 lower-case letters, no spaces or punctuation. If the result surprises you, the cleaned text usually explains it.
Everything runs in your browser. No sign-up, no account, no data sent anywhere — your text never leaves your device. It works offline once the page has loaded. Try your own name, a favourite phrase, or a sentence you invent — and see whether the letters mirror.
Type or paste the text and the result appears at once, with the cleaned text shown underneath so you can see exactly what was compared. The result says whether the text is a palindrome and how many characters were compared, which is the length of the cleaned text. To test a phrase, paste it with its punctuation intact — the checker removes the punctuation for you, and the cleaned text shows what was left. If the result says no, try removing a word and testing again; the cleaned text makes it easy to find the word that breaks the symmetry.