What is a palindrome number?
A palindrome number reads exactly the same forwards and backwards. 121 is a palindrome, because reversing it gives 121 again, and so is 12321, while 123 is not, because reversing it gives 321. The test is simple to state and surprisingly rich once you start looking. This page gives you that answer in a second, with the working shown beside the result, and everything runs entirely in your browser with no sign-up and no data sent anywhere.
Palindrome numbers turn up in school puzzles, in programming exercises, and in number games, where they are a favourite pattern to hunt for. This checker takes any number, or any text, and shows whether it is a palindrome and what it looks like reversed. Students meet it in school maths, programmers meet it in code, and shopkeepers and clerks meet it whenever a total has to be split fairly or checked by hand.
The results box shows the answer first, in large type, and then the supporting numbers underneath it, so you can see both the headline and the working at a glance. Change any input and the answer updates at once, which makes it easy to test a few values and build a feel for how the numbers behave.
How a palindrome is tested
The checker reverses the input and compares the reversed version with the original. If the two match exactly, the input is a palindrome; if they differ anywhere, it is not. For the default example, 121, the reversed value is 121, which matches, so the answer is yes, and the reversed value is shown as proof.
The rule is that a value is a palindrome when reversing its digits gives the same value back. For 121, the first digit is 1 and the last digit is 1, and the middle digit, 2, stays in the middle when reversed, so nothing changes. The comparison is done character by character, which is why the checker treats the input as text rather than as a number.
Leading zeroes matter, which is why this checker uses a text input: 010 is a palindrome, because reversing it gives 010, but a number input would drop the leading zero and turn it into 10, which is not a palindrome. Empty input gives no answer at all, since there is nothing to compare.
A quick mental check is to compare the digits in pairs from the outside in: the first digit must equal the last, the second must equal the second-last, and so on. If any pair disagrees, the number is not a palindrome, and you can stop checking. For 123, the first pair is 1 against 3, so it fails at once.
Leading zeroes change the answer
The text input is the detail people overlook, and it exists for a reason: numbers with leading zeroes behave differently as text and as numbers. 010 is a palindrome as text, because the zero at the front matches the zero at the back, but as a plain number it would be written 10, which reversed is 01, or 1. Keeping the input as text preserves the digits exactly as typed.
Compare 010 with 123 to see the difference. Reversing 010 gives 010, an exact match, so the answer is yes. Reversing 123 gives 321, which is a different number, so the answer is no. The same test, two different results, decided by whether the digits mirror each other.
The safe habit is to read the input back before trusting the output: check the digits, check the sign, and check that you have not swapped the two numbers round. A calculator only repeats the question you actually asked it, so a careful ten seconds on the input saves a wrong answer later.
A worked example: 121, 123, and 010
First, the default example: 121. Reverse it and you get 121, because the 1 at the front swaps with the 1 at the back and the 2 stays in the middle. The reversed value matches the original exactly, so 121 is a palindrome.
Second, 123. Reverse it and you get 321, because the 1 and the 3 swap places and the 2 stays in the middle. The reversed value is a different number, so 123 is not a palindrome.
Third, 010. Reverse it and you get 010, because the zero at the front swaps with the zero at the back and the 1 stays in the middle. The reversed value matches, so 010 is a palindrome, and it is the example that shows why the text input matters.
The pattern is that palindromes are symmetric: the first half of the digits mirrors the second half. A three-digit palindrome has matching first and last digits, a four-digit one has two matching pairs, and the middle of the number takes care of itself.
Where palindromes turn up
Palindrome numbers are a classic programming exercise, because reversing a string and comparing it with the original is one of the first things a learner codes. They also appear in puzzles, in number games, and in dates: 02-02-2020 was a palindrome date, reading the same forwards and backwards.
Words can be palindromes too, and this checker works on text as well as numbers, so level, radar, and madam all pass the same test. A prime number checker and a factorial calculator are the usual companions in a number-puzzle toolbox, and palindromes sit happily alongside them. A prime number checker and a factorial calculator sit next to this kind of work in most maths toolboxes, and people often use two or three of them together on the same problem. If you want to create one instead of checking one, a palindrome generator builds palindromes for you from a word you give it.
In school, palindromes are a gentle introduction to symmetry and to reversing a sequence, two ideas that return in algebra, in coding, and in data structures. A student who can spot that 12321 is a palindrome has understood mirroring, which is a bigger idea than one number.
Try a few values yourself once you have read the worked examples, changing one input at a time and watching how the answer moves, then check one result by hand with the method above before you trust the screen. That habit, one hand check for every new kind of problem, is what turns a quick answer into real understanding, and it catches the typing slips that no calculator can catch for you.
Palindrome checker vs a prime number checker
A palindrome checker looks at the shape of the digits, while a prime number checker looks at what divides the number. A number can be a palindrome and composite, like 121, which is 11 times 11, or prime and not a palindrome, like 13, and the two properties are independent of each other. A average calculator answers a different question, so the two tools complement each other rather than competing.
Use this checker when the question is about reading the same forwards and backwards, for a puzzle, a date, or a code exercise. Use a prime checker when the question is about factors. The two checks answer different questions, and a number can pass one, both, or neither.
Palindromes pair well with averages and scientific notation in a general maths toolbox, since all three deal with reading and writing numbers carefully, and a small slip in digits changes the answer. A scientific calculator is another tool people reach for on the same kind of problem, and keeping the three together covers most everyday cases.
Common palindrome mistakes
The most common mistake is dropping leading zeroes. 010 is a palindrome, but 10 is not, so an input that strips the leading zero changes the answer. This checker keeps the input as text precisely so that 010 stays 010.
The second mistake is checking only the first and last digits. A number like 1221 passes the outer pair but must also pass the inner pair, 2 against 2, to be a palindrome. Every pair has to match, not just the outside one.
The third mistake is ignoring spaces and punctuation in text. A phrase like never odd or even is a palindrome only when the spaces are removed, so the checker compares exactly what you type. If you want to test a phrase, remove the spaces first.
The fourth mistake is assuming palindromes must have an odd number of digits. Even-length palindromes are common: 1221, 3443, and 1001 are all palindromes, with two matching pairs and no middle digit at all. Length does not matter, symmetry does.
How to use this palindrome checker
Type a number, or any text, in the box and read the answer at once: yes or no, with the reversed value underneath. The result updates live as you type, so try 121, then 123, then 010, and watch the answer change with the digits.
Read the headline answer first, then the reversed value. If the reversed value matches what you typed exactly, character for character, the input is a palindrome; if it differs anywhere, it is not.
If an answer surprises you, check the input first, then run the worked example from this page through the calculator and confirm it gives the same result. When the known example is right and your own input is right, the answer is right, and that two-step check settles almost every disagreement between a person and a calculator.
Nothing you type leaves your device, so you can use the palindrome number checker as often as you like, for homework, for work, or just to settle an argument. Bookmark the page and it is ready whenever the next number needs checking.