Caesar Cipher
Encode or decode a Caesar shift cipher with any shift from 1 to 25, and see all 25 shifts at once to crack an unknown one.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the Caesar Cipher does
Use this caesar cipher to encode or decode a Caesar shift cipher with any shift from 1 to 25, and see all 25 shifts at once to crack an unknown one. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for solving or setting a Caesar cipher puzzle. There are more free online tools on FreeToolStation.org.
How to use it
- Paste your text into the input box.
- Set the shift. Use the same number to encode and tick "Decode" to reverse it.
- If you do not know the shift, tick "Show all 25 shifts" and read down for the line that makes sense.
- Copy the result. Remember that this is a puzzle cipher and offers no real protection.
How it works
A Caesar cipher replaces each letter with one a fixed number of places along the alphabet, wrapping round from Z to A. The shift is the entire key, and since a shift of 0 or 26 changes nothing, there are just 25 useful keys. Suetonius records that Julius Caesar used a shift of three for military correspondence, which is why a shift of three is the default here.
It offers no security whatever. Twenty-five keys can be tried by hand in under a minute, which is what the "show all 25 shifts" option does — paste an intercepted message, tick the box, and read down the list for the line that makes sense. Even without trying every key, letter frequency gives it away immediately: in English, E is the commonest letter by a wide margin, so whichever letter dominates the ciphertext is almost certainly E shifted, and the shift falls out of that single observation.
ROT13 is the special case where the shift is 13. Because 13 is half of 26, applying it twice returns the original, so one function both encodes and decodes — which is why it became the Usenet convention for hiding spoilers. A shift of 13 here produces identical output to a dedicated ROT13 tool.
Only the 26 Latin letters move. Digits, spaces, punctuation and accented or non-Latin characters pass through untouched, which means the ciphertext keeps the word lengths and punctuation of the original. That alone leaks a great deal — word-length patterns and apostrophes are often enough to guess common words before any frequency analysis begins. Use this for puzzles, escape rooms and teaching; use real encryption for anything you need kept.
When to use it
- Solving or setting a Caesar cipher puzzle.
- Cracking an intercepted shift cipher by trying all 25 keys.
- Teaching substitution ciphers and frequency analysis.
- Hiding a spoiler or answer from casual reading.
Common mistakes to avoid
- Using it to protect anything real. Twenty-five keys is not a keyspace.
- Forgetting to negate the shift when decoding, which shifts the message further rather than back.
- Expecting numbers or punctuation to be hidden. Only letters are affected, and the rest of the structure survives intact.
Frequently asked questions
How do I decode a Caesar cipher without the key?
Try all 25 shifts and read the one that makes sense — tick the "show all 25" box and it is done in seconds. For longer messages, frequency analysis works too: the commonest ciphertext letter is usually E, and the gap between them gives the shift.
Is ROT13 a Caesar cipher?
Yes, with a shift of exactly 13. Because 13 is half of 26, encoding and decoding are the same operation, which is the whole reason it caught on for hiding spoilers.
Why is the Caesar cipher so weak?
Because the key is a single number between 1 and 25, which is about 4.6 bits of entropy. The letter frequencies of the plaintext also survive the shift unchanged, so even a long message gives its key away from statistics alone.