Palindrome Checker

Check whether a word, phrase or number is a palindrome, with options to ignore case, spaces and punctuation, and find the longest palindrome inside it.

Last updated

Try these examples:

About the Palindrome Checker

Type or paste a word, phrase or number and the checker tells you straight away whether it reads the same forwards and backwards. By default it ignores capital letters, spaces and punctuation, which is how phrase palindromes are normally judged: "Was it a car or a cat I saw?" becomes "wasitacaroracatisaw", which is identical when reversed.

Three options let you make the test stricter. Untick Ignore spaces and "Never odd or even" fails, because the spaces no longer line up when the text is reversed. Untick Ignore case and "Madam" fails, because "M" and "m" are different characters. The Compared Text box shows exactly what was checked after your options were applied, so you can always see why a result came out the way it did.

The tool also shows your text fully reversed and finds the longest palindrome hidden inside it, counting letters and digits and ignoring case. For "banana" that is "anana", and a date such as 12-02-2021 passes as a whole once the hyphens are ignored. It is handy for word games and puzzles, for teaching, and for programmers checking the output of their own palindrome code. For letter puzzles of a different kind, try the Anagram Checker.

How to use the Palindrome Checker

  1. 1

    Enter your text

    Type or paste a word, phrase or number into the box, or click one of the examples under "Try these examples".

  2. 2

    Choose the options

    Ignore case, Ignore spaces and Ignore punctuation and symbols are all ticked by default. Untick any of them for a stricter check.

  3. 3

    Read the result

    A green "It's a Palindrome!" or a red "Not a Palindrome" appears as you type, with the compared text, the reversed text and the longest palindrome inside.

What it can do

Instant result

The check runs on every keystroke; there is no button to press.

Three independent options

Ignore case, spaces, and punctuation and symbols separately, so you can test exactly the rule your puzzle uses.

Shows what was compared

Compared Text displays your input after the options are applied, next to the plain reversed text.

Longest palindrome inside

Finds the longest run of letters and digits that is itself a palindrome, for example "anana" in "banana".

Any alphabet

Accented letters, non-Latin scripts and digits are kept as letters and digits rather than stripped out.

Limitations

  • Characters are compared one Unicode code point at a time. In scripts where vowel signs attach to consonants, such as Devanagari, reversing moves those signs, so results may not match how a reader sees the word.
  • Accents are not removed, so "é" and "e" count as different letters.
  • The longest-palindrome search always ignores case, spaces and punctuation, whatever options you choose.
  • It checks characters, not whole words, so word-order palindromes such as "fall leaves after leaves fall" are not detected.

Privacy

The check runs entirely in your browser; the text you enter is not sent to FlexyPdf's servers.

Frequently asked questions

What counts as a palindrome?

A word, number or phrase that reads the same in both directions, such as "level", "12321" or "Never odd or even". For phrases, the usual convention is to ignore spaces, punctuation and capital letters, which is this tool's default.

Why does "Never odd or even" fail when I untick Ignore spaces?

With spaces kept, the text reversed is "neve ro ddo reven", which is not the same string. The letters match but the gaps fall in different places, so a strict check says no.

Can I check numbers and dates?

Yes. Digits are kept, so 12321 passes. A date written as 12-02-2021 also passes with Ignore punctuation and symbols ticked, because it is compared as 12022021.

Why is Reversed Text different from Compared Text?

Reversed Text flips your original input exactly as typed, including spaces and capitals. Compared Text is your input after the options are applied. The result depends only on whether Compared Text equals its own reverse.

Is a single letter a palindrome?

Technically yes, so a single character is reported as a palindrome. The longest-palindrome box only appears when it finds one of two or more characters.

Ratings & Reviews

—
No ratings yet
5
0
4
0
3
0
2
0
1
0

Rate Palindrome Checker

Help others by sharing your experience. Your rating is shown without your name.

0/600