Skip to content

Palindrome Checker

Check whether a text reads the same backwards, with or without spaces and punctuation.

Input

What counts as a palindrome

A palindrome reads the same in both directions. Whether "A man, a plan, a canal: Panama" is one depends entirely on whether spaces and punctuation count — by the usual convention they do not, which is why that is the option here.

Reversal is done by code point rather than by UTF-16 unit. Reversing the raw units would split an emoji or an old CJK character into two invalid halves and compare nonsense.

Frequently asked questions

Is an empty string a palindrome?

Mathematically yes, but reporting "yes" for an empty box is unhelpful, so this asks for at least one character.

Related tools