Introduction
Need to create a cryptogram puzzle for your classroom, newsletter, or puzzle website? This cryptogram generator produces random simple substitution ciphers from any text you provide. Teachers, puzzle creators, and cryptography enthusiasts can generate puzzles with or without a seed, view the full substitution key, and produce puzzles that follow the classic cryptogram convention of no letter mapping to itself.
What this tool does
- Generates a cryptogram by applying a random simple substitution cipher to your text.
- Ensures no letter maps to itself, following the standard convention for cryptogram puzzles.
- Supports an optional seed for reproducible output, so the same text and seed always produce the same cryptogram.
- Displays the full substitution key (A-Z mapping) on demand, so you can provide hints or verify solutions.
- Preserves spaces, punctuation, and letter case from the original text.
How this tool works
Type or paste your text into the input field. The tool immediately generates a cryptogram by applying a random simple substitution cipher. Each letter is replaced by a different letter throughout the text, and no letter maps to itself. To make the output reproducible (for example, to share a specific puzzle with students), enter a seed in the seed field. The same text and seed will always produce the same cryptogram. Click Show Substitution Key to reveal the full A-to-Z letter mapping, which you can use to create answer keys or provide starter hints. The cryptogram updates instantly as you type.
How cryptogram generation works
A cryptogram is a type of puzzle that consists of a short piece of text encrypted with a simple substitution cipher, where each letter is replaced by a different letter. The solver's task is to recover the original text. Cryptograms have a long history: according to the American Antiquarian Society, Edgar Allan Poe helped popularize them through newspaper and magazine articles in 1839-1840, claiming to have solved all ciphers submitted by readers. The American Cryptogram Association was founded in 1930 to promote cryptogram solving as a hobby, originally focusing on monoalphabetic substitution ciphers called Aristocrats. Today, syndicated newspaper puzzles such as Cryptoquip (distributed by King Features, running in nearly 350 publications since 1995) and Celebrity Cipher (distributed by Andrew McMeel) continue this tradition. This generator creates a random permutation of the 26-letter alphabet and applies it as a substitution cipher. It enforces the constraint that no letter maps to itself, which is a standard rule in published cryptogram puzzles because it eliminates trivial mappings and makes the puzzle more interesting. When a seed is provided, the tool uses a deterministic pseudo-random number generator (mulberry32) seeded with the numeric value of the seed string, ensuring that the same seed always produces the same substitution. Solving a cryptogram typically involves frequency analysis (the most common cipher letter likely maps to E, the most common English letter), pattern recognition (one-letter words are usually A or I), and identifying common word structures.
How to use this tool
- Type or paste the text you want to encrypt into the input field. The cryptogram appears instantly in the output field.
- To make the puzzle reproducible, enter a seed in the seed field. The same text and seed always produce the same cryptogram.
- Leave the seed blank for a random substitution that changes each time you reload the page.
- Click Show Substitution Key to view the full letter mapping. Use this to create answer keys or provide hints.
- Copy the cryptogram and share it with your audience. The solver's goal is to figure out the original text from the substitution pattern.
Real-world examples
Creating a classroom puzzle
Input: "The quick brown fox jumps over the lazy dog." Seed: "classroom2026". The tool produces a deterministic cryptogram where each letter is consistently replaced. Students can use frequency analysis and word patterns to solve it. The teacher can share the seed privately to verify the solution.
Generating a Celebrity Cipher-style puzzle
Input: a famous quote such as "The only thing we have to fear is fear itself. - Franklin D. Roosevelt". The tool replaces each letter with a random substitute, preserving spaces and punctuation. The solver must identify the quote from the letter patterns and frequency distribution.
Reproducible puzzles with seeds
Input: "Hello World" with seed "test1" produces one specific cryptogram. The same input with seed "test2" produces a different cryptogram. Without a seed, each page load produces a new random substitution. Use seeds when you need to share a specific puzzle with multiple people.
Comparison with similar methods
| Method | Complexity | Typical use |
|---|---|---|
| Simple substitution (cryptogram) | O(n), single pass lookup | Puzzle creation, education, newspaper puzzles |
| Caesar cipher | O(n), fixed shift | Simple introduction to ciphers, only 25 possible keys |
| Vigenere cipher | O(n), keyword-based polyalphabetic | More complex than cryptograms, uses a repeating keyword |
| Playfair cipher | O(n), digraphic substitution | Pairs of letters substituted using a 5x5 square |
Limitations or considerations
This generator creates simple substitution ciphers only. It does not produce polyalphabetic ciphers, transposition ciphers, or homophonic ciphers. The cryptogram is not cryptographically secure and is intended for entertainment and education only. For very short texts (under 20 characters), the puzzle may be too easy to solve because there are few possible word patterns. For very long texts, frequency analysis makes the puzzle trivially solvable. The ideal cryptogram length is 30-100 characters.
Frequently asked questions
What makes a good cryptogram puzzle?
A good cryptogram is 30-100 characters long, uses a quote or saying that is recognizable once decoded, and contains enough common words and letter patterns to give the solver footholds. One-letter words (A or I), common two-letter words (OF, TO, IN), and the most frequent letter (likely E) are the standard starting points for solving.
Why does no letter map to itself?
In published cryptogram puzzles, the convention is that no letter maps to itself. If A mapped to A, the solver would immediately know that letter, which makes the puzzle less interesting. This tool enforces this rule by swapping any self-mapping with the next letter in the permutation.
Can I use the seed to share a specific puzzle?
Yes. Enter a seed and share it along with the cryptogram. Anyone who enters the same text and seed will get the same substitution. This is useful for classroom assignments, puzzle competitions, or publishing puzzles where you need to verify the solution later.
How do solvers approach a cryptogram?
Standard techniques include: identifying one-letter words (A or I), looking for apostrophes (contractions like CAN'T or IT'S), checking double letters, counting letter frequencies (E is most common in English), and guessing common words like THE and AND. Frank Longo, creator of Cryptoquip, recommends starting with letter patterns and frequency analysis.
Conclusion
This cryptogram generator provides a fast, browser-based way to create simple substitution cipher puzzles from any text. With optional seeds for reproducibility and a viewable substitution key for answer verification, it is well suited for teachers, puzzle creators, and cryptography enthusiasts. For solving existing cryptograms, pair this tool with the Cryptogram Solver on this site.