UTILS.
100% in-browser
🕵️

Cipher Identifier / Analyzer

Analyze unknown ciphertext by its statistical fingerprint — index of coincidence, chi-square, character set — and rank the most likely classical ciphers.

Paste ciphertext to fingerprint it and rank the likely ciphers. This suggests, it does not decrypt.

About this tool

The Cipher Identifier analyzes an unknown ciphertext and suggests which classical cipher most likely produced it. Rather than decrypting, it computes statistical fingerprints and matches them against the known signatures of common ciphers, giving you a starting point for the rest of the toolkit. Everything runs locally in your browser, so pasted text stays private.

The core measure is the index of coincidence (IC = Σ nᵢ(nᵢ−1) / N(N−1)), the probability that two randomly chosen letters match. English plaintext and monoalphabetic ciphers (Caesar, Atbash, Affine, Keyword) sit near IC ≈ 0.066, while polyalphabetic ciphers (Vigenère, Beaufort) flatten the distribution toward IC ≈ 0.038. The tool pairs this with a chi-square test against English letter frequencies: a monoalphabetic-looking IC combined with a low chi-square means the letter frequencies still match English, pointing to a transposition (Rail Fence, Columnar) that only reordered letters; a high chi-square points to a substitution that remapped them.

It also inspects the character set (only A/B suggests Baconian, only 0/1 binary, only digits an A1Z26 or Polybius scheme) and structural clues such as text length parity, absence of doubled letters, and no J, which together raise the likelihood of Playfair. The result is a ranked list of candidate ciphers with confidence notes alongside the raw statistics. It offers suggestions, not certainty — short texts especially make the numbers unreliable.

Frequently asked questions

What is the index of coincidence?
IC = Σ nᵢ(nᵢ−1) / N(N−1) is the chance that two random letters of the text are identical. English and monoalphabetic ciphers give IC ≈ 0.066; polyalphabetic ciphers flatten it toward the random value of about 0.038, which helps separate the two families.
How does it tell substitution from transposition?
Both keep an English-like IC near 0.066. The chi-square test against English frequencies decides: transposition only reorders letters so frequencies still match (low chi-square), while substitution remaps letters to new symbols (high chi-square). The tool reports both and ranks accordingly.
Can it identify number or A/B ciphers?
Yes. Text made only of A and B in five-letter groups points to the Baconian cipher; only 0s and 1s to binary; only digits to a numeric scheme such as A1Z26 (numbers 1–26) or a Polybius square (digit pairs 1–5). The character-set check drives these suggestions.
How reliable are the suggestions?
They are statistical heuristics, not proof. Longer texts give far more reliable results; under about 20 letters the IC and chi-square values are noisy and the tool warns you. Treat the ranked list as a triage guide and confirm by trying the suggested tools.

More tools