Make your own › Cryptogram maker › Guide
Make your own cryptogram maker
You don't need to know how to code. You describe each part to a free AI assistant such as Claude, ChatGPT or Gemini, paste what it writes into a file, and open it in your browser. Want to see the finished one first? Try the cryptogram maker.
Your own cryptogram generator
You'll describe it to a free AI assistant, paste what it writes into a file, and open it in your browser. No coding needed.
Build it in five steps
Step 1 gives you a simple version that works, and each step after it adds more. Yours will look a bit different from the one above, because the AI writes its own version each time.
Ask for the cryptogram maker
Copy this prompt into your AI assistant:
Copy this promptI don't know how to code. Please make me a cryptogram maker that runs in a web browser. Requirements: - ONE single HTML file (HTML, CSS and JavaScript together), no external libraries, no internet needed. I will save it and double-click it. - A box where I type a quote or message, and a "Make puzzle" button. - Make a random secret code where every letter of the alphabet is swapped for a different letter, and no letter stays as itself. Leave spaces and punctuation as they are. - Show the coded message with each code letter in small grey text, and an empty box above it to type my guess. - When I type a guess in one box, fill the same guess into every box with the same code letter. - When everything is right, show a well done message. Please give me the complete file in one code block, then tell me in simple steps how to save and open it.
Copy the code, paste it into your text editor and save it as cryptogram.html. Double-click it, type a short message and press Make puzzle.
Add hints and checking
Copy this promptThat works, thank you. Please add: - A choice of how many letters to give away at the start: 4, 2 or none. Give away the letters used most often in the message, and show them in blue so they can't be changed. - A "Check" button that turns wrong guesses red. - A "Hint" button that fills in one correct letter. - If I use the same guess for two different code letters, show both in orange. Send me the complete updated file.
Always ask for the complete file. Replace everything in cryptogram.html, save, and refresh the tab (F5 or Cmd+R).Add a number code for kids
Copy this promptPlease add a choice between a letter code and a number code. In the number code, each letter is swapped for a random number from 1 to 26 instead of a letter, which younger children find easier to read. Send me the complete updated file.
Make it printable
Copy this promptPlease add a "Print" button. Print the title, a line of instructions and the coded message in black and white on one A4 page, with an empty line above each code letter for writing the answer and the given letters filled in. Underneath, add a key table with every code used in the puzzle and an empty box below each one. Put the answer and the full key on a second page. Send me the complete updated file.
Add ready-made movies, bands and songs
Copy this promptPlease add four buttons that pick something at random and make the puzzle straight away: Movies, Bands, Christmas songs and TV shows, with at least 20 famous ones each, and an International / UK switch above them that swaps in a UK list for each category. Set the title to match, such as "Guess the movie". Also add an optional "Who said it" box for my own quotes: don't put the name in the code, just show it under the puzzle once it's solved. Send me the complete updated file.
Quick fixes
A letter stands for itself
That makes it too easy. Ask the AI: "Keep making new codes until no letter is swapped for itself."
Typing a new letter doesn't replace the old one
Ask the AI to "select the box's contents when I click it, and always keep only the last letter I typed".
The keyboard doesn't appear on a tablet
Ask the AI to "use a real text input for every letter box, so tapping one opens the on-screen keyboard".
Long words run off the edge on a phone
Ask the AI to "make the letter boxes shrink on small screens and let words wrap onto the next line".
It opens as text
Re-save as plain text with exactly .html at the end, not .txt.
Twist it into something else
Secret message cards
a coded birthday or Christmas message to print inside a card
Escape room clue
the answer is the code to the next lock
Pigpen or emoji cipher
swap letters for symbols or emoji instead
Caesar cipher wheel
every letter shifts along the alphabet by the same amount
Daily quote puzzle
a new quote each day, the same for everyone, with a streak
Spy school
teach kids how codes work, then let them write their own