Skip to content
100% local

Cipher identifier

Analyze encrypted text and get a ranked guess at which classical cipher produced it.

Input
Output

Cipher identifier

Paste a block of ciphertext and this tool runs a quick statistical fingerprint, then suggests which classical cipher is the most likely match. It checks the character mix first — pure hex digits, Base64 padding, Morse dots and dashes, or a run of numbers from 1 to 26 all get spotted as encodings rather than ciphers. For anything left over, it falls back to letter statistics: the index of coincidence shows whether the text still carries the shape of ordinary language (a hint of a Caesar shift, a simple substitution, or an unscrambled transposition) or looks closer to random noise, which points at a polyalphabetic cipher like Vigenère, or at modern encryption that classical analysis can't touch.

The options tune how that fingerprint is taken. Reference language picks which letter-frequency table the comparison runs against — English, Slovak, Czech, German, Polish or Hungarian — since a Caesar shift only stands out once compared against the right distribution. N-gram size switches the frequency table between single letters, pairs and triples, useful for spotting digraph patterns a unigram count misses. Ignore spaces and punctuation strips those out first, and the two display toggles add a bar chart alongside the numbers and switch between absolute counts and percentages.

This is a fast heuristic, not a cryptographic proof: several algorithms share a letter distribution, a short sample gives noisy statistics, and nothing here actually breaks a cipher — pair a strong guess with the Caesar brute-force or Vigenère solver tools to take the next step. It handles long pastes, mixed scripts and either line-ending style without complaint.

Everything runs in your browser. Nothing you paste is uploaded anywhere, so it's safe to try on real or sensitive ciphertext. Copy the report, download it as a .txt file, or send the output straight into another tool's input.

FAQ

How accurate is the identification?
It's a heuristic based on the index of coincidence and chi-squared letter-frequency matching, not a guarantee — several ciphers share the same statistical shape, especially on short text.
What does "index of coincidence" mean?
It measures how likely two random letters in the text are to match. Natural language and simple substitution ciphers score around 0.06–0.07; polyalphabetic ciphers and random data sit closer to 0.038.
Why does it detect Base64 or hex instead of a cipher?
Those are encodings, not ciphers. The tool checks the character set first, since a string made only of hex digits or valid Base64 characters is almost certainly an encoding rather than a substitution cipher.
Can it decrypt the text for me?
No, it only identifies the likely cipher type. Once you have a candidate, use the matching tool — Caesar brute-force or the Vigenère cipher solver — to recover the plaintext.
Is my text uploaded anywhere?
No. The whole analysis runs locally in your browser — nothing you paste ever leaves your device.