Is “A man, a plan, a canal: Panama” really a palindrome?+
Under the reading everyone means, yes. Strip the capitals, the spaces, the commas, and the colon and you are left with amanaplanacanalpanama, twenty-one letters that read identically in both directions. Compare it exactly as written and it fails immediately, because the first character is a capital A and the last is a lowercase a. That is not a technicality worth hiding, it is the whole reason this page puts case, spacing, and punctuation on switches and shows you the string it actually compared. The sentence is usually credited to Leigh Mercer, who published it in Notes and Queries in 1948. Longer members of the same family include “Doc, note: I dissent. A fast never prevents a fatness. I diet on cod.” and Demetri Martin's 224-word palindromic poem, both of which pass here for the same reason.
What is the longest palindrome in English?+
It depends what you will accept as a word. The longest in the Oxford English Dictionary is tattarrattat, twelve letters, coined by James Joyce in Ulysses for a knock at the door. Chemists offer detartrated, eleven letters. The longest in ordinary dictionaries is usually given as redivider, nine letters, with rotator, reviver, and deified at seven each. Outside English the record is easier to beat: Finnish has saippuakivikauppias, nineteen letters, a soapstone vendor, and it is a genuine compound rather than a coinage. Whole sentences go much further, and the practical limit is patience rather than language. Paste any of these into the box and the longest-run panel will confirm the count for you rather than asking you to trust a list.
Do spaces and punctuation count?+
Only if you say so, and the honest answer is that both readings are legitimate. The strict reading treats the text as a sequence of characters and asks whether that sequence is its own reverse, which means a space, a comma, and a capital letter are all characters like any other. The loose reading treats a palindrome as a property of the letters and throws the rest away, which is what makes sentence-length palindromes possible at all. This page defaults to the loose reading because that is what people are asking when they type a sentence, and it says so on the verdict: a phrase that passes only once punctuation is ignored is labelled as a loose-reading pass rather than being quietly waved through. Digits, symbols, and emoji are never dropped by that switch, because they are content: 12321 is a palindrome and should be reported as one.
What is a semordnilap?+
A word that spells a different word when reversed. Stressed becomes desserts, drawer becomes reward, diaper becomes repaid, and the name itself is palindromes spelled backwards. It is not a palindrome, which is the point: a palindrome reads the same in both directions, a semordnilap reads as something else. This page cannot tell you that you have found one, because doing so needs a dictionary and there is no word list here at all. What it does do is print the reversed string, which is the only part a computer is needed for. Read it and judge for yourself. The same limitation explains why the anagram side compares two texts you supply rather than searching for anagrams of one: hunting for an unknown rearrangement means a word list, and a word list means a language, a spelling standard, and an argument about proper nouns.
Are anagrams case sensitive?+
Conventionally no, and this page defaults to ignoring case for exactly that reason. Nobody claims Listen and Silent fail to be anagrams because one of them starts with a capital. Turn the case switch off and they do fail, and you can watch why in the difference table: the first text has a spare capital L and a spare lowercase s, the second a spare capital S and a spare lowercase l, because a capital L and a lowercase l are different characters to a computer. That view is occasionally what you want, for instance when checking whether two identifiers use the same characters. Most of the time it is not, which is why case folding is on by default. Accents work the same way: ignore them and résumé matches resume; keep them and é is simply a different letter from e.
What counts as a perfect anagram?+
Two texts are anagrams when their letters form the same multiset: the same letters, each appearing the same number of times, with only the order differing. The multiset part is what people forget. Anagram is not a comparison of which letters appear, it is a comparison of how many of each, which is why the difference table here counts surplus rather than just listing letters. A perfect anagram, sometimes called a true anagram, is one where the second text is a genuine rearrangement rather than the same text again, and this page separates those two outcomes rather than answering yes to both. It also names the special case where no letter is repeated at all, as in Listen and Silent, which is a permutation of six distinct letters. The classics are worth trying: Eleven plus two and Twelve plus one use the same thirteen letters and mean the same number, and The Morse code rearranges to Here come dots.
Which words can be rearranged into a palindrome?+
There is a one-line test, and it does not involve trying any rearrangements. A multiset of letters can be arranged into a palindrome exactly when at most one letter appears an odd number of times. Every other letter has to pair off symmetrically around the centre, and the single odd letter, if there is one, is the one that sits in the middle. So carrace works, because it has two c, two a, two r, and one e, and the e goes in the middle to give racecar. Silent does not, because all six of its letters appear once and only one of them can occupy the centre. This page runs that parity check on whatever you type, names the middle letter when there is one, and prints an arrangement that works so you can check the claim rather than take it on faith.
Do emoji and accented characters reverse correctly?+
Here they do, and it is worth knowing why that is not automatic. JavaScript strings are sequences of UTF-16 code units, so the usual one-line reversal, splitting a string into characters and reversing the array, corrupts anything that is not a single code unit. An emoji is a surrogate pair and comes back as two invalid halves. A flag is two regional indicators and comes back as a different flag or as nothing. An é written as e followed by a combining acute comes back with the accent attached to whatever letter now precedes it. Iterating code points instead fixes the first two and not the third, and it still shatters a ZWJ sequence such as 🧑🚀 into a person, an invisible joiner, and a rocket. This page segments into grapheme clusters, the units a reader would call characters, so all four cases survive the round trip. Try 🧑🚀 Never odd or even 🧑🚀 in the box.
How does it find the longest palindrome inside my text?+
With Manacher's algorithm, which finds the longest palindromic substring in time proportional to the length of the text. The obvious method is to treat every position as a possible centre and grow outward while the characters match, which is fine on ordinary prose and quadratic in the worst case: a string of ten thousand identical letters makes every centre expand almost the whole way. Manacher's insight is that the expansions already done tell you how far the next one can start, because a palindrome you are inside is a mirror and its left half predicts its right. The implementation here interleaves separators between the characters so that even-length and odd-length runs are found by the same loop, and it was checked against a brute-force search over thousands of random strings. That is why the page has no size ceiling for this answer and no slower fallback mode.
How much text can I check, and does any of it leave my browser?+
Each box takes up to 20,000 characters, roughly three thousand words, and none of it goes anywhere. There is no upload, no request, and no stored copy: every count on the page is computed in this tab by plain JavaScript, which is also why the page can say a string is a palindrome and can never say whether it is a word. The limit exists to keep a multi-megabyte paste from freezing the tab while it is being split into characters and drawn, not because any of the arithmetic is expensive. Within the limit everything is linear: counting letters, comparing the two frequency tables, testing the parity, and finding the longest palindromic run all take one pass. If you need a longer text, the question you are asking is almost certainly about one sentence inside it, so paste that.