Caesar Cipher Translator & Decoder
Encode a message with a Caesar shift cipher, decode ciphertext with a known key, apply ROT13 in one tap, or reveal all 25 possible shifts at once when you do not know the key.
Every shift from 1 to 25 works live in your browser while preserving uppercase, lowercase, punctuation, numbers and emoji. Unlike single-direction pages, you can crack mystery ciphertext immediately with the built-in 25-shift brute-force panel.
Classic Caesar Cipher Key (Shift +3)
Every letter shifted forward by three positions, the classic key attributed to Julius Caesar. To decode a +3 message, read each pair in reverse.
- A becomes D
- B becomes E
- C becomes F
- D becomes G
- E becomes H
- F becomes I
- G becomes J
- H becomes K
- I becomes L
- J becomes M
- K becomes N
- L becomes O
- M becomes P
- N becomes Q
- O becomes R
- P becomes S
- Q becomes T
- R becomes U
- S becomes V
- T becomes W
- U becomes X
- V becomes Y
- W becomes Z
- X becomes A
- Y becomes B
- Z becomes C
Caesar Cipher & ROT13 Examples
Rows below show classic shift +3 encoding, shift −3 decoding, and ROT13 (shift 13).
| Input | Output | What it shows |
|---|---|---|
| Hello, World! | Khoor, Zruog! | Classic Caesar shift +3 moves every letter three places forward: H→K, e→h, l→o. |
| Khoor, Zruog! | Hello, World! | Decoding with shift −3 brings the original sentence straight back. |
| Veni, vidi, vici | Yhql, ylgl, ylfl | Punctuation, spaces and capital letters stay exactly where they were. |
| Hello, World! | Uryyb, Jbeyq! | ROT13 shifts by 13 places — half the 26-letter alphabet, so running it twice decodes itself. |
| Uryyb, Jbeyq! | Hello, World! | Applying ROT13 to ROT13 ciphertext returns the exact plaintext. |
| Attack at 09:00! | Dwwdfn dw 09:00! | Digits and punctuation are outside A–Z and pass through untouched. |
How the Caesar Shift Cipher Works
Named after Julius Caesar, the shift cipher rotates the 26-letter Latin alphabet by a fixed number of positions.
Alphabet rotation modulo 26
With shift +3, A becomes D, B becomes E, and the end of the alphabet wraps around: X→A, Y→B, Z→C. Decoding simply shifts backwards by the same number.
Why ROT13 needs no decode button
Because the English alphabet has 26 letters, shifting forward by 13 and shifting backward by 13 land on the exact same letter. ROT13 is its own inverse.
Cracking an unknown key in seconds
A Caesar cipher only has 25 non-trivial shifts. Opening "Try all 25 shifts" shows every possible decoding at once so the readable English sentence jumps right out.
Case and symbols stay put
Uppercase letters shift within A–Z, lowercase letters shift within a–z, and spaces, numbers, punctuation and emoji stay untouched.
Caesar Cipher vs ROT13, Atbash and A1Z26
Compare four classic letter codes on the same phrase.
Shared input: Secret note
| Transformation | Result | Reach for it when |
|---|---|---|
| Caesar (+3) | Vhfuhw qrwh | You want a classic shifted alphabet with a chosen numeric key. |
| ROT13 (+13) | Frperg abgr | You want a self-reversing shift used for forum spoilers and puzzle hints. |
| Atbash | Hvxivg mlgv | You want A↔Z mirror substitution with no shift number. |
| Letters to numbers | 19-5-3-18-5-20 14-15-20-5 | You want numbers 1–26 instead of letters. |
What the Caesar Cipher Leaves Alone
Shift ciphers operate strictly on the 26 plain Latin letters.
Accented letters
Precomposed accented characters like é stay as typed. An accent stored as a separate combining mark stays attached to its shifted base letter.
Digits and punctuation
Numbers (0–9), spaces, line breaks and symbols are not shifted so timestamps, prices and sentence structure remain intact.
Other alphabets and emoji
Greek, Cyrillic, Arabic, CJK characters and emoji pass through unmodified.
Not for real security
Because anyone can test all 25 keys in a fraction of a second, Caesar ciphers and ROT13 are for puzzles, spoiler hiding and learning — never for passwords or private data.
Where Caesar Ciphers and ROT13 Are Used
Shift ciphers remain the most popular gateway into cryptography and word puzzles.
Geocaching and puzzle hunts
Geocaching hints have used ROT13 for decades so players can hide hints in plain text without spoiling the find.
Cryptography classrooms
Demonstrate modular arithmetic, key space size (only 25 keys), and why brute-force attacks break simple substitution.
Capture-the-flag (CTF) challenges
Paste an unknown string and open all 25 shifts to spot flags or readable clues immediately.
Forums and spoiler hiding
Share movie endings or riddle answers in ROT13 so readers only decode them when ready.
When to Use This Caesar Cipher Tool
Encoding with a custom key
Drag the shift slider anywhere from 1 to 25 and copy the result instantly.
Decoding without knowing the shift
Click "Crack ciphertext: try all 25 shifts" to view every candidate decoding side by side.
Quick ROT13 spoiler decoding
Tap the ROT13 (13) preset and paste any ROT13 hint to read it immediately.
Sharing a puzzle link
Create Link puts your text, shift and direction in the URL fragment so friends open the exact puzzle.
Frequently Asked Questions
Historically, Julius Caesar used a shift of 3 (A becomes D, B becomes E, C becomes F). In general, a Caesar or shift cipher can use any shift from 1 to 25.
Paste the ciphertext into the input box and click "Crack ciphertext: try all 25 shifts". Every possible shift from 1 to 25 appears immediately so you can spot the readable English line.
ROT13 is simply a Caesar cipher with a fixed shift of 13. Because 13 is half of 26, applying ROT13 twice always returns the original text.
Yes. Uppercase letters stay uppercase, lowercase letters stay lowercase, and numbers, spaces, punctuation and emoji stay untouched.
No. With only 25 possible keys, a Caesar cipher can be broken in milliseconds. Use it for puzzles, games, spoilers and learning, not security.
No. Every shift calculation runs locally in your browser.
Related Text Tools
Binary Translator
Convert text to 8-bit UTF-8 binary code and decode binary back to text.
Morse Code Translator
Translate text to International Morse code, decode dots and dashes, and play audio beeps.
Letters to Numbers Converter
Convert letters to numbers, A=1 to Z=26, and decode A1Z26 number codes back to text.
Pig Latin Translator
Translate English into Pig Latin, with the "way" or "yay" rule for words that start with a vowel.
Atbash Cipher
Encode and decode the Atbash cipher, A to Z and Z to A, in English or Hebrew.
Enchanting Table Translator
Write English in Minecraft enchanting table letters, and read them back.
Word Scrambler
Scramble the letters of every word, or shuffle the word order of each sentence.
Backwards Text Generator
Turn any sentence into backwards text, character by character.