Choose a code and type your message. Atbash swaps each letter for its mirror in the alphabet (A and Z, B and Y), letter numbers write each letter as its place in the alphabet (A = 1, Z = 26), and the backwards codes reverse each word or the whole message.
The four codes
| Code | How it works | HELLO FRIEND |
|---|---|---|
| Atbash | Each letter swaps with its mirror: A–Z, B–Y, C–X … | SVOOL UIRVMW |
| Letter numbers | Each letter becomes its number, A = 1 to Z = 26 | 8-5-12-12-15 / 6-18-9-5-14-4 |
| Backwards words | Each word is spelled backwards | OLLEH DNEIRF |
| Backwards message | The whole message runs backwards | DNEIRF OLLEH |
Atbash and the backwards codes undo themselves: run the coded message through again to read it. For letter numbers, switch the direction to turn numbers back into letters; a slash separates the words.
Where Atbash comes from
Atbash began with the Hebrew alphabet, where the first letter swaps with the last and the second with the next-to-last; its name comes from those letter pairs (aleph–tav, bet–shin). Scholars at Oxford point to it in the Book of Jeremiah, where “Sheshach” decodes to Babel, meaning Babylon.
Ideas for class
- Escape-room locks: letter numbers turn a word into the digits of a lock code.
- Partner messages: one partner codes, the other decodes with the key sheet.
- Pattern spotting: ask students to work out the rule from a coded word before showing them the key.
Related guides
Your messages stay with you
Everything happens in your browser. What you type is kept in this browser’s storage so it’s there next time, and it’s never sent to us.
Questions
How do you make a secret code?
Choose a code, type your message and copy the coded version; the generator above does Atbash, letter numbers, backwards words and a backwards message. To let a partner read it, print the key sheet, which has the Atbash and letter-number keys.
How do you decode the Atbash cipher?
Swap each letter back with its mirror in the alphabet: Z becomes A, Y becomes B, X becomes C, and so on. Because the swap works the same both ways, you can also paste the coded message into the generator with Atbash chosen and read the plain message.
What is the A1Z26 cipher?
It’s the letter-number code: each letter is written as its place in the alphabet, from A = 1 to Z = 26, so HELLO becomes 8-5-12-12-15. To read one, choose letter numbers and switch the direction to Numbers → letters.
Final Takeaway
For a quick secret code, choose Atbash, which swaps each letter with its mirror in the alphabet, letter numbers from A = 1 to Z = 26, or one of the backwards codes. To decode Atbash or a backwards code, run the message through the same code again; for letter numbers, switch to Numbers → letters.
Print the key sheet when partners will decode each other’s messages, or hold it back and let students work out the rule from a coded word first.
Main Sources
- Oxford Humanities Division (2018). Crack the Code! Learn about the atbash cipher and how to crack it! University of Oxford.