How to use Caesar Cipher
- Enter your text.
- Choose the shift — 3 for the classical Caesar, 13 for ROT13.
- To decode, apply the opposite shift, or 26 minus the original.
- If you do not know the shift, try each one and read for sense.
- Only A–Z and a–z shift; digits, punctuation, spaces and other scripts pass through unchanged.
- A shift of 13 is self-inverse: encoding twice returns the original.
- A shift of 26 (or 0) changes nothing.
How it works, and the one thing to remember
Pick a shift from 1 to 25. Each letter moves that many places, wrapping from Z back to A. Case is preserved and non-letters pass through untouched. Decoding is the same operation with the negative shift, so a message encoded with 5 is decoded with 21 — or with −5, which is the same thing. A shift of 13 is ROT13, the special case where encoding and decoding are identical because 13 is half of 26.
Why it falls immediately
There are only 25 possible keys, so brute force means trying all of them and reading which one makes sense — a second by hand, instantaneous by computer. Even without brute force, frequency analysis breaks it: E is the most common letter in English by a wide margin, so whichever letter appears most in the ciphertext is almost certainly E shifted, and the key follows from one observation. Al-Kindi described this attack in the ninth century, which makes the Caesar cipher securely broken for roughly 1,200 years.
Its place in the history of cryptography
The Caesar cipher is the ancestor of every substitution cipher, and the whole subsequent history is a response to its weaknesses. The Vigenère cipher uses a different shift per letter driven by a keyword, defeating simple frequency analysis for three centuries until Kasiski broke it in 1863. The Enigma machine is a mechanised substitution cipher whose wiring changed with every keypress. The modern descendant is the one-time pad: a random shift per character, never reused, which is the only cipher with a mathematical proof of unbreakability — and is impractical precisely because the key must be as long as the message.
What it is genuinely good for
Teaching, where it makes keys, ciphertext and cryptanalysis concrete in ten minutes. Puzzle hunts, escape rooms and capture-the-flag challenges, where a shifted string is a standard first layer. Spoiler hiding, usually as ROT13. Geocaching hints, which are conventionally ROT13 so you can choose whether to read them. It is a game, and an excellent one; it is not a security control.
Frequently asked questions
What is the Caesar cipher?
How do I decrypt a Caesar cipher without the key?
What shift did Caesar actually use?
Is the Caesar cipher secure?
How do we know nothing is uploaded? Test it yourself on the privacy proof page.