By Debmedia Technologies LLP · Kolkata, India · Updated
What Is It and When Do You Need It?
A palindrome reads the same in both directions. Words such as racecar, phrases such as Never odd or even and numbers such as 1221 all qualify. Palindromes are popular in word games, coding interviews and puzzles.
Paste a word, phrase or number and see the answer straight away.
How to Use This Tool
- Type or paste your text.
- Choose whether to ignore case, spaces and punctuation.
- Press Check.
- Read the verdict and the longest palindrome inside.
How the Calculation Works
If you choose to ignore, the text is lower-cased and everything except letters and digits is removed. The cleaned text is compared with its reverse. The longest palindromic part is found by expanding from every possible centre, which finds the longest in a fraction of a second.
Worked Example
A man, a plan, a canal: Panama becomes amanaplanacanalpanama, which reads the same reversed, so it is a palindrome. hello is not, and its longest palindrome inside is ll.
Common Uses
- Word games and puzzles.
- Coding interview practice.
- Teaching string handling.
- Finding fun phrases.
Tips and Common Mistakes
- Numbers can be palindromes too.
- Turn the option off for exact tests.
- Single letters are always palindromes.
Related Tools
Next, you may need the anagram checker, syllable counter, text repeater, line sorter.
Everything runs in your browser. Nothing you type is uploaded, stored or sent to any outside service.
Frequently Asked Questions
Disclaimer: results are calculated in your browser from the numbers you enter. Check important results before you rely on them for money, health, safety or legal decisions.