Caesar Cipher Decoder & Encoder
Decode or encode text using the Caesar cipher (ROT-N). Shift letters by any amount, try all 26 rotations with brute force, or use the popular ROT13 encoding.
What is the Caesar Cipher?
The Caesar cipher is one of the oldest and simplest encryption techniques, named after Julius Caesar who reportedly used it to protect military messages. It's a type of substitution cipher where each letter in the plaintext is shifted a fixed number of positions down the alphabet.
For example, with a shift of 3 (the classic Caesar cipher), A becomes D, B becomes E, C becomes F, and so on. When you reach the end of the alphabet, it wraps around: X becomes A, Y becomes B, Z becomes C.
How to Use This Caesar Cipher Tool
Our Caesar cipher decoder and encoder offers three modes to help you work with encrypted text:
- Decode Mode: Enter ciphertext and specify the shift amount to reveal the original message. If you know the text was encoded with ROT13, set the shift to 13.
- Encode Mode: Convert your plaintext into ciphertext using any shift value from 0 to 25.
- Brute Force Mode: Don't know the shift value? This mode shows all 26 possible rotations at once, making it easy to spot the readable result.
Caesar Cipher in Geocaching
The Caesar cipher is one of the most common codes used in geocaching puzzle caches. Cache owners often use it because it's simple enough to solve but adds an element of puzzle-solving to the hunt. You might encounter Caesar-encoded text in:
- Cache descriptions that hide the actual coordinates
- Hints on geocaching.com (which uses ROT13 by default)
- Multi-cache waypoint clues
- Mystery cache puzzles
Tip: If you see text on a cache page that looks like gibberish but maintains word structure (spaces and punctuation intact), try the brute force mode to check all rotations.
ROT13: The Most Common Variant
ROT13 is a special case of the Caesar cipher with a shift of 13. Since there are 26 letters in the English alphabet, ROT13 has a unique property: applying it twice returns the original text. This makes it "self-inverse" - the same operation encodes and decodes.
Geocaching.com uses ROT13 for all cache hints by default, which is why ROT13 decoding is essential for any geocacher. Our tool makes this instant with the "ROT13" quick button.
Breaking the Caesar Cipher
The Caesar cipher is considered cryptographically weak because there are only 25 possible shifts to try (a shift of 0 or 26 gives the original text). This is why our brute force mode is so effective - you can see all possibilities at once.
For longer texts, you can also use frequency analysis: in English, the most common letter is E, followed by T, A, O, I, N. If you analyze which letter appears most frequently in the ciphertext and assume it represents E, you can calculate the likely shift value.
Example Encryption
Let's encode "HELLO" with a shift of 3:
- H + 3 = K
- E + 3 = H
- L + 3 = O
- L + 3 = O
- O + 3 = R
Result: KHOOR