How to Use a Palindrome Checker
Enter text and submit it to compare its normalized form with its reverse. Then review the separate longest-portion and word-related findings for additional context.
What you can check
A palindrome checker helps you determine whether supplied text matches its reverse after the tool applies its comparison rule. It can also show a longest contiguous palindromic portion and examine word-like runs longer than one character in nonempty text. This is useful for phrases, sentences, short passages, and individual characters when you want more than a simple visual check. Because the findings use different rules, read the main classification, longest portion, and word findings as separate pieces of information rather than as interchangeable labels. The tool accepts omitted text as an empty input, so you can also observe how an empty submission is classified.
How to use the checker
-
Enter text in the text field. You can provide a single character, a phrase, or a sentence. The input is optional; if you leave it out, the tool uses an empty string.
-
Submit the text for processing. An empty input is accepted and classified as not a palindrome. Nonempty text is prepared for the main comparison by converting it to lowercase and removing every character outside the ASCII letters a-z and digits 0-9.
-
Review the palindrome classification. The cleaned text is compared with its reverse, so capitalization, spaces, punctuation, and other removed characters do not affect this classification.
-
Review the additional findings. The tool searches for a longest contiguous palindromic portion using case-insensitive character comparison while preserving the original characters in the portion. For nonempty text, it also checks word-like runs longer than one character after lowercasing and removing non-ASCII letters and digits.
How to interpret the findings
Start with the main classification when your question is whether the cleaned text reads the same in both directions. A single character is classified as a palindrome, while “Hello World” is classified as not a palindrome. The phrase “A man a plan a canal Panama” is classified as a palindrome because its letters produce matching cleaned text after case conversion and removal of separators.
Next, use the longest-portion finding to locate a substantial matching segment within the original input. Its boundaries are contiguous, and the characters shown in that portion retain their original form, so its appearance may include capitalization, spaces, or punctuation. This means a portion result should not be judged by applying the main cleanup rule a second time.
Finally, consider word findings in relation to the input’s content. They apply to word-like runs longer than one character only when text is nonempty. An input can therefore receive a whole-text classification, a longest portion, and word-level findings that answer different questions. If you need to compare two submissions, keep their wording and separators in mind because the main classification and portion search treat them differently.
Worked example
You want to check whether the phrase “A man a plan a canal Panama” qualifies as a palindrome for a text exercise.
Submit “A man a plan a canal Panama” and inspect the whole-text classification together with the longest-portion finding.
The result should classify the submitted phrase as a palindrome and provide a longest palindromic portion that preserves the phrase’s original characters.
Limitations
- The main classification, longest-portion search, and word findings use different comparison rules, so one finding cannot be used as a substitute for another.
Common errors
- If you apply the main cleanup rule to the longest portion, you may misread the result; interpret the whole-text status as normalized, then read the portion as a contiguous segment that retains its original characters, spaces, and punctuation.
FAQ
Is an empty input treated as a palindrome?
When the field is left empty, the tool accepts the input and classifies it as not a palindrome. A single-character submission is treated differently and is classified as a palindrome.
Are spaces and punctuation ignored?
For the main classification, spaces and punctuation do not affect the comparison because characters outside ASCII letters a-z and digits 0-9 are removed after lowercasing. The longest portion follows a separate contiguous search that retains the original characters.
Does it check palindromic words inside the text?
When the supplied text is nonempty, the tool scans word-like runs and checks runs longer than one character after lowercasing and removing characters outside ASCII letters and digits. This word-level finding is separate from the classification of the full input.