Zero Signup ToolsFree browser tools

Text Tools

Palindrome Checker

Check whether a word, phrase, sentence, or number is a palindrome. Strict and normalized modes, longest palindrome finder, and mirror visualization.

Mode

Check a word, phrase, or sentence. Strict mode requires every character to match exactly; normalization options handle the classic 'A man, a plan...' case.

Normalization

Strict mode (every option off) requires the input to be a literal character-for-character mirror including spaces, case, and punctuation. Most palindromes in everyday English are normalized.

30 chars
Or load a sample

Verdict

Yes, palindrome after normalization

Strict: no

Strict checks the raw input character by character with no normalization.

13 mismatched pairs out of 15 pairs.

Normalized: yes

Normalized applies the toggles above. Default settings match how “A man, a plan, a canal: Panama” reads as a palindrome.

Normalized text

amanaplanacanalpanama

Reversed

amanaplanacanalpanama

Longest palindromic substring

amanaplanacanalpanama

Length: 21|Position in normalized text: 1

Found inside the normalized text. The longest palindromic substring is always at least 1 character (any single character is a palindrome).

Character-by-character mirror

Comparing the normalized text. Matched pairs render green; mismatched pairs render red.

FrontBack
  • 1a
    a21
  • 2m
    m20
  • 3a
    a19
  • 4n
    n18
  • 5a
    a17
  • 6p
    p16
  • 7l
    l15
  • 8a
    a14
  • 9n
    n13
  • 10a
    a12
11ccenter

Stats

  • Raw characters

    30

  • Compared characters

    21

  • Strict mismatches

    13

  • Normalized mismatches

    0

  • Longest palindrome length

    21

  • Symmetry score

    100%

    Share of mirrored pairs that match after normalization.

What counts as a palindrome

  • Strict palindrome: the string equals its own reverse, character by character, including spaces, case, and punctuation.
  • Normalized palindrome: the string equals its reverse after folding case, ignoring non-alphanumeric characters, and optionally folding diacritics. This matches how palindromes are read aloud and is how most published examples qualify.
  • Numeric palindrome: a positive integer whose digit sequence reads the same forwards and backwards (121, 12321, 1001). Leading zeros are kept; signed numbers are not palindromic because the leading sign cannot mirror a trailing digit.
  • Word-order palindrome: a phrase whose sequence of *words* reads the same in reverse order, even though the letters within each word do not. The ordering, not the letters, is the mirror.
  • Longest palindromic substring: the longest contiguous run inside the normalized input that is itself a palindrome. Computed in linear time using the Manacher algorithm.

Common questions

  • Is an empty string a palindrome? By convention this checker says no for empty input because there is nothing to mirror. A single character is always a palindrome.
  • Does case matter? In strict mode, yes. In normalized mode (the default), no. “Racecar” and “RaceCar” are both palindromes after case folding.
  • What about punctuation and spaces? In normalized mode they are ignored, which is how “A man, a plan, a canal: Panama” qualifies. Turn the alphanumeric-only toggle off to keep them in the comparison.
  • Are negative numbers palindromes? No. The leading minus sign cannot mirror a trailing digit, so this checker rejects signed numeric input.
  • Are decimal palindromes a thing? 1.21 reverses to 12.1, which is not the same string. This checker only accepts integer digits to keep the answer unambiguous.

How to use

  1. Pick a mode: Text for words, phrases, and sentences; Number for positive integers; Word order for phrases whose word sequence mirrors itself.
  2. In Text mode, set the normalization toggles. Case-insensitive treats A and a as equal; Letters and digits only ignores punctuation and whitespace; Ignore diacritics treats é and e as equal.
  3. Paste or type your input. Or click any sample button to load a canonical palindrome (racecar, A man a plan a canal Panama, 12321, and others).
  4. Read the verdict card for the strict and normalized answers. The mirror visualization below shows each character pair and highlights mismatches in red.
  5. Inspect the longest palindromic substring panel for the longest palindrome contained anywhere in the normalized input, with its position and length.
  6. Use Copy summary to grab a paste-ready text block with the input, the normalized text, the reversed normalized text, and the verdict for both rules.

About this tool

Palindrome Checker decides whether a word, phrase, sentence, or positive integer reads the same forwards and backwards. It runs every comparison in your browser using two parallel rules so you can see both answers at once: the strict rule, which compares the raw input character by character including spaces, case, and punctuation, and the normalized rule, which folds case, ignores punctuation and whitespace, and optionally folds diacritics so 'A man, a plan, a canal: Panama' qualifies the way it is traditionally read aloud. Three modes are exposed. Text mode handles free-form prose with togglable normalization options. Number mode accepts positive integers (digits 0 to 9 only) and tolerates thousand separators (commas, spaces, underscores) so values copied from spreadsheets or code literals work without manual cleanup. Word-order mode splits the input on whitespace, strips punctuation and case inside each token, and checks whether the sequence of *words* reads the same in reverse order, which is the form Stephen Sondheim and similar wordplay puzzles use. Beyond the yes-or-no answer, the page renders a character-by-character mirror so you can see exactly which pairs match and which break the symmetry, computes the longest palindromic substring inside the normalized text using Manacher's linear-time algorithm (which is the optimal known method for this problem and works on Unicode code points, not just ASCII), and surfaces statistics including the raw character count, the compared character count after normalization, the number of mismatched pairs in both strict and normalized comparisons, the length of the longest palindrome contained in the input, and a symmetry score expressed as the share of mirrored pairs that match. A built-in sample library covers the canonical cases (racecar, level, madam, A man a plan a canal Panama, Was it a car or a cat I saw, No x in Nixon, the numeric palindrome 12321, the four-digit palindrome 9009 which is the largest palindromic product of two two-digit numbers, and a Sondheim-style word-order palindrome) so the tool is also useful as a reference. Useful for English language students confirming a textbook example, writers checking a tagline or brand name, recreational mathematicians counting palindromic primes and palindromic products, coding interview preparation where the longest palindromic substring is a classic question, accessibility writers testing pangrams that double as palindromes, kids learning about word play, and anyone curious whether a name reads the same in reverse. Nothing leaves your device; the input is processed and discarded in memory.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsText Tools