Have a secret message but don’t know how to read it? Paste it into the cipher decoder above. It tries common ciphers and codes, then puts the answers that look most like English first.
If you already know the cipher, tap Choose a cipher. You can decode a message or write your own. There are also 20 puzzles with answers and a free printable cheat sheet.
Download the cheat sheet and 20 puzzles (free PDF)
How to Use the Cipher Decoder
- Paste your code under Find the cipher. Keep any spaces, dashes and slashes.
- Read the results. “Strong match” means one answer is clearly ahead. “Possible match” means you should check whether it makes sense.
- Try Search deeper if nothing fits. This option appears when your code has at least 60 letters and no strong match.
- Choose a cipher if you know which one was used or have its secret word.
How to Identify a Cipher
A cipher identifier looks for clues. You can check for them yourself too:
- Only dots and dashes: probably Morse code. Dots without dashes could be tap code.
- Only 0 and 1: probably binary.
- Numbers from 1 to 26: try A1Z26.
- Pairs that use only the numbers 1 to 5: try a Polybius square or tap code.
- Pairs that use 0–9 and A–F: try hex.
- A mix of capital letters, small letters and numbers, perhaps ending in =: try Base64.
- Lots of E, T and A, but no real words: the letters may be in the wrong order. Try rail fence, scytale or backwards text.
- Lots of unusual letters, such as Q, X and Z: the letters may have been swapped. Try Caesar, Atbash or a letter swap.
- No letter stands out in a long message: it could be a Vigenère cipher.
These are clues, not proof. A short code may fit more than one cipher.
Ciphers and Codes You Can Solve
Caesar Cipher Translator
Every letter moves the same number of places. With a shift of 3, A becomes D. The Caesar cipher translator can show all 25 shifts, so you don’t need to know the right one. Shift 13 is also called ROT13.
Atbash Cipher Decoder
The alphabet is flipped, so A becomes Z and B becomes Y. Encoding and decoding work the same way. Open the Atbash cipher decoder.
Substitution Cipher Decoder
In a substitution cipher, each letter always stands for the same other letter. If you know the keyword, use the keyword cipher decoder. If the swaps are random, paste the code under Find the cipher and tap Search deeper.
Long messages work much better. We tested 20 random letter swaps of everyday English sentences at each length. The tool got every letter right in 8 messages at about 100 letters, 17 at about 150 and all 20 at about 200. Names and rare letters are the hardest to solve.
Vigenère Cipher Decoder
A secret word gives each letter its own shift. If you know the word, use the Vigenère decoder. If you don’t, Search deeper looks for keys with 2 to 12 letters. Messages with about 80 letters or more work best, and longer keys may need more.
Rail Fence and Scytale Decoders
These ciphers keep the same letters but change their order. The rail fence decoder follows a zigzag, while the scytale decoder uses rows and columns. Find the cipher tries every size from 2 to 10.
Number, Morse and Computer Codes
You can also use A1Z26, Polybius square, tap code, Morse code, binary, hex, Base64 and backwards text.
Code Chart for the Puzzles
Use this chart for the A1Z26 (No.), Atbash, Morse, Polybius square (Square) and hex puzzles. The hex column shows capital letters.
| A–Z | No. | Atbash | Morse | Square | Hex |
|---|---|---|---|---|---|
| A | 1 | Z | .- | 11 | 41 |
| B | 2 | Y | -... | 12 | 42 |
| C | 3 | X | -.-. | 13 | 43 |
| D | 4 | W | -.. | 14 | 44 |
| E | 5 | V | . | 15 | 45 |
| F | 6 | U | ..-. | 21 | 46 |
| G | 7 | T | --. | 22 | 47 |
| H | 8 | S | .... | 23 | 48 |
| I | 9 | R | .. | 24 | 49 |
| J | 10 | Q | .--- | 24 | 4A |
| K | 11 | P | -.- | 25 | 4B |
| L | 12 | O | .-.. | 31 | 4C |
| M | 13 | N | -- | 32 | 4D |
| N | 14 | M | -. | 33 | 4E |
| O | 15 | L | --- | 34 | 4F |
| P | 16 | K | .--. | 35 | 50 |
| Q | 17 | J | --.- | 41 | 51 |
| R | 18 | I | .-. | 42 | 52 |
| S | 19 | H | ... | 43 | 53 |
| T | 20 | G | - | 44 | 54 |
| U | 21 | F | ..- | 45 | 55 |
| V | 22 | E | ...- | 51 | 56 |
| W | 23 | D | .-- | 52 | 57 |
| X | 24 | C | -..- | 53 | 58 |
| Y | 25 | B | -.-- | 54 | 59 |
| Z | 26 | A | --.. | 55 | 5A |
Binary tip: each capital letter has 8 digits and starts with 010. The last five digits give its place in the alphabet, with values of 16, 8, 4, 2 and 1. For example, A is 01000001, which gives 1, and B is 01000010, which gives 2.
Try 20 Cipher Puzzles
Try each puzzle before checking it with the decoder. The easy puzzles name the cipher. In the last set, you’ll need to work out most of them yourself. Use the decoder for puzzle 19, because Base64 is hard to solve by hand.
Easy Cipher Puzzles (1–7)
1. Caesar cipher, shift 3. Decode: ILQG WKH KLGGHQ NHB
Show answer
FIND THE HIDDEN KEY – Caesar cipher, shift 3.
2. Atbash cipher. Decode: LKVM GSV IVW WLLI
Show answer
OPEN THE RED DOOR – Atbash cipher.
3. A1Z26 number code. Decode: 4-18-1-7-15-14
Show answer
DRAGON – A1Z26. Keep this word for puzzle 20.
4. Backwards text. Decode: NWOD EDISPU SI PAM EHT
Show answer
THE MAP IS UPSIDE DOWN – Backwards text.

5. Morse code. Decode: .-. .- .. -. -... --- .--
Show answer
RAINBOW – Morse code.
6. Binary code. Decode: 01011001 01000101 01010011
Show answer
YES – Binary code.
7. Caesar cipher, shift 1. Decode: XFMM EPOF
Show answer
WELL DONE – Caesar cipher, shift 1.

Medium Cipher Puzzles (8–14)
Each clue names the cipher and gives any secret word you need. In puzzle 8, you need to find the shift.
8. Caesar cipher with a secret shift. The one-letter word is A. Decode: SLHCL H SPNOA VU AVUPNOA
Show answer
LEAVE A LIGHT ON TONIGHT – Caesar cipher, shift 7.
9. Polybius square. Decode: 43 35 11 13 15 43 23 24 35
Show answer
SPACESHIP – Polybius square. I and J share a box.
10. Rail fence cipher with 3 rails. Decode: TNREDCKHASEIBHNTELCEWSIHO
Show answer
THE ANSWER IS BEHIND THE CLOCK – Rail fence cipher, 3 rails.
11. Scytale cipher with 5 letters in each row. Decode: LNTUOSHEOIEBKDBOIELX
Show answer
LOOK INSIDE THE BLUE BOX – Scytale cipher, 5 letters in each row.
12. Vigenère cipher. The secret word is CAT. Decode: YAMEH HWT YQR MJE MTAI
Show answer
WATCH OUT FOR THE TRAP – Vigenère cipher, key CAT.
13. Keyword cipher. The keyword is PLANET. Decode: SCE QKAGES HEPVER PS EDBCS
Show answer
THE ROCKET LEAVES AT EIGHT – Keyword cipher, keyword PLANET.
14. A1Z26 number code with three words. Decode: 20-21-18-14 / 2-1-3-11 / 14-15-23
Show answer
TURN BACK NOW – A1Z26 number code.

Mystery Cipher Puzzles (15–20)
The clues in puzzles 15–19 don’t name the cipher. You’ll need an earlier answer to solve puzzle 20.
15. Every letter moves the same distance. Decode: JUB NGR GUR YNFG FYVPR BS CVMMN
Show answer
WHO ATE THE LAST SLICE OF PIZZA – Caesar cipher, shift 13 (ROT13).
16. Think of a mirror. Decode: VEVIB KFAAOV SZH Z HLOFGRLM
Show answer
EVERY PUZZLE HAS A SOLUTION – Atbash cipher.
17. These are the right letters, but they zigzagged into the wrong order. Decode: NRMCIETUSIGRDLVRSALNOOEETIC
Show answer
NEVER TRUST A SMILING CROCODILE – Rail fence cipher, 4 rails.
18. Each pair of characters is one letter. Decode: 47 45 4E 49 55 53
Show answer
GENIUS – Hex code.
19. Computers often use this code. Capital and small letters matter. Decode: WW91IGNyYWNrZWQgaXQ=
Show answer
You cracked it – Base64.
20. Vigenère cipher. The secret word is the answer to puzzle 3. Decode: WYE ZFRDJUXS JDJ WOHU BFU GZY DCOTU
Show answer
THE TREASURE WAS WITH YOU ALL ALONG – Vigenère cipher, key DRAGON.

Where Do These Ciphers Come From?
- Caesar: the Roman writer Suetonius described Julius Caesar writing D in place of A, which is a shift of 3.
- Atbash: it was first used with the Hebrew alphabet. Its name comes from the letters it swaps: the first with the last, and the second with the second-to-last.
- Vigenère: Giovan Battista Bellaso described this kind of cipher in 1553. It was later named after Blaise de Vigenère.
Are These Ciphers Safe for Real Secrets?
No. They’re fun for games, lessons, treasure hunts and escape rooms, but they can be broken. Never use them to protect passwords or private information. Morse, binary, hex and Base64 only change how a message is written, so anyone can read it without a key.
More Codes and Puzzles
- 30 Cipher Puzzles – Atbash, Caesar, A1Z26 and scytale
- Tap Code Translator – hear your message as taps
- Pigpen Cipher – letters become symbols
- 50 Treasure Hunt Riddles – with printable clue cards
- Word Search Maker – make your own and download a PDF
- 20 Logic Puzzles with Answers
- 12 Star Battle Puzzles – play online or print
- Mystery Riddles with Answers
- 40 Number Riddles with Answers
Frequently Asked Questions
How do I find out which cipher was used?
Paste the code under Find the cipher. The decoder tries common ciphers and puts the answers that look most like English first. Longer messages usually give better results.
Can it decode a message without the key?
Often, yes. It tries every Caesar shift, plus rail fence and scytale sizes from 2 to 10. For codes with at least 60 letters, Search deeper can also look for a Vigenère key or random letter swaps. It won’t solve every message.
Why can’t the decoder solve my code?
The code may be too short, contain a mistake, use another cipher or combine several ciphers. Find the cipher only recognises English, but Choose a cipher can decode some other languages. Ciphers that move or swap letters use the English alphabet, A to Z.
Is it spelled cipher or cypher?
Both spellings are used. “Cipher” is more common, and a cypher decoder is the same thing.
Can it decode pigpen cipher or pictures?
No, you need to type or paste the code as text. Our Pigpen Cipher page has a key for reading the symbols.
Is my message saved?
No. The decoder works in your browser, and your message isn’t sent to our website.