Text
Caesar Cipher Generator
A Caesar cipher generator shifts every letter in a message forward or backward through the alphabet by a fixed number of positions, wrapping from z back to a. It's the oldest substitution cipher on record, reportedly used by Julius Caesar to send military orders, and it remains the standard first cipher taught in any cryptography course because the mechanics are simple enough to do by hand yet clear enough to demonstrate exactly how substitution ciphers can be broken. This tool handles all three directions you'd actually need. Encode mode shifts your plaintext forward by the chosen amount and shows the letter-by-letter alphabet mapping alongside the result. Decode mode reverses that same shift when you already know the key. All-shifts mode is the useful one when you don't know the key at all — it runs every possible shift from 1 to 25 in one pass and lists each candidate decoding, so you can scan the list and spot the one that reads as real words. Case and punctuation are preserved throughout, so a decoded sentence still looks like a sentence rather than a wall of lowercase letters.
How to use
- Choose your options above
- Click Generate
- Copy your result
Detailed instructions
- Paste or type the text you want to encode, decode, or crack into the Text field.
- Set the Shift value from 1 to 25 if you know the key being used, or leave it at the default of 3.
- Choose 'Encode' to shift your plaintext forward, or 'Decode' to reverse a known shift back to plaintext.
- Choose 'All shifts' instead if you have ciphertext but don't know the key, and let it list all 25 possibilities.
- Scan the numbered results for the one that reads as real words, then note that shift number for future messages.
- Copy the result, or reference the alphabet map line to see exactly which letter maps to which.
Use Cases
- •A student checks their by-hand Caesar cipher homework answer by entering the same shift and comparing outputs
- •An escape room designer encodes a clue with a fixed shift and prints the alphabet map as a decoder wheel prop
- •An ARG or puzzle hunt creator hides a shifted message in a document for players to crack without stating the key
- •A puzzle solver pastes an intercepted cryptogram into all-shifts mode to scan all 25 decodings for the one that makes sense
- •A teacher demonstrates in class how quickly a Caesar cipher falls apart by projecting all 25 shifts of the same ciphertext at once
Tips
- →When cracking an unknown cipher, scan all-shifts results for common short words like 'the' or 'and' first — they jump out fast and point straight to the right shift.
- →Encode with the same shift you plan to decode with later; the shift number is effectively the password, so share it separately from the ciphertext.
- →Longer ciphertext is easier to crack by eye in all-shifts mode because patterns and real words become obvious faster than in a short phrase.
- →For escape rooms, print the alphabet map alongside the puzzle as a decoder ring reference instead of making players brute-force all 25 shifts.
- →Remember a Caesar cipher only shifts letters — if your message needs to hide numbers or symbols too, this isn't the right tool.
- →Use shift 13 (ROT13) for lightweight text obfuscation like hiding spoilers, since it's its own reverse and easy to remember.
FAQ
how do I decode a message when I don't know the shift
Switch the mode dropdown to 'all-shifts' and paste in the ciphertext. The tool runs all 25 possible shifts and lists every candidate plaintext, numbered by shift value, so you can read down the list and pick out the one that forms real words. This is the same brute-force approach used to crack Caesar ciphers by hand, just instant.
what shift number did the real Julius Caesar use
Historical accounts credit Caesar with a shift of 3, which is why this tool defaults to that value. Shift 3 turns A into D, B into E, and so on — simple enough to compute in your head, which mattered when messages were relayed by couriers rather than encrypted electronically.
does the cipher work on numbers and punctuation
No, and that's intentional. Only letters A-Z and a-z get shifted; digits, spaces, punctuation, and any other characters pass through unchanged. This keeps decoded text readable as real sentences instead of scrambling formatting that was never part of the original substitution.
Is a Caesar cipher actually secure for anything important?
No — with only 25 possible shifts, any Caesar cipher can be broken in seconds by brute force, which is exactly what all-shifts mode demonstrates. Treat it strictly as a puzzle, teaching tool, or lightweight obfuscation for game content, never as protection for anything that actually needs to stay private.
Why does my decoded text still look scrambled?
You likely used the wrong shift value — decoding requires the exact same number that was used to encode, applied in reverse. If you don't know the original shift, switch to all-shifts mode instead of guessing one number at a time; it tries every option and shows you all 25 results side by side.
You might also like
Popular tools from other categories that share themes with this one.
Try these next
More free tools from other corners of the catalog, picked by shared themes.