CompleteToolkit

Palindrome Checker

Check if a word or phrase is a palindrome — ignoring spaces and punctuation, with example phrases to try.

It's a palindrome!

Reads the same forwards and backwards (ignoring spaces, punctuation and case).

Cleaned (letters only)

amanaplanacanalpanama

Reversed

amanaplanacanalpanama

About this tool

A palindrome reads the same forwards and backwards — and once you start noticing them, they're everywhere: racecar, level, madam, noon, civic. Phrase palindromes like "A man a plan a canal Panama" and "Was it a car or a cat I saw" are the delightful longer form where the rule is respected across spaces and punctuation. This checker tests both, correctly.

The key is what gets ignored: spaces, punctuation and capitalisation are all stripped before comparing, because "racecar" and "racecar." and "Racecar" are all the same palindrome. Many casual checkers skip this stripping and reject perfectly valid palindromes for having a capital letter or a trailing period. The cleaned text and reversed version are shown so you can see exactly what's being compared — no black-box decisions.

Beyond checking a single input, the tool scans for palindromic words within a longer passage, showing which individual words read the same both ways. There are example phrases pre-loaded for quick exploration. Palindromes show up in wordplay, puzzles, coding interview questions, word games and — in a different form — in biology (DNA palindromic sequences) and music. The simplest definition, the hardest to make work in a sentence.

How to use the Palindrome Checker

  1. 1Type or paste a word, phrase or sentence.
  2. 2The tool ignores spaces, punctuation and capitalisation — as palindrome conventions require.
  3. 3See the cleaned text and reversed form to understand the comparison.
  4. 4Try the example phrases to see famous palindromes in action.

Frequently asked questions

What exactly is a palindrome?

A word, phrase or sequence that reads the same forwards and backwards. For words: 'racecar'. For phrases: the rule typically ignores spaces and punctuation — so 'A man a plan a canal Panama' qualifies because its letters, stripped of spaces, are the same in both directions.

What are some good palindrome examples?

Words: racecar, level, madam, kayak, civic, noon, radar. Phrases: 'Was it a car or a cat I saw', 'Never odd or even', 'Madam I'm Adam', 'Do geese see God'. Numbers: 121, 1221, 12321. Dates: 02/02/2020 was a globally palindromic date in multiple formats.

Is a single letter a palindrome?

Technically yes — a single character reads the same forwards and backwards. By the same logic, any single word of identical letters (like 'aaa') qualifies. The interesting cases start at two letters where direction could differ.

What are palindromes in programming?

Checking if a string is a palindrome is a classic coding interview question, usually asked in O(n) time and O(1) space. The algorithm is this tool: strip non-alphanumerics, compare index 0 to last, 1 to second-last, working inward. If all pairs match, palindrome.