Written by Jane Smith · Reviewed by Sarah Mitchell · July 30, 2026
Check whether any word, phrase, or sentence reads the same forwards and backwards.
Enter text above and click Check Palindrome.
A palindrome is a sequence that reads the same forward and backward. Single words like racecar and level qualify, and so do whole sentences, provided the comparison ignores the details that would otherwise break the symmetry. This page checks any text you paste in and reports whether it survives that round trip.
The classic demonstration is A man, a plan, a canal: Panama. Stripped of spaces, punctuation, and case, the sentence becomes amanaplanacanalpanama. Read backward, that cleaned string is identical, so the checker returns a firm YES. The output panel shows both the cleaned text and its reversal so you can confirm the symmetry yourself.
Spaces, commas, colons, apostrophes, and every other punctuation mark are discarded before the test runs, along with capitalization. Only letters and digits survive the cleaning step, which is why phrases full of punctuation can still qualify. The original length is reported alongside the cleaned length, so the difference between them shows exactly how much was removed.
Without stripping punctuation, almost nothing longer than a word would qualify, because commas, spaces, and capitalization break the symmetry on nearly every real phrase. The rules are a convention, not a mathematical law: they define which text counts as a palindrome for the purpose of this check. The page applies the same convention to every input, so results stay comparable across different phrases.
A single character always reads the same in both directions, so the checker treats it as a palindrome. An empty input is not processed at all, and the page leaves the result panel blank rather than inventing an answer. Understanding those two boundaries removes the most common source of confusion when the tool seems to answer oddly.
For text that is not a palindrome, the checker pinpoints the earliest position where the forward and backward scans disagree. Take hello: the first character h should match the final character o, and it does not, so the divergence is flagged right at the start. That pointer makes it easy to see why a near miss failed.
Comparison happens after everything is lowercased, so Radar and radar are treated as the same sequence. Digits are kept, meaning 12321 is a valid palindrome of numbers. Letters with diacritics are normalized before the check, so accented input behaves predictably rather than producing a false negative.
Start with a short word like radar and expand it outward one mirrored pair at a time. Add a space after the first letter, mirror the letters at the end, and check that the middle reads the same in both directions. Numbers work the same way: 12321 grows from the central 3 by appending mirrored digits on each side.
Most phrases fail on a single character: a missing mirrored letter, an extra space in the wrong spot, or a final period that the cleaning step does remove. The divergence marker points at the exact position where the forward scan stops matching the backward scan, so a near miss becomes a quick fix rather than a puzzle.
Cleaning and reversal happen with ordinary JavaScript string operations: the input is lowercased, filtered to letters and digits, then reversed by reading it from the end toward the start. Multi-byte characters are handled safely, so the comparison works with any script the browser can render. The cleaned string and its mirror are shown side by side in the output, making the final step fully transparent.
The longest palindromic sentences are engineered to be symmetric in both meaning and spelling. Never odd or even, Was it a car or a cat I saw, and A man, a plan, a canal, Panama are favorites, but any phrase you construct will be judged by the same rule: cleaned text must equal its own reversal.
Dates can read symmetrically too, like 20/02/2002, and some times of day line up as mirrored digits. DNA researchers occasionally search for palindromic sequences in genomes, where they act as binding sites for certain proteins. The checker itself stays focused on text, but the same symmetry idea shows up across calendars, clocks, and code.
Each of these is symmetric only after the cleaning step, so they are ideal for confirming that the page handles punctuation and spaces the same way every time.
The palindrome test happens entirely inside the browser. Your text, whether a single word or a long passage, is never transmitted to a server, so you can check anything from passwords to draft prose without it leaving the page. Refresh and the input clears automatically.