도구 가이드
text 무료 회원가입 불필요

회문 검사기

단어나 구문이 앞뒤로 동일하게 읽히는지 확인합니다. 대소문자 및 구두점 무시 옵션 포함.

도구를 불러오는 중…

이 도구에 대해

단어나 문장을 입력하면 즉시 회문인지 확인합니다. 공백, 구두점 및 대소문자를 무시하는 옵션을 전환하여 유연한 매칭을 사용하세요. 도구는 또한 입력 내에서 가장 긴 회문 부분 문자열을 찾고, 각 단어를 개별적으로 확인하며, 유명한 회문 예제를 시도할 수 있습니다.

사용 방법

  1. 1 입력 필드에 텍스트를 입력하거나 붙여넣으세요.
  2. 2 필요에 따라 공백, 구두점 및/또는 대소문자를 무시하는 옵션을 전환하세요.
  3. 3 결과 배지를 확인하세요 — '회문' 또는 '회문이 아님' — 반전된 텍스트와 함께 표시됩니다.
  4. 4 아래로 스크롤하여 가장 긴 회문 부분 문자열, 단어별 결과 및 시도할 유명한 예제를 확인하세요.

What counts as a palindrome — and what gets ignored

A palindrome reads the same forwards and backwards. The catch is deciding which characters "count." The word racecar is obviously symmetric, but a phrase like "A man, a plan, a canal: Panama" is only a palindrome if you throw away the spaces, the comma, the colon, and the difference between uppercase and lowercase. That normalisation step is the entire art of palindrome checking, and this tool lets you control it with three switches: ignore case, ignore spaces, and ignore punctuation. With all three on, the checker first lowercases the text, strips whitespace, then removes every character that is not a letter or digit, and only then compares the cleaned string against its reverse.

This matters because the same input can be a palindrome under one setting and not another. Turn ignore case off and Madam fails, because capital M is not equal to lowercase m. The default is to ignore all three, which matches how people normally think about word and phrase palindromes.

A worked example

Paste Was it a car or a cat I saw? with the default options on. The tool normalises it to wasitacaroracatisaw (19 characters), reverses that to the identical string, and shows a green Palindrome ✓ badge along with the reversed text so you can see exactly what was compared. Now type a multi-word phrase that is not a palindrome, such as hello world. You still get useful output: the word-by-word check appears, tagging each word green if it is itself a palindrome, and a longest palindrome found within input line reports the longest symmetric run inside your text. For hello world that would be ll; for a longer body of text it might surface a hidden gem like noon or level you never noticed.

How the "longest palindrome inside" feature works

Finding the longest palindromic substring is a classic computer-science problem. This tool uses centre expansion: it walks through every position in the normalised string, treats it as the middle of a potential palindrome, and grows outward one character at a time while the left and right sides keep matching. It checks both odd-length centres (a single character) and even-length centres (a gap between two equal characters), keeping the longest match it finds. That is why even an input that is not a palindrome overall can still report a meaningful internal one.

Practical use cases

  • Wordplay and puzzles. Crossword setters, Scrabble players, and constructors of recreational-maths puzzles use a checker to verify candidate palindromes quickly instead of reversing strings by hand.
  • Teaching programming. "Write a function that detects a palindrome" is one of the most common beginner coding exercises. Seeing the normalised string and the reversal side by side helps learners understand why case-folding and stripping punctuation are separate decisions.
  • Naming and branding. Palindromic names (think level, civic, aviva) are memorable and look the same in a mirror, which designers sometimes exploit for logos.
  • Data validation curiosity. Checking whether an ID, a date format, or a generated code happens to be palindromic is a quick sanity check the tool answers instantly.

Common mistakes and edge cases

  • Forgetting that an empty or single-character string is trivially symmetric. The tool requires at least one character before declaring a match, so a blank box returns nothing rather than a misleading "yes."
  • Expecting accented letters to be normalised. The punctuation filter keeps only basic a–z, A–Z, and 0–9. A character like é is treated as punctuation and removed when "ignore punctuation" is on, which can change the result of non-English phrases — worth knowing before you trust a verdict on accented text.
  • Confusing word-level and phrase-level checks. A sentence can fail overall while several individual words pass. The word-by-word panel exists precisely to show that distinction.
  • Assuming numbers are excluded. Digits count. 12321 is a palindrome here, which is handy for checking numeric palindromes and palindromic years.

Try the famous examples

Below the input you will find a row of classic palindromes — racecar, Never odd or even, Do geese see God, Step on no pets, and others — each as a clickable button that loads the phrase and runs the check immediately. They are a fast way to see how the case, space, and punctuation switches change the outcome on real sentences. Everything runs entirely in your browser; the text you type is never sent anywhere, so you can paste private notes or unpublished names without concern.

자주 묻는 질문

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}