Skip to content
Free text tool

Palindrome checker

This tool checks whether words and phrases read the same forward and backward. Students, puzzle makers and programmers use it to test palindromes like racecar and to find the longest palindrome hidden in a line.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result

Your input

67 characters

Ignore case
Ignore spaces
Ignore punctuation

Result

Palindromes3 of 4 lines
Longest palindrome
"A man, a plan, a canal: Panama" (line 1, 21 characters)
LinePalindromeTextCompared as
1YesA man, a plan, a canal: Panamaamanaplanacanalpanama
2Yesracecarracecar
3NoPalindromepalindrome
4YesNever odd or evenneveroddoreven

Compared as shows each line after ignoring letter case, spaces and punctuation.

The short answer

A palindrome reads the same forward and backward once you ignore letter case, spaces and punctuation. Reduce each line to its letters and digits, then compare it with its own reverse.

FormulaPalindrome if the cleaned text (letters and digits only, lowercase) equals its reverse

Worked exampleOf the four sample lines, 3 are palindromes; "A man, a plan, a canal: Panama" reduces to amanaplanacanalpanama, which matches its reverse, while "Palindrome" does not.

Example

Input
A man, a plan, a canal: Panama
racecar
Palindrome
Never odd or even
Result
Palindromes3 of 4 lines
Longest palindrome
"A man, a plan, a canal: Panama" (line 1, 21 characters)
LinePalindromeTextCompared as
1YesA man, a plan, a canal: Panamaamanaplanacanalpanama
2Yesracecarracecar
3NoPalindromepalindrome
4YesNever odd or evenneveroddoreven

Compared as shows each line after ignoring letter case, spaces and punctuation.

How to use the palindrome checker

  1. Type words or phrases, one per line, into the box.
  2. Choose whether to ignore case, spaces and punctuation.
  3. The count of palindromes and the longest one found appear at the top, with a table for each line. It updates as you type.
  4. Press Copy result to keep it.

How it works

Each line is checked on its own. The result shows the compared form, which is the line after the ignore options are applied.

The longest palindrome search uses the same options and shows the matching part of your original text, including its spaces and punctuation.

Characters are compared as visible characters, so accented letters and emoji are not split.

Input is limited to 100,000 characters and 2,000 lines. Lines with nothing left to compare are skipped.

Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.

Questions and answers

What is a palindrome?

A palindrome is a word, number or phrase that reads the same backward as forward, such as level, 12321 or Never odd or even.

Is A man, a plan, a canal: Panama a palindrome?

Yes, when case, spaces and punctuation are ignored, which are the default settings.

Can it find palindromes inside a sentence?

Yes. It reports the longest palindrome found inside any line, such as racecar in I saw a racecar.

Last updated November 1, 2026. Maintained by SnowRock. How our tools work

All 220 SnowRock tools