How to use the Caesar Cipher & ROT13
- 1
Type your message
Letters are shifted; numbers and punctuation stay.
- 2
Set the shift
3 is the classic Caesar shift.
- 3
Choose Encode or Decode
Or press ROT13.
- 4
Copy
Or open “Brute force” to crack an unknown shift.
Features
Encode and decode
Any shift from 1 to 25.
ROT13
Applying it twice returns the original.
Brute force
See all 25 shifts and pick the readable one.
Keeps case
Capitals stay capitals.
Numbers untouched
Digits, spaces and punctuation pass through.
Private
Your text stays in your browser — nothing is uploaded or stored online.
Who uses it — and for what
Cryptography lessons
The first cipher students learn.
Escape rooms
Classic clue format.
Geocaching
Hints hidden with ROT13.
Games and ARGs
Hidden messages.
How the Caesar cipher works
The Caesar cipher replaces each letter with the letter a fixed number of places further along the alphabet, wrapping from Z back to A. With a shift of 3 — the one Julius Caesar reportedly used — A becomes D, B becomes E and “HELLO” becomes “KHOOR”. Decoding shifts back by the same amount. Upper and lower case are kept, and numbers, spaces and punctuation pass through unchanged.
ROT13 is the special case with a shift of 13. Because the alphabet has 26 letters, applying ROT13 twice returns the original text, so the same button both hides and reveals — that’s why forums use it for spoilers and puzzle answers.
Cracking a Caesar cipher
With only 25 possible shifts, the cipher is trivial to break: open “Brute force” to see every shift at once and read the one that makes sense. Frequency analysis works too — E is the most common letter in English, so the most frequent letter in a long message is probably E. The Caesar cipher is great for teaching cryptography, escape rooms and geocaches, but never use it to protect real secrets; use modern encryption such as AES instead.
From Caesar to modern encryption
The Caesar cipher is a substitution cipher with only 25 keys, so anyone can try them all in seconds. The Vigenère cipher improved on it with a keyword, and modern encryption like AES uses keys so large that trying every one would take longer than the age of the universe. Use Caesar for fun and learning — for real secrets use proper encryption and strong passwords from the Password Generator.
Classic ciphers that came after Caesar
| Cipher | Idea | Weakness |
|---|---|---|
| Caesar | Shift every letter the same amount | Only 25 keys — try them all |
| Atbash | Reverse the alphabet (A↔Z) | Only one key |
| Substitution | Any letter can map to any other | Letter frequencies |
| Vigenère | Different Caesar shift per letter, from a keyword | Repeating key length can be found |
| One-time pad | Random key as long as the message, never reused | Unbreakable, but hard to share keys |
Caesar ciphers in puzzles and games
Escape rooms, geocaches, treasure hunts and puzzle books often hide clues with a Caesar shift because it is easy to solve once you spot it. Online, ROT13 is used to hide spoilers and puzzle answers in plain sight — anyone can decode it, but nobody reads it by accident. For classroom activities, a cipher wheel made of two paper circles is a fun way to encrypt by hand; this tool lets you check the answers instantly.
Never use it to protect real secrets
The Caesar cipher has only 25 possible keys, so anyone can break it in seconds — this tool’s “try all shifts” feature does exactly that. For passwords, private files and messages, use modern encryption such as AES (see the AES Encryption tool) or end-to-end encrypted messaging apps.
Worked examples
Shift 3
“Meet me at 5 PM” → Phhw ph dw 5 SP — the 5 is unchanged. Decoding with shift 3 gives the original back.
ROT13
“Hello World” → Uryyb Jbeyq
Cracking an unknown message
“Wkh fdnh lv d olh” in the brute-force table: −1 gives “Vjg ecmg ku c nkg”, −2 “Uif dblf jt b mjf”, and −3 “The cake is a lie” — the only readable line.
Frequency analysis by hand
In a long English ciphertext the most common letter usually stands for E. If the commonest letter is H, the shift is probably 3 (E → H).
Pro tips
- In long messages, the most common letter usually stands for E.
- A shift of 13 encodes and decodes with the same operation.
Glossary
- Cipher
- A method of encrypting text.
- Shift / key
- How many places each letter moves.
- Brute force
- Trying every possible key.
Frequently asked questions
What shift did Caesar use?
Suetonius wrote that Julius Caesar used a shift of three.
Is ROT13 secure?
No. It only hides text from a casual glance.
Does it work with numbers?
Digits are left unchanged; only the letters A–Z are shifted.
Does it shift Hindi letters?
No — only A–Z and a–z are shifted.
What shift did Julius Caesar use?
According to the Roman historian Suetonius, a shift of three.
Does it change numbers and punctuation?
Only letters are shifted; spaces, digits and punctuation stay as they are.
Last updated 2026-11-21 · Built by Vinayak Agarwal · Part of Text & Writing (36 tools)