Cipher Identifier
Paste a secret message to find out which cipher or code it uses. The tool reads its letters, numbers and symbols, ranks the likely ciphers, and tries to decode the simple ones, such as Atbash, every Caesar shift, A1Z26 and Morse code, so you can often read it right away.
Input
Output
| Cipher | Decoded text |
|---|---|
| Paste a cipher text, and the ciphers or codes it could be written in show up here, the likeliest first. | |
Guide
What is a cipher identifier?
A cipher identifier looks at a secret message and works out which cipher or code it was most likely written in. Puzzle hunts, geocaches, escape rooms and classroom games are full of encoded messages, and the first question is always the same: what is this? Every cipher leaves its own fingerprint, from the characters it uses to how often each letter turns up.
Tool description
Paste a cipher text, and the tool lists the ciphers and codes it could be written in, the likeliest first, each with the reason it fits. When a cipher has no key, or few enough keys to try them all, the tool decodes the text right away and shows the result with the key it found. Each cipher links to the tool that encodes and decodes it, so you can carry on there.
Under the text, a few statistics describe it: its characters and letters, how many different symbols it uses, its index of coincidence, and its most common letters.
What it recognizes
- Codes written with other characters: Morse code, binary, hexadecimal, Base64, Base32, character codes, A1Z26 numbers, Polybius square pairs, and Bacon's A's and B's (or 0s and 1s). These are decoded.
- Ciphers with few keys: Atbash, every Caesar shift (ROT13 included), every affine key, ROT47 and reversed text. The tool tries them all and keeps the ones that give English.
- Transpositions: rail fence ciphers and columnar transpositions with a short keyword. The tool tries the rail counts and column orders and shows the one that gives English. When the message keeps its spaces, the decoded words must fit between them.
- Ciphers that need their key: Vigenère and Beaufort, with a guess at the key's length, Playfair, and substitution ciphers with a scrambled alphabet. The tool names them, but decoding them takes the key.
- Hashes: hex digits as many as an MD5 or SHA hash has. A hash can't be decoded, since it works one way only.
- Plain text: when the text already reads as English, the tool says so.
How it decides
The index of coincidence is the chance that two letters picked at random from the text are the same. English text scores about 0.066, and evenly spread letters about 0.038. Substitution ciphers keep the English figure, since they only swap letters for others, while a repeating keyword pulls it toward 0.038. Transpositions even keep the letter frequencies of English and only change the order.
To tell whether a decoded text is English, the tool checks how common its runs of three letters are in English and whether its letters split into English words. Short texts give fewer clues: a match in a handful of letters shows as possible rather than very likely.
Tips
- The tool reads English. A message in another language can show up as a substitution cipher or as nothing the tool knows.
- Symbol ciphers such as pigpen can't be pasted as text. Use the Pigpen Cipher Translator for those.
- When a key length is suggested for a Vigenère or Beaufort cipher, the real key can also be a multiple of it.
- The longer the text, the surer the answer. A single short word can decode to several words that make sense.
Features
- Recognizes the common classical ciphers and text encodings
- Decodes ciphers without a key, or with few keys, on the spot and shows the key it found
- Links every result to a tool that encodes and decodes it
- Statistics of the text: letters, symbols, index of coincidence and common letters
- Runs in your browser, so your messages never leave your device