Home › Ciphers › Cipher Identifier

Cipher Identifier

You found a scrambled message and you do not know what made it. Paste it below. The Identifier measures the text the way a codebreaker would — by its statistics — and tells you which cipher it most likely is, how confident it is, and where to solve it.

In short

A cipher identifier is a tool that examines an unknown ciphertext — its characters, letter frequencies and patterns — and ranks the cipher systems most likely to have produced it. It does not decrypt the message itself; it names the method, so you can open the right solver. Also called a cipher recogniser or cipher analyser.

Works on: classical substitution, shift, polyalphabetic and transposition ciphers, plus common encodings (Base64, hex, binary, Morse). Cannot identify: one-time pads or modern encryption — see the limits below.

Identify your ciphertext

0 letters
Try a worked example:
–
Letters
–
Index of coincidence
–
Entropy / letter
–
Character set
–
Repeated sequences
How it works

Identification is statistics, not magic

Every cipher leaves fingerprints. A Caesar cipher keeps the exact shape of English letter frequencies, just rotated. A Vigenère cipher flattens those frequencies out. A transposition cipher keeps the frequencies but destroys the words. The Identifier measures those fingerprints in a fixed order and compares them with what each cipher family is known to produce:

  1. Character-set check. What is the text made of? Only dots and dashes points to Morse. Only 0s and 1s points to binary. Hex digits, Base64 characters, digit pairs, groups of five letters — each shape rules whole families in or out before any maths happens.
  2. Length check. Statistics need material. Below about 25 letters the Identifier refuses to guess and tells you so (the minimum-length rule, below).
  3. Index of coincidence (IoC). The probability that two letters picked at random from the text are the same. Ordinary English scores about 1.73; completely random letters score 1.00. A high IoC means one alphabet was mapped onto another (Caesar, substitution). A low IoC means several alphabets were mixed (Vigenère) — or the text is not a letter cipher at all.
  4. Chi-squared fit. Each candidate decryption is scored against published English letter frequencies. The method Karl Pearson published in 1900 still does the heavy lifting: the right key produces letter counts close to English, wrong keys do not.
  5. Key-length estimation. If the IoC is flat, the text is split into columns of 2, 3, 4… letters and each column's IoC is measured. When the column count matches the key length, every column suddenly looks monoalphabetic and its IoC jumps — the same principle Friedrich Kasiski published in 1863, backed up by counting repeated sequences and the gaps between them.
  6. Entropy. Shannon entropy measures surprise per letter. English text sits around 4 bits per letter; random letters approach the maximum of about 4.7. A text at the maximum, with no structure at any key length, is probably not a classical cipher at all.

What the Identifier does: it narrows an unknown text to a ranked shortlist of cipher families, shows the evidence for each, and routes you to the solver built for that family. What it does not do: it does not recover keys or plaintext by itself, it cannot tell you which specific key a substitution cipher used, and — honestly — it cannot identify a one-time pad or modern encryption such as AES, whose output is designed to be indistinguishable from random noise. No tool can, and any tool that claims otherwise is guessing.

How to read the confidence scores

A confidence score is a ranking, not a promise. 90% means “the evidence fits this family far better than any other”, not “nine times out of ten this is right”. Scores are deliberately kept below 100: short texts, unusual plaintexts (a message with no letter E, say) and layered ciphers can all pull the ranking around. We publish how this tool performs on a fixed test set — including the cases it gets wrong — on our solver benchmark page.

The minimum-length rule: “too short to tell”

Below roughly 25 letters, letter frequencies are mostly luck. A 10-letter Caesar message and a 10-letter Vigenère message can look identical, because there is not enough text for their fingerprints to differ. Rather than dress up a coin flip as analysis, the Identifier stops and says too short to tell, and explains what would help: more ciphertext, ideally 100 letters or more. That honesty is deliberate — an identification tool that cries wolf on short texts teaches people to ignore it on long ones.

First, what kind of thing is it?

Half of all “unknown ciphers” are not ciphers at all. The Identifier checks these four categories separately, because each needs a different tool:

CategoryWhat it doesTell-tale signsExample
CipherTransforms letters with a key; security lives in the keyLetters A–Z, English-like length, frequency fingerprintsCaesar, Vigenère
CodeReplaces words or letters with symbols, sounds or numbers by a fixed bookSymbols, dots and dashes, digit pairs, picture alphabetsMorse, Pigpen, A1Z26
EncodingRewrites data in another alphabet for transport; no secrecy intended, no keyStrict character set, lengths in multiples of 4 or 8, padding charactersBase64, hex, binary
HashOne-way fingerprint of data; cannot be reversed at allFixed length (32, 40, 64 hex characters are common), hex digits onlyMD5, SHA-256
Origin & history

From Friedman's index to this page

Identifying an unknown cipher used to be the first, slow job of a professional codebreaker: count the letters, look at the shape, form a theory, test it. The statistics on this page are the ones those professionals invented. The index of coincidence was published by William F. Friedman in 1922, in a monograph from the Riverbank Laboratories in Illinois; it let an analyst tell, from ciphertext alone, whether one alphabet or many had been used, and even estimate a Vigenère key's length — work Friedman built into the American cryptologic service he went on to lead. The repeated-sequence method behind our key-length check is older still: Friedrich Kasiski published it in 1863, in the first practical attack on the Vigenère cipher. The chi-squared test arrived from statistics proper (Karl Pearson, 1900), and entropy from Claude Shannon's 1948 theory of communication.

Computers changed the scale, not the method. A modern identifier simply runs Friedman's and Kasiski's tests in milliseconds, across every plausible family at once, instead of one family per afternoon. The ranking you see above is what a 1920s analyst would have written in a notebook.

  • 1863 — Kasiski publishes the repeated-sequence attack on Vigenère.
  • 1900 — Pearson's chi-squared test gives frequency analysis a rigorous score.
  • 1922 — Friedman publishes the index of coincidence.
  • 1948 — Shannon's entropy gives “how random is this text?” a number.
  • Today — the same tests, automated and combined, run in your browser.
Reference

The decision tree: start from what the text looks like

Before any statistics, look at the shape of what you were given. This is the same first pass the Identifier makes — and the one to use when you are staring at a puzzle with no computer handy.

The numbers, for reference

StatisticEnglish plaintextRandom lettersWhat it separates
Index of coincidence≈ 1.73≈ 1.00Monoalphabetic from polyalphabetic
Entropy per letter≈ 4.0–4.2 bits≈ 4.70 bitsStructured text from noise
Most common letterE, about 12.7%each ≈ 3.85%Substitution fingerprints
Chi-squared (right key)low — close fithigh for every keyThe right Caesar shift from the 24 wrong ones
Worked examples

Three identifications, step by step

These are the same three texts as the buttons above the tool — load one and watch the Identifier reach the verdict, then read here why it did.

Example 1 — a shifted alphabet

AOL OPZAVYF VM ZLJYLA DYPAPUN PZ SVUN HUK MBSS VM ZBYWYPZLZ. NLULYHSZ, RPUNZ HUK SVCLYZ OHCL HSS AYBZALK ZPTWSL TLAOVKZ…

Shape: ordinary letters, word lengths kept. IoC: 1.65 — high, so one alphabet. Chi-squared: testing all 25 shifts, shift 7 fits English far better than the rest. Verdict: Caesar cipher, shift 7 — and indeed the text opens “THE HISTORY OF SECRET WRITING…”. Solve it in the Caesar solver.

Example 2 — a keyword cipher

HLQB LZY HWFTX FVR ZPP HRWISFNAL ATSTGQ MBF GMB FEMXZ FPI FVR MVMGF VIK HULX ADRCEFCED YESQ ES ESAO QQGFLKQG…

Shape: ordinary letters. IoC: 1.09 — almost flat, so several alphabets were mixed and no single shift will fit. Key length: splitting into 5 columns makes each column's IoC jump to monoalphabetic levels, pointing to a five-letter key. Verdict: Vigenère cipher, key length 5 (the key was LEMON). Take it to the Vigenère solver.

Example 3 — a swapped alphabet

Q UGGR HXMMST LIGXSR WT YQOK. ZIT LTZZTK IORTL ZIT QFLVTK OF HSQOF LOUIZ QFR STQCTL PXLZ TFGXUI ESXTL YGK Q EQKTYXS KTQRTK…

Shape: ordinary letters, word lengths kept, and one letter — ZIT — keeps recurring as a three-letter word. IoC: 1.66 — high, so a single alphabet. Chi-squared: no shift fits at all, and it is not reversed (Atbash fails too). A single alphabet that is neither shifted nor reversed must be scrambled. Verdict: simple substitution — ZIT is THE, and the cryptogram solver takes it from there.

Limits & mistakes

How identification goes wrong

Identification is inference, and honest tools say where it breaks. The Identifier will struggle — and says so in its scores — when:

  • The text is short. Under ~100 letters every statistic wobbles; under 25 the tool refuses outright.
  • The plaintext is unusual. A message written without the letter E, a list of names, or heavily abbreviated text has fingerprints unlike ordinary English, and rankings can mislead.
  • Ciphers are layered. A Vigenère message then written in five-letter groups, or a substitution applied after a transposition, shows a blend of two fingerprints. Decode one layer at a time — the Solver's chain exists for exactly this.
  • The language is not English. These statistics are calibrated on English. Spanish, French or German ciphertexts need their own frequency tables (the Xenocrypt tradition exists precisely because of this).

Common mistakes people bring to this page

  • Pasting the decoded text. If your “ciphertext” is already English, the tool will say the frequencies look like transposition or plain text — because they are.
  • Stripping the evidence. Removing spaces, punctuation or line breaks before pasting destroys word-length clues. Paste the text exactly as you found it.
  • Trusting the top score blindly. Read the evidence line under each candidate. If the top two are close, try both solvers — the wrong one costs you a minute, the right one opens the message.
  • Expecting it to name modern encryption. AES or RSA output has no fingerprint to find. If a puzzle claims otherwise, the “cipher” is probably an encoding wearing a costume.
Relatives

Identifier, Solver, Decoder — which one do you need?

ToolYour situationWhat it gives you
Cipher Identifier (this page)“I have scrambled text and no idea what it is.”A ranked shortlist of cipher families, with evidence
Cipher Solver“Just decode it for me — try everything.”An automatic attempt at the plaintext, layer by layer
Cipher Decoder“I roughly know the type; point me to the right tool.”A route-by-type table and the ten commonest puzzle ciphers
What Cipher Is This?“I want to learn to recognise them myself.”A clue table and ten annotated samples to study

The Identifier is the diagnostic step. It is deliberately separate from the solvers so its only job is to be right about the family — the solvers then do the key-hunting they were each built for.

Uses & culture

Who identifies ciphers, and why

Most pastes into this tool come from play, not espionage. Puzzle hunts and ARGs hide ciphertexts in images and web pages — the Cicada 3301 puzzles, which began in 2012, made “what cipher is this?” a genuinely popular question. Geocachers meet scrambled coordinates in mystery caches. Escape rooms chain simple ciphers into locks and props, and their players have minutes, not afternoons, to work out which system they are looking at. CTF competitions open their cryptography categories with exactly this triage: identify the system, then attack it. And in classrooms, identification is the teachable moment — the point where a student stops seeing random letters and starts seeing structure. That is the skill this page is really for; the tool just counts faster than a pencil.

Practice

Test yourself before you trust the tool

Cover the answers. For each text: check the shape, guess the family, then run it through the Identifier and compare your reasoning with its evidence.

Practice 1

GSV JFRXP YILDM ULC QFNKH LEVI GSV OZAB WLT
Reveal the answer

Atbash — the alphabet reversed. The frequencies are English-shaped but mirrored, and the text decodes to “THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG”. Clue: no shift fits, but reversing A↔Z does.

Practice 2

ZRRG ZR NG GUR CNEX NG ABBA NAQ OEVAT GUR XRL
Reveal the answer

ROT13 — Caesar with shift 13. Clue: NG appears where “AT” should be, and GUR where “THE” should be; a shift of 13 maps both. It decodes to “MEET ME AT THE PARK AT NOON AND BRING THE KEY”.

The printable version of the decision tree above — plus a one-page statistics card — is in the sidebar: print it and keep it with your puzzle notebook.

FAQ

Frequently asked questions

How accurate is the Cipher Identifier?

On long, ordinary English ciphertexts of the common families, the correct family is ranked first in the great majority of cases — the exact figures, the test set and the failures are published on the benchmark page. Accuracy falls with length: treat anything under 100 letters as a strong hint rather than a verdict, and under 25 letters the tool will refuse to rank at all.

How much ciphertext do I need?

At least 25 letters for the tool to answer at all, 100 or more for a ranking worth trusting, and several hundred if the cipher is polyalphabetic and you also want a reliable key-length estimate. If all you have is a short fragment, paste it exactly as found — word lengths and punctuation are evidence too.

Can it identify AES, RSA or other modern encryption?

No — and neither can anything else. Modern encryption is designed so its output is statistically indistinguishable from random data; there is no fingerprint to measure. If your text has a strict character set and fixed block lengths, it is far more likely to be an encoding such as Base64 or hex, which the Identifier does check for.

Does my text leave my device?

No. Every measurement runs in your browser, in this page. Nothing you paste is uploaded, stored or logged — which is also why the tool works offline once the page has loaded.

What if the text is a code, not a cipher?

The character-set check catches the common ones — Morse shapes, digit pairs, symbol alphabets — and routes you to the right translator instead of a cipher solver. If your text is words replaced by other words (a book code or nomenclator), no statistical tool will name it from a short sample; context — where you found it — is the main clue.

The top two candidates are close. What should I do?

Try both solvers, starting with the higher score, and read the evidence line under each candidate first — it tells you which statistic drove the ranking, and a two-minute test of the wrong solver is cheaper than an hour of doubting the right one. If neither opens the text, suspect layering and run the Cipher Solver's chain.

Next steps