Skip to content

Caesar Cipher

Encrypt and decrypt text with the Caesar cipher, including brute force mode for all 25 shifts

The Oldest Cipher Still in Use (Sort Of)

Julius Caesar supposedly used this trick to protect military dispatches around 50 BCE. Shift every letter by a fixed number of positions in the alphabet. With a shift of 3, A becomes D, B becomes E, Z wraps around to C. Simple, elegant, and completely insecure by modern standards.

But it’s still useful. Not for protecting secrets — for teaching how ciphers work, building puzzles, and solving CTF challenges where someone tossed a Caesar shift into the mix.

This tool gives you three modes: encrypt with a chosen shift, decrypt when you know the shift, and brute force when you don’t. Brute force just shows all 25 possible decryptions at once. You eyeball the list, find the one that’s readable English, and you’re done.

Why 25 Shifts (and Why That’s a Problem)

The English alphabet has 26 letters. A shift of 0 changes nothing, and a shift of 26 wraps all the way around — also changes nothing. So there are exactly 25 meaningful shifts.

That’s the entire key space. An attacker doesn’t even need a computer. They can write out all 25 possibilities by hand in a few minutes. Frequency analysis makes it even faster: in English, E is the most common letter. Find the most frequent letter in the ciphertext, assume it maps to E, and you’ve probably cracked it.

Compare that to AES-256, which has roughly 10^77 possible keys. The Caesar Cipher’s 25 keys aren’t even in the same galaxy. Use the AES Encrypt / Decrypt tool if you need actual security.

Putting It to Work

Encrypting: Pick a shift — let’s say 3. Type ATTACK AT DAWN. You get DWWDFN DW GDZQ. Numbers, spaces, and punctuation pass through untouched. Case is preserved, so lowercase stays lowercase.

Decrypting: You know the shift is 3. Paste in DWWDFN DW GDZQ, set shift to 3, hit decrypt. Back to ATTACK AT DAWN.

Brute forcing: You intercepted Gur nafjre vf 42 but don’t know the shift. Switch to brute force mode and scan the output. Shift 13 gives you The answer is 42 — that’s clearly the right one. (Shift 13 is actually ROT13, a special case with its own tool on Toolsvu.)

Where People Actually Use This

CTF competitions love Caesar Ciphers as warm-up challenges. You’ll find them in the early rounds of nearly every beginner CTF. The brute force mode here saves you from manually rotating letters on paper.

Escape rooms and puzzle games use them constantly. The limited key space means players can solve it without crypto knowledge, but it still feels like cracking a code.

Teaching cryptography starts here. Students encrypt messages, exchange them, try to crack each other’s ciphertexts. Then you ask: “Why was this easy to break?” That conversation about key space and frequency analysis leads directly into understanding why we need algorithms like AES.

Geocaching clues sometimes use Caesar shifts to encode coordinates or hints. Brute force mode handles those in seconds.

The ROT13 Encoder / Decoder on Toolsvu is a fixed-shift variant (always 13). Because 13 is half of 26, encoding and decoding are the same operation — a neat mathematical property that made it popular on early internet forums for hiding spoilers.

caesar cipher encrypt decrypt brute-force security

Related Tools

More in Security Tools