Cipher Identifier Auto Detect
Paste unknown text and get ranked guesses for common encodings and classical ciphers, plus an instant decoded preview.
By Hommer Zhao · Updated October 29, 2026
Once you identify successive layers, arrange them in the multi-step decoder and inspect each result.
Quick answer: In this English benchmark, Base64, URL encoding, HTML entities, Hex, Binary, Morse performed best, each ranking the correct method first for all 12 sentences.
How accurate is the cipher identifier? (benchmark)
We encoded the same 12 public-domain English proverbs with each method and ran this identifier on the results. Top-1 means the correct method was the first guess; Top-3 means it appeared among the first three guesses.
Benchmark: 12 sentences per method, encoded with this site's own tools, run against this identifier on 2026-10-29.
Scroll for more columns →
| Method | Samples | Top-1 correct | Top-3 correct | Most common mix-up |
|---|---|---|---|---|
| Base64 | 12 | 12/12 | 12/12 | None |
| URL encoding | 12 | 12/12 | 12/12 | None |
| HTML entities | 12 | 12/12 | 12/12 | None |
| Hex | 12 | 12/12 | 12/12 | None |
| Binary | 12 | 12/12 | 12/12 | None |
| Morse | 12 | 12/12 | 12/12 | None |
| ROT13 | 12 | 6/12 | 6/12 | No candidate (5/12) |
| Caesar shift 3 | 12 | 8/12 | 8/12 | No candidate (4/12) |
| Caesar shift 7 | 12 | 8/12 | 8/12 | No candidate (4/12) |
| Atbash | 12 | 9/12 | 9/12 | No candidate (3/12) |
This small English corpus measures method labels, not accuracy on arbitrary text or guaranteed plaintext recovery. Caesar shifts share one label. “No candidate” means the detector returned no ranked guess; it is different from the “Plain Text / Unknown” label. HTML samples encode every character as a decimal entity, so these results do not measure lightly escaped HTML. Ties for most common mix-up are resolved alphabetically.
Download the inputs and results (JSON). Each sentence was encoded with fixed settings, then the identifier's ranked method labels were compared with the known method to count Top-1 and Top-3 matches.
Corpus, settings and confidence scores
Twelve traditional public-domain English proverbs, modern spelling. A small fixed English sample, not a representative accuracy estimate for arbitrary inputs.
- A stitch in time saves nine.
- Actions speak louder than words.
- All that glitters is not gold.
- Better late than never.
- Birds of a feather flock together.
- Every cloud has a silver lining.
- Fortune favors the bold.
- Look before you leap.
- Necessity is the mother of invention.
- Practice makes perfect.
- The early bird catches the worm.
- Where there is a will, there is a way.
Confidence is a heuristic score, not a probability. Each median below includes only samples where the correct label was returned, at any rank. Round-trip checks use the known codec and key, independently of detection success.
- Base64: UTF-8, standard alphabet, padding. Median correct-label confidence: 79; 12/12 samples contributed. Exact original text.
- URL encoding: encodeURIComponent; spaces as %20. Median correct-label confidence: 95; 12/12 samples contributed. Exact original text.
- HTML entities: Decimal numeric entities, encodeAll=true. Median correct-label confidence: 92; 12/12 samples contributed. Exact original text.
- Hex: Uppercase ASCII byte pairs, space-separated. Median correct-label confidence: 75; 12/12 samples contributed. Exact original text.
- Binary: ASCII octets, space-separated. Median correct-label confidence: 80; 12/12 samples contributed. Exact original text.
- Morse: Slash word separators, no prosigns. Median correct-label confidence: 84.5; 12/12 samples contributed. Uppercase; punctuation and word spacing retained.
- ROT13: Shift 13; preserve case and punctuation. Median correct-label confidence: 74; 6/12 samples contributed. Exact original text.
- Caesar shift 3: Shift 3; preserve case and punctuation. Median correct-label confidence: 63; 8/12 samples contributed. Exact original text.
- Caesar shift 7: Shift 7; preserve case and punctuation. Median correct-label confidence: 66; 8/12 samples contributed. Exact original text.
- Atbash: Reverse English alphabet; preserve case and punctuation. Median correct-label confidence: 63; 9/12 samples contributed. Exact original text.
The download includes every ciphertext, ranked result, correct-label score, control result and codec round-trip.
Short-input edge cases
- Three-word Caesar text:
Phhw ph wrqljkw→ No candidate. - Four-character Base64 string:
YWJj→ No candidate. - One-letter Morse message:
.→ Morse Code (confidence score: 76).
What it cannot identify (yet)
These methods have dedicated tools but are not candidates in the identifier. We tested the same sentences as controls; a different label is a false positive, and an empty result is an abstention.
- Vigenère — Repeating key LEMON; preserve case and punctuation. Top-1 returned: No candidate (12/12).
- Bacon — Modern alphabet; lowercase a/b groups. Top-1 returned: No candidate (12/12).
- A1Z26 — Standard alphabet; hyphen letter separators. Top-1 returned: No candidate (12/12).
- Rail Fence — 3 rails; retain spaces and punctuation. Top-1 returned: Plain Text / Unknown (9/12); No candidate (3/12).
- Playfair — Key MONARCHY; retain fillers on decoding. Top-1 returned: No candidate (11/12); Caesar Cipher (1/12).
Open the relevant tool to decode with a known key or settings. Bacon and A1Z26 discard some formatting; Playfair merges letters and inserts fillers, so decoding does not restore the exact original sentence.
How to identify a cipher by hand
- Inspect the alphabet and character set. Dots and dashes suggest Morse; percent escapes suggest URL encoding. Letters, digits and padding may fit Base64. These are clues, not proof.
- Check length and grouping. Look for repeated blocks, word gaps, byte pairs or bit groups. Try the hex encoder/decoder (switch it to Decode) or binary decoder when the characters fit. Keep the original spacing for comparison.
- Inspect letter frequency and the index of coincidence (IoC). Use the frequency analysis tool to compare letter counts and repeated patterns. Monoalphabetic substitution preserves letter counts under renamed letters, while polyalphabetic ciphers can spread them out; short samples remain ambiguous.
- Try the likely tool and read the output. Use Caesar brute force to inspect shifts, or the substitution cipher tool to test a recovered alphabet. A readable result and a consistent re-encoding strengthen a hypothesis.
Hash or cipher? Hashes are one-way and cannot be decoded. A hexadecimal string could be either encoded bytes or a digest; use the Hash Identifier to inspect likely hash formats before trying to decode it.
How Detection Works
If ordinary-looking text may contain invisible characters, use the zero-width text decoder and character inventory to inspect it.
Cipher identification is a form of lightweight cryptanalysis. Instead of assuming a single format, the tool checks several likely encodings and simple ciphers, decodes a preview for each one, and scores how plausible the result looks.
Alphabet And Symbol Constraints
Many encodings have obvious signatures. Base64 limits the alphabet, Morse uses only dots and dashes, and binary or hex usually arrive in clean byte groups.
Decoded Plaintext Scoring
For each plausible method, the tool decodes a preview and estimates how readable it is by checking printable characters, spacing, and common English word patterns.
Round-Trip Comparison
Compare the re-encoded result with your input. Correct decoding may change formatting, such as Base64 padding, HTML entity form, or hex letter case. An incorrect reversible guess can also round-trip to the input, so a match supports but does not prove a guess.
Best Use Cases
- Quickly triaging challenge text in CTFs and puzzle hunts
- Checking whether a suspicious string is encoded rather than encrypted
- Previewing simple classical cipher transformations before deeper analysis
- Teaching students how pattern-based cryptanalysis works
Important Limits
- Confidence scores are heuristic, not proof
- Keyed ciphers usually require extra context to solve correctly
- Short samples are inherently ambiguous and may fit multiple patterns
- Modern encryption should appear as random data and may not decode meaningfully at all
Authoritative References
If you want to understand the theory behind automated guessing, these references cover the core ideas: frequency-based analysis, coincidence measurements, and formal cryptanalysis terminology.
Detection Workflow
- Paste the unknown string into the analyzer.
- Review the top-ranked candidates and their confidence scores.
- Inspect the decoded preview for language, spacing, and context.
- Compare the round-trip re-encode result against the original input.
- Use related tools for deeper manual analysis if the sample is still ambiguous.
Frequently Asked Questions
What can this tool detect reliably?
In this English benchmark, Base64, URL encoding, HTML entities, Hex, Binary, Morse performed best, each ranking the correct method first for all 12 sentences. The other top-1 results were ROT13: 6/12; Caesar shift 3: 8/12; Caesar shift 7: 8/12; Atbash: 9/12. These are method-label results on a small fixed corpus, not guaranteed accuracy on your text. HTML samples used decimal entities for every character.
Why might Caesar or Atbash score highly?
The detector tries Caesar shifts and alphabet reversal, then checks whether the decoded text looks more English-like than the input. Common words, letter pairs, spacing and printable characters affect the score. A confidence score is a heuristic, not the probability that the answer is correct.
Can the tool decode Vigenère or modern encrypted text?
This identifier does not test Vigenère, Bacon, A1Z26, Rail Fence, Playfair as candidate methods. Use their dedicated tools with the appropriate key or settings. Modern encryption also requires the correct algorithm, key and any necessary parameters; appearance alone cannot identify or decrypt it.
Should I trust the top result blindly?
Treat it as a starting point. Read the decoded preview, compare the round-trip re-encoding and check the context. A correct method label does not guarantee the correct shift or plaintext, and a reversible transformation alone does not prove the guess. Short inputs may return no candidate.
Can it identify a cipher from an image?
The identifier accepts text only. Type the characters from the image, or use OCR and check its transcription before pasting. Preserve symbols, spaces and grouping where possible; an image cannot be uploaded to this tool.
Is a cipher identifier the same as a hash identifier?
A cipher identifier tries reversible encodings and ciphers and previews possible plaintext. A hash identifier checks digest formats. Hashes are one-way and cannot be decoded; a matching hash format is only a clue to the algorithm. Use the separate Hash Identifier for likely hashes.