Caesar Cipher Tool
Encode and decode a Caesar shift cipher.
What would you like to do next?
Encode and decode a Caesar cipher
The Caesar cipher shifts every letter a fixed number of places along the alphabet, the technique attributed to Julius Caesar for his private messages. Set the shift, type your text, and the result updates as you go; to decode, use the matching shift in the opposite direction or its complement. ROT13 is just this cipher with a shift of thirteen. Letters wrap around from Z back to A, while digits and punctuation are left alone. The cipher runs entirely on your device.
Choosing a shift
Any value from 1 to 25 works. To undo a shift of n, apply a shift of 26 minus n, which brings the text back to the start.
Frequently asked questions
How is a Caesar cipher decoded?
Apply the complementary shift. If it was encoded with a shift of 4, decode with a shift of 22, since the two add up to 26.
Is the Caesar cipher safe to use?
No. With only 25 possible shifts it is trivial to break, so it is for learning and puzzles, not for protecting real information.