Check If Text Is a Palindrome

Paste text and find out instantly if it reads the same backwards.

Options

The verdict updates as you type. Ctrl + Enter checks now.

Verdict

How to check for a palindrome

Paste your text into Your text, or press Load example. The verdict appears next to it and updates as you type: Yes means the cleaned text reads the same backwards, No shows the position where it first differs. The cleaned comparison string is shown in the readonly box so you can inspect exactly what was compared. Use Copy to copy the verdict line. Everything runs in your browser, so nothing you paste is uploaded.

Examples

InputVerdict
racecar Yes — reads the same backwards (7 characters).
A man, a plan, a canal: Panama Yes — reads the same backwards (21 characters).
hello No — differs at position 1.

Limits and edge cases

  • Ignore punctuation removes everything except letters and digits before comparing.
  • Ignore spaces removes whitespace only when Ignore punctuation is off; otherwise all non letters and digits are already gone.
  • Ignore case lowercases the cleaned text before comparing.
  • Empty input, or input with nothing left after cleaning, shows Nothing to compare yet.
  • A single cleaned character counts as a palindrome.
  • Differs at position counts from the outside in, 1-based, so position 1 means the first and last characters differ.

Frequently asked questions

How do I check if text is a palindrome?

Paste the text into the input box and the verdict appears instantly. Yes means it reads the same backwards after cleaning, No shows where it first differs.

What does the Ignore punctuation option do?

When on, everything except letters and digits is removed before comparing, so A man, a plan, a canal: Panama counts as a palindrome.

What is the cleaned string?

The cleaned string is the exact text that gets compared after your ignore options are applied. It is shown in the readonly box so you can inspect it.

What does differs at position mean?

It is the 1-based position counted from the outside in where the cleaned string first mismatches, so position 1 means the first and last characters differ.

Is a single character a palindrome?

Yes. Any single cleaned character reads the same backwards, while empty input shows Nothing to compare yet.

Is my text uploaded anywhere?

No. Checking runs in your browser with JavaScript and nothing is sent to a server. Inputs under 200 KB are kept in your browser's local storage so they are still there when you come back.