UTILYARD
tools / text

Vérificateur de palindrome

Vérifiez si un texte est un palindrome et trouvez la plus longue sous-chaîne palindromique.

À propos du vérificateur de palindrome

Testez instantanément si un mot, une phrase ou une phrase est un palindrome. Activez les options pour ignorer la casse, les espaces et la ponctuation — ainsi les exemples classiques comme « Engage le jeu que je le gagne » sont correctement détectés.

FAQ

Qu'est-ce qu'un palindrome ?
Un palindrome est un mot, une phrase ou une séquence qui se lit de la même façon de gauche à droite et de droite à gauche — comme « kayak » ou « Engage le jeu que je le gagne ».
Pourquoi « Engage le jeu que je le gagne » est-il valide ?
En ignorant les espaces et la ponctuation, la chaîne normalisée engagelejeuquejelegagne se lit de la même façon dans les deux sens.
Qu'est-ce que la plus longue sous-chaîne palindromique ?
La plus longue séquence contiguë dans le texte saisi qui est elle-même un palindrome.

À PROPOS DE CET OUTIL

Type or paste any text to instantly check whether it reads the same forwards and backwards, and see the longest palindromic substring hiding inside it even if the whole phrase itself isn't a palindrome. The checker typically ignores spaces, punctuation, and letter case so that phrases like 'A man, a plan, a canal, Panama' are correctly recognized as palindromes rather than failing on formatting differences. It's a quick reference for word puzzle enthusiasts checking a clever phrase, students studying language and pattern structure, or anyone testing a string for a coding challenge involving palindrome detection. Because results update as you type, you can experiment with different phrases or word substitutions to see immediately whether they still qualify.

COMMENT UTILISER

  1. Type or paste the text you want to check.
  2. Look at the result indicating whether it's a full palindrome.
  3. Check the longest palindromic substring shown below the result.
  4. Edit the text and watch the result update live.
  5. Try removing spaces or punctuation manually if you want to test strict character-by-character matching.

CAS D'USAGE COURANTS

  • Verifying a clever palindrome phrase you wrote for a puzzle or word game
  • A student checking classic examples like 'racecar' or longer sentence-level palindromes for a linguistics assignment
  • A programmer double-checking expected output while practicing a palindrome-detection coding exercise
  • Someone testing whether a username, license plate idea, or short phrase happens to be a palindrome
  • A puzzle designer searching for the longest palindromic substring within a longer piece of text for a hidden-word game

CONSEILS ET ERREURS COURANTES

  • Most palindrome checks ignore case and punctuation by default, so 'Racecar' and 'race car' may both register as palindromes even though they aren't identical strings
  • Single characters and empty strings technically count as palindromes, which can be a surprising edge case if you're testing programmatically
  • The longest palindromic substring doesn't have to be a real word, it's found purely by matching character patterns
  • Numbers work the same way as letters here, '1221' is checked the same as any text-based palindrome

AUTRES QUESTIONS

Does spacing or punctuation affect whether text counts as a palindrome?
Typically no, the checker normalizes the text by stripping spaces, punctuation, and case differences first, which is why classic phrase palindromes like 'A man, a plan, a canal, Panama' pass even though the raw characters aren't a mirror image.
What counts as the 'longest palindromic substring'?
It's the longest continuous run of characters within your text that itself reads the same forwards and backwards, regardless of whether the full input is a palindrome.
Can a single word be a palindrome even if the whole sentence isn't?
Yes, a sentence can contain a palindromic word or substring in the middle while the sentence as a whole fails the check; that's exactly what the longest-substring result is designed to surface.
Are palindrome checks case-sensitive?
Generally no, because case sensitivity would make otherwise obvious palindromes fail on trivial capitalization differences, so most checkers normalize to lowercase before comparing.

GUIDES ASSOCIÉS

Palindrome : définition et exemples
Exemples célèbres, pourquoi la normalisation est importante, comment la plus longue sous-chaîne palindromique est trouvée, et les palindromes en nombres et en dates.
Lire →
Vérificateur de palindrome — UtilYard