Palindrome Checker

Check whether text, or each line, is a palindrome, ignoring case, spaces and punctuation as you choose — Unicode-aware, so accents and Hangul compare right.

30 characters · 21 compared

✓ Yes — this is a palindrome
Result
✓ Yes — this is a palindrome
Compared characters
amanaplanacanalpanama
Read backwards
amanaplanacanalpanama
How often each character occurs

a ×10, n ×4, m ×2, p ×2, l ×2, c ×1

What is a palindrome?

A palindrome is a word, phrase, number, or sequence that reads the same forwards and backwards. Single words like racecar and level are palindromes, and so are longer phrases such as A man, a plan, a canal: Panama once you ignore the spaces, punctuation, and letter case. This tool reverses your text character by character and compares it to the original to give you an instant yes or no answer — and on a no, it shows the text read backwards, names the first pair of characters that do not match, and names the longest palindrome hidden inside it, such as racecar in xracecary.

Using the options

Ignore case, on by default, treats uppercase and lowercase letters as equal, which is what you usually want for sentence palindromes. Ignore spaces and Ignore punctuation are two separate switches, both on by default: together they strip out everything that is not a letter or number before comparing, so full sentences with commas, colons, and apostrophes still register as palindromes, and unticking one keeps that kind of character in the comparison. Tick Check each line separately to give every line of a list its own verdict. The reversal is Unicode-aware, so accented letters and non-Latin scripts such as Korean are compared correctly by character. A line under the box counts the characters and how many of them are compared, and on a whole-text check “How often each character occurs” folds out under the verdict with each compared character’s count, most frequent first. Sample steps through several examples in turn — sentences, a word and a number — rather than loading the same one each time.

Frequently asked questions

Does it count spaces and punctuation?

By default this tool ignores spaces and punctuation, so a full sentence like "A man, a plan, a canal: Panama" is detected as a palindrome. Uncheck "Ignore spaces", "Ignore punctuation" or both to compare those characters too — with both off, and "Ignore case" off as well, the comparison is exact character for character.

Does it work with accents and non-English text?

Yes. The check reverses text one Unicode character at a time, so accented letters and scripts such as Korean, Greek, or Cyrillic are compared correctly rather than being split into broken bytes.

Can I check a list of words at once?

Yes. Tick "Check each line separately" and every line gets its own verdict in a table of line number, text and yes or no, under a count such as "2 of 3 lines are palindromes". Lines with nothing left to compare are left out, and lines are never joined — "ab" and "ba" are two misses even though together they would read the same both ways.

Does it find a palindrome hidden inside longer text?

Yes. When the whole text is not a palindrome, a line under the verdict names the longest run of the compared characters that is one, with its length — “Longest palindrome inside it: “racecar”” for xracecary. If only single letters match, it says there is none. It reads the compared characters, so the Ignore options apply, and it is shown for the whole text rather than in the “Check each line separately” table.

Can I see how many characters were compared, or try other examples?

Yes. A line under the box gives the text’s length in characters as a reader counts them — an emoji or a Hangul syllable is one — and how many were compared once the Ignore options have dropped the rest. On a whole-text check, “How often each character occurs” unfolds under the verdict and lists each compared character with its count, most frequent first, with a space shown as ␣ when spaces count. Sample steps through several examples in turn, a number among them, and starts over after the last.