Caesar Cipher Encoder and Decoder
Encrypt or decrypt text with the Caesar cipher: every letter is shifted a fixed number of places in the alphabet.
How it works
With a shift of 3, A becomes D, B becomes E and so on, wrapping from Z back to A. “Attack at dawn” becomes “Dwwdfn dw gdzq”. Decoding shifts back by the same amount. A shift of 13 is ROT13, which is its own inverse.
There are only 25 possible keys, so the cipher is easy to break by trying them all or by letter frequency (E is the most common letter in English). Use it for puzzles and teaching, never for real secrets. Letters with accents, digits and symbols are left unchanged. For a stronger classical cipher, try the Vigenère cipher.
Frequently asked questions
How do I decode a Caesar cipher without the key?
Try all 25 shifts and pick the one that reads as words, or match the most frequent letter to E.
What is ROT13?
A Caesar cipher with a shift of 13; applying it twice returns the original text.
Is the Caesar cipher secure?
No. It can be broken in seconds and should only be used for fun or learning.
Related calculators
Updated on 2026-12-03