Caesar Cipher
Encrypt and decrypt text with a Caesar shift or ROT13, or crack an unknown shift by ranking all 25 possibilities against English letter frequencies.
Processed locally in your browser — nothing is uploaded.
Caesar Cipher
0 characters
PlainABCDEFGHIJKLMNOPQRSTUVWXYZ
CipherDEFGHIJKLMNOPQRSTUVWXYZABC
Ciphertext
Output appears here…About Caesar Cipher
A Caesar cipher replaces each letter with the one a fixed number of places further along the alphabet, wrapping from Z back to A. With a shift of 3, A becomes D, B becomes E, and X becomes A. Decoding moves every letter back by the same amount. The tool keeps upper and lower case as they were and leaves everything that isn't a letter A–Z alone: digits, spaces, punctuation, accented letters such as é or ñ, other scripts, and emoji come through unchanged.
Any whole number works as the shift. Negative shifts move letters backwards, and shifts of 26 or more wrap around, so 29 is the same as 3 and −3 is the same as 23. The alphabet strip under the shift shows exactly which letter each one becomes. ROT13 is the shift of 13: since it's half the alphabet, applying it twice gives back the original text, so encoding and decoding are the same operation.
Crack is for ciphertext whose shift you don't know. A Caesar cipher has only 25 useful keys, so the tool tries every one and ranks the results by a chi-squared test: it counts how often each letter appears in a candidate and measures how far those counts are from the letter frequencies of typical English. The candidate closest to English goes on top as the best guess, and every other shift is listed below it with its score, so you can pick another if the text isn't English or the guess is wrong.
Common uses
- Solve a Caesar or ROT13 puzzle in a geocache, escape room, ARG, or puzzle hunt
- Decode ROT13 spoilers and punchlines in forum posts
- Teach or learn how substitution ciphers work, and why they're easy to break
- Check your working on a cryptography homework exercise
- Write a short secret message for a treasure hunt or a classroom activity
Example
Input
Veni, vidi, vici.
Output
Yhql, ylgl, ylfl.
Encoded with a shift of 3, the shift Suetonius says Julius Caesar used. The comma, full stop, and spaces are left as they are.
Limitations
- Only the 26 letters of the basic Latin alphabet are shifted; accented letters and other alphabets are left untouched rather than shifted within their own alphabet
- Crack mode ranks candidates against English letter frequencies, so it's less reliable for other languages; the full list still lets you spot the right one by eye
- Short messages have too few letters for frequency analysis to be trustworthy, and the tool says so when there are fewer than 20
- A Caesar cipher offers no real security; don't use it to protect anything that matters
Frequently asked questions
How do I decode a Caesar cipher without knowing the shift?
Switch to Crack and paste the ciphertext. The tool decodes it with all 25 possible shifts and ranks the results by how closely their letter frequencies match English, putting the most likely plaintext on top as the best guess. Every other shift is listed below it, and Decode on any row switches to Decode mode with that shift.
What is ROT13?
ROT13 is a Caesar cipher with a shift of 13. Because 13 is half of 26, shifting twice brings every letter back to where it started, so the same operation both encodes and decodes. It has long been used online to hide spoilers, puzzle answers, and punchlines from a casual glance, not to keep anything secret.
What shift did Julius Caesar use?
According to the Roman historian Suetonius, Caesar wrote confidential letters by replacing each letter with the one three places later in the alphabet, so A became D. That's why a shift of 3 is called the Caesar shift and is this tool's default.
Is the Caesar cipher secure?
No. There are only 25 possible keys, so anyone can try them all in seconds, and frequency analysis picks out the right one automatically, which is exactly what Crack mode does. Use it for puzzles and teaching, and use real encryption for anything private.
What happens to numbers, punctuation, and accented letters?
They're left exactly as they are. Only the letters A–Z are shifted, in upper and lower case; digits, spaces, punctuation, accented letters like é, other alphabets, and emoji pass through unchanged, so the ciphertext keeps the shape of the original message.
Is my text sent anywhere?
No. Encoding, decoding, and cracking all run in your browser, so nothing you type leaves your device.