Home › Ciphers › What Cipher Is This?

What Cipher Is This?

The direct answer: look at the shape first. What characters does it use? Are the word lengths intact? Does one short word keep appearing where THE should be? Nine times out of ten, those three observations name the cipher before any mathematics. This page teaches the looking — with ten real samples to practise on, and the machine alongside for when your eye needs a second opinion.

The short answer

To identify a cipher, ask three questions. What is it made of? (dots and dashes → Morse; 0s and 1s → binary; mixed case ending in = → Base64; numbers ≤ 26 → A1Z26). Did the word lengths survive? (yes → a substitution family: Caesar, Atbash or a cryptogram; no → Vigenère, transposition or an encoding). What do the frequencies say? (English-shaped → one alphabet or a transposition; flat → Vigenère). The samples below show each answer in the wild.

In a hurry? Paste the text into the tool and let the Identifier answer — then come back and learn how it knew.

Ask the machine

0 letters
Reference

The clue table: from looks to likely cipher

What the text looks likeLikely cipherThe confirming test
Only dots, dashes and slashesMorse codeDecode the first group: ... --- ... is SOS
Only 0s and 1s, in blocks of eightBinary encoding01000001 is the letter A
Only hex digits (0–9, a–f), in pairsHexadecimal encoding54 68 65 spells “The”
Mixed case and digits, ends in =, length a multiple of fourBase64 encodingDecode it — the inside is often a second puzzle
Numbers, none above 26A1Z2620-8-5 is THE
Numbers in pairs, 11–55, digits only 1–5Polybius squareRead row-then-column on a 5×5 grid
Letters, normal word lengths, one word recurs where THE belongsSubstitution — or Caesar/Atbash firstTry all 25 shifts (free), then test A↔Z reversal, then the cryptogram solver
Letters, word lengths gone, blocks of five, statistics flatVigenèreLook for a repeated fragment — its spacing betrays the key length
Letters in strict pairs, no J anywherePlayfairCheck for doubled pairs — Playfair can never produce one
Letter frequencies match English, words do notTransposition (rail fence, columnar)The letters were never changed, only moved
Angular symbols — grids, boxes, Xs, dotsPigpen or a symbol alphabetMatch shapes against the grid; statistics cannot help
Only two distinct symbols, in groups of fiveBacon's cipherEach group of five is one letter, written in binary
Worked examples

Ten samples, annotated

Cover the annotation, study the sample, commit to a name — then reveal and check your reasoning. Each sample also loads into the tool above, so you can watch the machine reach the same verdict from the statistics.

Sample 1

ESP DFAAWJ ECLTY LCCTGPD LE ESP YZCES RLEP MPQZCP ESP DFY RZPD OZHY
Reveal the tell-tale signs & the answer

Signs: word lengths are intact, and one three-letter word — ESP — appears three times, exactly where a message would keep saying THE. One alphabet, consistently applied. Testing the 25 shifts, shift 11 turns ESP into THE and everything else follows. Answer: Caesar cipher, shift 11 — “THE SUPPLY TRAIN ARRIVES AT THE NORTH GATE BEFORE THE SUN GOES DOWN.”

Sample 2

ZRRG GUR ARJ THNEQ NG GUR RNFG QBBE NG ZVQAVTUG
Reveal the tell-tale signs & the answer

Signs: GUR sits where THE belongs and NG where AT belongs — but the shift that maps G→T is 13, the most famous shift of all. A Caesar whose key is 13 has its own name and its own culture (it is its own inverse: apply it twice and you are home). Answer: ROT13 — “MEET THE NEW GUARD AT THE EAST DOOR AT MIDNIGHT.”

Sample 3

GSV NZK RH SRWWVM YVSRMW GSV KZRMGRMT RM GSV SZOO
Reveal the tell-tale signs & the answer

Signs: GSV again poses as THE, but no shift maps G→T and the rest into English — try them all and each fails somewhere different. The frequencies are English-shaped but mirrored: the commonest plaintext letters hide at the end of the alphabet. Reverse the alphabet (A↔Z, B↔Y) and it opens at once. Answer: Atbash — “THE MAP IS HIDDEN BEHIND THE PAINTING IN THE HALL.”

Sample 4

EPQ PPBFIC EUPW JQ GLZDMPL AZPZ FLP ZUZPZ MX YQSLE IZH WMRX FVPIC BTI MZUHRM RSC BTI XIZ ASW MWVA MFZCF XSM IILBTIC
Reveal the tell-tale signs & the answer

Signs: EPQ could be THE — but a few words later the same plaintext word would need a different cipher shape, because the alphabet changes with every letter. The overall letter frequencies are nearly flat (index of coincidence close to random), the classic mark of several alphabets rotating under a repeating key. Answer: Vigenère cipher (key LIME, length 4) — “THE LETTER WILL BE CARRIED OVER THE RIVER AT NIGHT AND LEFT UNDER THE BRIDGE FOR THE MAN WHO ASKS ABOUT THE WEATHER.”

Sample 5

TCG LIN JDII RY TCG QDVGQ COS STLLN GJMTY SDKAG TCG WOQ
Reveal the tell-tale signs & the answer

Signs: TCG appears three times — THE's rhythm again — and the letter frequencies are as peaked as English (high index of coincidence), so one alphabet was swapped for another. But no shift fits, and neither does reversal: the alphabet was scrambled, not slid or flipped. Answer: simple substitution (a cryptogram) — “THE OLD MILL BY THE RIVER HAS STOOD EMPTY SINCE THE WAR.” The cryptogram solver's home ground.

Sample 6

TAGLROETINT HPCAEILRIENHLSTANOIH EKWAVTARTG
Reveal the tell-tale signs & the answer

Signs: count the letters and the frequencies are perfectly English — because the letters were never replaced at all. Only their order changed, which is why no alphabet-based test gets anywhere and why familiar pairs (TH, HE) seem to have been scattered. Written in a zigzag over three rows and read off row by row, this is exactly what you get. Answer: rail fence cipher, 3 rails — “THE PACKAGE WILL ARRIVE ON THE LAST TRAIN TONIGHT.”

Sample 7

-- . . - / -- . / .- - / - .... . / .-.. .. --. .... - .... --- ..- ... . / .- - / -. .. -. .
Reveal the tell-tale signs & the answer

Signs: there is nothing to count — the character set decides it instantly. Only dots, dashes, spaces and slashes: letters separated by spaces, words by slashes. This is a code, not a cipher: each letter has a fixed signal, no key exists. Answer: Morse code — “MEET ME AT THE LIGHTHOUSE AT NINE.”

Sample 8

VGhlIGNvbmNlcnQgYmVnaW5zIGF0IGVpZ2h0IGluIHRoZSBtYWluIGhhbGw=
Reveal the tell-tale signs & the answer

Signs: capitals, small letters and digits mixed with no respect for word shape; a single = signing off at the end; total length a multiple of four. Nothing about it is trying to be secret — it is data wearing a transport alphabet. Answer: Base64 encoding — “The concert begins at eight in the main hall.” Decode it, don't “break” it.

Sample 9

01001111 01010000 01000101 01001110 00100000 01010100 01001000 01000101 00100000 01000111 01000001 01010100 01000101
Reveal the tell-tale signs & the answer

Signs: two symbols only, disciplined into blocks of eight. Each block is one character's number written in base two — and notice the block 00100000 appearing twice: it is the space, the commonest “character” in any sentence. Answer: binary encoding — “OPEN THE GATE.”

Sample 10

20 8 5 / 11 5 25 / 9 19 / 21 14 4 5 18 / 20 8 5 / 13 1 20
Reveal the tell-tale signs & the answer

Signs: numbers only, and not one of them above 26 — the size of the alphabet is the confession. Read each as a letter's position (1=A … 26=Z) and the very first group, 20-8-5, spells THE. Answer: A1Z26 — “THE KEY IS UNDER THE MAT.”

Foundations

Cipher, code or encoding? The question inside the question

Half of all “unknown ciphers” are not ciphers, and the distinction decides your whole approach. A cipher transforms letters under a key — there is something to break, and statistics are your weapon. A code replaces letters or words by a fixed public book (Morse, A1Z26, Pigpen) — there is nothing to break, only something to look up or transcribe. An encoding rewrites data for transport (Base64, hex, binary) — nothing to break and nothing secret, only a conversion to run. Ask which kind of thing you hold before asking which one it is: the character set usually answers the kind in one glance, and the samples above are arranged so you can feel the three kinds differ.

Origin & history

Recognition: the codebreaker's first skill

Before a cipher can be attacked it must be placed, and placing it was for centuries a matter of trained eyes. The statistical turn came from William F. Friedman, whose index of coincidence (published 1922 from the Riverbank Laboratories) let an analyst decide from ciphertext alone whether one alphabet or many had been used — recognition by arithmetic rather than by hunch. The repeated-sequence method for spotting a Vigenère key's rhythm is older: Friedrich Kasiski published it in 1863. Every test on this page descends from those two ideas plus the humble character-set check: look at what the text is made of, measure how its letters behave, and let the shape confess the system.

Edge cases

When nothing matches

  • It is layered. The commonest real-world answer. Base64 wrapped around ROT13 looks like neither. Peel one layer with the Solver's chain and ask the question again of what is inside.
  • It is in another language. Every frequency test here is tuned to English. A Spanish or French ciphertext keeps its family's shape but wears different statistics — the family guess may still be right even when the confidence looks low.
  • It is already plaintext. Reversed text, upside-down text, leetspeak and plain English in a strange font all arrive disguised as ciphers. If the “frequencies” look like English and the words almost read, suspect presentation, not encryption.
  • It is a book code. Words or numbers that point into a specific book, page and line cannot be identified from the text alone — the book is the key, and context is the only clue.
  • It is modern encryption. AES and RSA outputs are engineered to have no shape at all. A fixed-length block of hex with no structure is not a puzzle cipher wearing a disguise; it is a wall, and the honest answer is to stop.
Relatives

This page, the Identifier, the Decoder

ToolYour situationWhat it gives you
What Cipher Is This? (this page)“Teach me to recognise them myself.”The clue table, ten annotated samples, the reasoning habit
Cipher Identifier“Just tell me, with evidence.”Full statistics, confidence scores, ranked candidates
Cipher Decoder“I can describe it — route me.”A clue checklist and the route-by-type table
Cipher Solver“Skip the naming; decode it.”An automatic chain attempt, layers included
Uses & culture

Why recognition is the teachable skill

Solving gets the glory, but recognition does the work — in puzzle hunts, where the first minute with a strange string decides the next hour; in CTF competitions, whose cryptography categories are triage under time pressure; in escape rooms, where a Morse torch and a shifted inscription must be told apart at a glance. It is also the skill that transfers: keys and tools change, but the habit of asking what is this made of, what survived, what does it resemble works on every future cipher, including the ones nobody has named for you. That is why this page exists alongside the machine that answers instantly — the machine is faster, but the eye is portable.

FAQ

Frequently asked questions

What is the fastest way to tell a cipher from an encoding?

Look at the character set and the discipline. Encodings are strict: Base64 always comes in multiples of four with its limited alphabet and = padding; hex is only 0–9 and a–f; binary is only 0 and 1 in eights. Ciphers are messy in the way language is messy — word lengths, stray punctuation, uneven shapes. Strict means encoding; language-shaped means cipher or code.

How can I tell Caesar from a general substitution?

Try the shifts first — all 25, which takes seconds. If one shift produces English, it was Caesar. If none does but the frequencies are English-shaped (one three-letter word keeps posing as THE), the alphabet was scrambled rather than shifted, and it is a substitution cryptogram. Atbash is the five-second middle test: reverse the alphabet and look.

The text is only a few words long. Can I still identify it?

Sometimes — by shape, not statistics. A short Base64 string still shows its padding; short Morse is still dots and dashes. But a short letter cipher under about 25 letters cannot be honestly identified by frequency, which is why the Identifier refuses rather than guesses. Context — where you found it, what the puzzle has used before — is worth more than maths at that length.

Why do so many samples start with THE?

Because English does. THE is the commonest word in the language, so its cipher shape — whatever the system — is usually the first pattern to surface, and recognising “the word that is probably THE” is the single highest-value habit this page teaches. Setters know it too; a sample with no THE-shaped word is often a Patristocrat or a text chosen to dodge it.

What if my text matches two rows of the clue table?

Then it is probably layered — an encoding outside, a cipher inside is the standard construction. Decode the outer layer with the Solver, then bring the result back here and ask the question again. Identification is iterative: each layer gets its own verdict.

Can symbols or emoji be a cipher?

Yes — symbol alphabets (Pigpen, Dancing Men, wingdings-style fonts, even emoji substitutions) are substitution ciphers drawn instead of written. Statistics cannot read them until you transcribe each distinct symbol into a letter; once transcribed, every test on this page applies unchanged.

Next steps