Toolvito

Works on this device

Palindrome Checker

Type a word, a phrase or a number to see if it reads the same from the end as from the start. You choose what is ignored, and the page shows exactly what was compared.

Your text

Your values

Spaces at the start and end are not used.

Your values are worked out in this browser. They are not sent to a server.

The answer will show here

Type a word, phrase or number, or choose Try an example.

How to use the palindrome checker

  1. Type or paste a word, a phrase or a number. The answer updates as you type.
  2. Tick or untick the rules: capital letters, spaces, punctuation and symbols, and accent marks.
  3. Read Text as compared and Same text backwards to see what was checked. If it is not a palindrome, the first difference is shown.
  4. To check many at once, choose Check a list, one on each line. You can also open a text file.

The rules

  • Characters as a reader sees them: the text is compared one character at a time, where a character is what you see on the screen. A letter with an accent, a flag or an emoji made of several parts is one character, so it is never cut in two when the text is turned around.
  • Ignore capital and small letters: capital letters are changed to small letters first, so Racecar is a palindrome. The Greek final sigma ς counts as σ.
  • Ignore spaces and line breaks: all spaces, tabs and line breaks are taken out, so never odd or even is a palindrome.
  • Ignore punctuation and symbols: marks such as , . ! ? - ' $ % are taken out, and so are emoji, which are symbols too. Untick this to compare emoji.
  • Ignore accent marks: the accent marks that are written above or below a letter are taken off, so é is e and ñ is n. Letters such as ø, ł and ß are not built from a mark and stay as they are.
  • With every rule unticked, the text must be exactly the same backwards, with every space and mark.

Worked example

A man, a plan, a canal: Panama with all rules ticked becomes amanaplanacanalpanama, 21 characters. Backwards it is the same, so it is a palindrome.

Never odd or even is a palindrome when spaces are ignored. If you untick Ignore spaces and line breaks, character 5 from the start is "r" but character 5 from the end is a space, so it is not.

The number 12,321 is a palindrome when punctuation is ignored. 10 is not, because it reads 01 backwards.

Limits you should know

  • The page checks the text you type. It does not search a text for the longest palindrome in it.
  • The page does not give program code in Python, JavaScript or C++. You can use it to check the answers of your own program with the same rules.
  • For a few scripts, such as Korean letters typed one by one, older browsers may split characters a little differently.
  • A list can have up to 10,000 lines.

Related tools