How it works
A cipher identifier does not decrypt every unknown string. It measures visible properties and ranks classical methods that could have produced them. Paste the complete sample, select Identify, and read each confidence score together with its reason. A high score means the format strongly matches a known signature; it is evidence, not a mathematical guarantee.
The first checks examine the character set. Dots, dashes, spaces, and slashes strongly indicate Morse code. An eight-bit stream made only from zero and one suggests binary text. Even pairs of digits from 11 through 55 fit a Polybius square. A ciphertext using exactly A, D, F, G, V, and X fits the coordinate alphabet of ADFGVX. Base64 has its own letters, digits, slash, plus sign, four-character length, and optional equals-sign padding.
Other signals are statistical. The index of coincidence measures the chance that two letters selected from a sample match. Ordinary language passed through a fixed substitution or transposition often stays near the English value around 0.066. A repeating-key polyalphabetic cipher tends to flatten the distribution toward roughly 0.038. Short samples vary widely, so the tool lowers confidence rather than forcing one exact interpretation.
For Caesar candidates, the detector tries all twenty-five backward shifts. It compares each result with English letter frequencies and looks for common words. When one shift scores clearly better, the candidate includes the decoded plaintext directly. You can still open the Caesar page with the original input pre-filled and inspect every possible shift.
The results may overlap. A short Collon ciphertext can also resemble an ordinary substitution because both use letters, and a Playfair-compatible string can satisfy broader monoalphabetic statistics. Ranked alternatives are more honest than a single unsupported label. More ciphertext usually produces better frequency evidence, while spaces and known context can help a human decide between candidates.
Detection signals
The ranking engine applies these checks independently, then sorts compatible candidates by confidence.
| Candidate | Observed signal | Evidence strength |
|---|---|---|
| Morse code | Only dots, dashes, spaces, and forward slashes | Very strong formatting signature |
| Binary | Only 0 and 1 with a bit length divisible by 8 | Strong data-format signature |
| Polybius square | Even coordinate pairs whose digits are all 1 through 5 | Strong checkerboard signature |
| ADFGVX | Exactly six distinct letters, all from ADFGVX | Strong coordinate-alphabet signature |
| Collon | Even letter count and no more than nine distinct letters | Useful but broad structural clue |
| Caesar or fixed substitution | English-like index of coincidence and a high-scoring Caesar shift | Statistical clue strengthened by readable output |
| Vigenere | Index of coincidence near a flatter polyalphabetic distribution | Statistical clue that needs enough text |
| Base64 | Valid alphabet, four-character blocks, and trailing padding | Strong encoding signature |
| Playfair | Even digraphs, no J, and no doubled letter inside a pair | Compatibility check, not proof |
Worked example
Suppose the unknown text is KHOORWKLVLVDVHFUHWPHVVDJH. It contains only letters, so Morse, binary, numeric Polybius, Base64 padding, and the six-letter ADFGVX alphabet do not fit. Its repeated letters and frequency profile remain compatible with a fixed substitution.
- Normalize the sample: remove nonletters and convert it to
KHOORWKLVLVDVHFUHWPHVVDJH. - Try every Caesar shift: shift 1 begins
JGNNQ, shift 2 beginsIFMMP, and shift 3 beginsHELLO. - Score the output: shift 3 produces common English fragments including HELLO, THIS, SECRET, and MESSAGE. Its letter frequencies also fit English better than the neighboring shifts.
- Rank the match: return Caesar cipher with shift 3 as a high-confidence candidate and display
HELLOTHISISASECRETMESSAGE. - Open the tool: the result link carries the original ciphertext in a URL fragment. The text stays in the browser and appears in the Caesar input field for manual verification.
This worked example succeeds because the sample is long enough and contains recognizable words. A five-letter sample such as KHOOR may still suggest shift 3, but many other shifts can resemble fragments of words by chance. The confidence should reflect that uncertainty.
What the identifier cannot do
The identifier cannot determine a cipher from every string. Classical systems can share the same alphabet and similar statistics. A keyed substitution, transposition, Playfair message, and short Vigenere sample may all look like uppercase letters with no decisive marker. A result should be treated as a shortlist for testing, not as proof of authorship or method.
Modern encryption such as AES or RSA is designed to produce output indistinguishable from random data. This tool will never reliably identify the algorithm, key, mode, or plaintext from modern ciphertext alone. Compressed data, hashes, random tokens, and encrypted bytes can also resemble one another. Returning a confident classical-cipher guess in that situation would be misleading.
Encoding is not always encryption. Binary and Base64 are reversible representations with recognizable formatting, while Morse is a public signaling alphabet. Their appearance in the candidate list means the text may be directly decodable without a secret key. It does not mean the original author attempted cryptographic protection.
Sample quality matters. Paste the complete ciphertext when possible, retain meaningful separators, and check whether the source mentions a grid, keyword, period, historical setting, or language. Text from another language has different frequencies from English and can reduce the quality of the Caesar and coincidence scores.
Related cipher tools
Frequently asked questions
How can I tell what cipher was used?
Compare the character set, length, repeated patterns, index of coincidence, and readable outputs from simple shifts. This tool ranks those clues and links to matching decoders.
Can a cipher identifier always find the right cipher?
No. Many classical ciphers share signatures, and short samples contain little statistical evidence. Results are candidates with reasons, not guaranteed classifications.
How much ciphertext do I need to identify a cipher?
Format signatures can work with a few characters, but frequency methods improve substantially with dozens or hundreds of letters. Paste the longest complete sample available.
Can this tool identify AES or RSA encryption?
No. Secure modern ciphertext is intentionally indistinguishable from random data. The algorithm and key cannot be determined reliably from ciphertext alone.
Does the identifier send my ciphertext to a server?
No. Detection and scoring run entirely in your browser. The input is placed only in URL fragments when you choose a matching local tool.
Why did the tool return several possible ciphers?
The sample satisfies more than one heuristic. Read each reason, consider the source context, and test the strongest candidates rather than trusting one forced answer.
Privacy note
All detection runs in your browser. Your sample never leaves your device and is never transmitted to ToolPlex.