Caesar Cipher
Result
| Result |
|---|
Share on Social Media:
Caesar Cipher — Encode, Decode, and Crack the Classic Cipher
The Caesar cipher is where cryptography begins: shift every letter a fixed number of places and HELLO becomes KHOOR. This free tool encodes and decodes with any shift 1–25, includes one-click ROT13, and — when you don't know the key — brute-forces all 25 shifts at once so you can spot the readable answer. In-browser, no signup.
How the Shift Works
Plain: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Shift3: D E F G H I J K L M N O P Q R S T U V W X Y Z A B C
HELLO →(+3)→ KHOOR
KHOOR →(−3)→ HELLO
The alphabet wraps: X, Y, Z shift to A, B, C. Decoding is just shifting the other way by the same amount — or equivalently shifting forward by (26 − key).
ROT13: The Self-Reversing Special Case
Shift 13 is exactly half of 26, so applying it twice lands you back where you started — encode and decode are the identical operation. That symmetry made ROT13 the internet's standard for hiding spoilers, joke punchlines, and puzzle answers in plain sight: readers deliberately decode only when they want to. It hides nothing from anyone trying, which is the entire point.
Why It's Trivial to Break (and Why That's the Lesson)
Two attacks demolish it. Brute force: only 25 keys exist, so trying every shift takes moments — this tool does it in one view. Frequency analysis: E is the commonest English letter, so the most frequent ciphertext letter probably maps to E, revealing the shift without guessing. The Caesar cipher's weakness — a tiny keyspace and preserved letter patterns — is precisely what makes it the perfect first lesson in why modern encryption needs astronomically large keys.
Where It Still Shows Up
- Education — the entry point for teaching encryption, keys, and cryptanalysis.
- Puzzles and games — escape rooms, ARGs, and CTF warm-ups.
- Spoiler-hiding — ROT13 in forums and comments.
- Programming practice — a favorite beginner exercise in string manipulation and modular arithmetic.
Free and Instant
Encode, decode, or crack locally in your browser — no account, no limits. For real security, this is a museum piece; for learning and play, it's perfect.