No accounts. Names stay in your browser.

Secret Code Generator

Turn a message into a secret code and back: Atbash, letter numbers, backwards words or a backwards message, with a key sheet to print.

0 letters
In code

The code

Code

Key sheet

A page with the Atbash and letter-number keys and lines for a secret message.

The short answer

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.

4 codesAtbash, numbers, two backwards
A = Zthe Atbash swap
A = 1letter numbers (A1Z26)
Key sheetto print

The four codes

CodeHow it worksHELLO FRIEND
AtbashEach letter swaps with its mirror: A–Z, B–Y, C–X …SVOOL UIRVMW
Letter numbersEach letter becomes its number, A = 1 to Z = 268-5-12-12-15 / 6-18-9-5-14-4
Backwards wordsEach word is spelled backwardsOLLEH DNEIRF
Backwards messageThe whole message runs backwardsDNEIRF 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