Cipher
Runs in your browser. Your text never leaves your device.
Caesar Cipher Decoder, Encoder and Translator
The Caesar cipher (shift cipher, Caesar code) moves every letter a fixed number of places.
Dwwdfn dw gdzq iurp wkh qruwk vlgh ri wkh ulyhu
Report a wrong result or suggest a code in the Caesar Cipher tool
Solved. Two independent checks agree on the top key.
- Shift 3χ² chi-squared 0.39, lower is better
Attack at dawn from the north side of the river
- Shift 5χ² chi-squared 2.78, lower is better
Yrryai yr byul dpmk rfc lmprf qgbc md rfc pgtcp
- Shift 15χ² chi-squared 2.79, lower is better
Ohhoqy oh rokb tfca hvs bcfhv gwrs ct hvs fwjsf
All 25 shifts, ranked by chi-squared against English letter frequencies. Lower is better. Scores are a ranking aid, not a guarantee: read the text.
Solved. Best key: Shift 3, chi-squared 0.39, lower is better.
Links carry your text after the # sign. Browsers never send that part of an address to a server, so it only reaches the people you share the link with.
Recent
Nothing yet. Your last 10 conversions, across every cipher, appear here. They are kept on this device only.
How to decode a Caesar cipher in 4 steps
Take the ciphertext JOREHA, made with a shift of 3. Counting A as 0, B as 1 and so on to Z as 25, decoding is one subtraction per letter. If you do not know the shift, the decoder on this page tries all 25 for you.
Give each letter its number
Write the position of every letter under it: J = 9, O = 14, R = 17, E = 4, H = 7 and A = 0.
Subtract the shift
Take 3 away from each number: 9 - 3 = 6, 14 - 3 = 11, 17 - 3 = 14, 4 - 3 = 1, 7 - 3 = 4 and 0 - 3 = -3.
Wrap with mod 26
Any number below 0 gets 26 added, so every result lands between 0 and 25. Here -3 becomes -3 + 26 = 23, which is how the alphabet loops from A back round to Z.
Turn the numbers back into letters
Read each number off the alphabet: 6 = G, 11 = L, 14 = O, 1 = B, 4 = E and 23 = X. The message is GLOBEX.
Decode without the key: all 25 shifts
Most people arriving at a Caesar cipher do not have the key, and a slider cannot help with that. There are only 25 possible keys, so the honest answer is to try all of them at once and read the one that makes sense. That is the whole reason this cipher offers no protection.
| Shift | Decoded text | Score | Copy |
|---|---|---|---|
| 1 | Vjg vtgcuwtg ku dwtkgf wpfgt vjg qnf qcm vtgg | 8.84 | |
| 2 | Uif usfbtvsf jt cvsjfe voefs uif pme pbl usff | 4.99 | |
| 3most likely | The treasure is buried under the old oak tree | 0.58 | |
| 4 | Sgd sqdzrtqd hr atqhdc tmcdq sgd nkc nzj sqdd | 23.94 | |
| 5 | Rfc rpcyqspc gq zspgcb slbcp rfc mjb myi rpcc | 7.39 | |
| 6 | Qeb qobxprob fp yrofba rkabo qeb lia lxh qobb | 16.74 | |
| 7 | Pda pnawoqna eo xqneaz qjzan pda khz kwg pnaa | 18.07 | |
| 8 | Ocz omzvnpmz dn wpmdzy piyzm ocz jgy jvf omzz | 69.95 | |
| 9 | Nby nlyumoly cm volcyx ohxyl nby ifx iue nlyy | 7.17 | |
| 10 | Max mkxtlnkx bl unkbxw ngwxk max hew htd mkxx | 33.87 | |
| 11 | Lzw ljwskmjw ak tmjawv mfvwj lzw gdv gsc ljww | 19.25 | |
| 12 | Kyv kivrjliv zj slizvu leuvi kyv fcu frb kivv | 12.49 | |
| 13 | Jxu jhuqikhu yi rkhyut kdtuh jxu ebt eqa jhuu | 14.88 | |
| 14 | Iwt igtphjgt xh qjgxts jcstg iwt das dpz igtt | 9.22 | |
| 15 | Hvs hfsogifs wg pifwsr ibrsf hvs czr coy hfss | 2.83 | |
| 16 | Gur gernfher vf ohevrq haqre gur byq bnx gerr | 8.50 | |
| 17 | Ftq fdqmegdq ue ngduqp gzpqd ftq axp amw fdqq | 49.26 | |
| 18 | Esp ecpldfcp td mfctpo fyopc esp zwo zlv ecpp | 7.12 | |
| 19 | Dro dbokcebo sc lebson exnob dro yvn yku dboo | 2.61 | |
| 20 | Cqn canjbdan rb kdarnm dwmna cqn xum xjt cann | 7.99 | |
| 21 | Bpm bzmiaczm qa jczqml cvlmz bpm wtl wis bzmm | 32.07 | |
| 22 | Aol aylhzbyl pz ibyplk bukly aol vsk vhr ayll | 7.30 | |
| 23 | Znk zxkgyaxk oy haxokj atjkx znk urj ugq zxkk | 39.65 | |
| 24 | Ymj ywjfxzwj nx gzwnji zsijw ymj tqi tfp ywjj | 44.11 | |
| 25 | Xli xviewyvi mw fyvmih yrhiv xli sph seo xvii | 10.25 |
The score in the last column is a chi-squared comparison between the decoded letter frequencies and those of ordinary English. A lower score means a closer match, and the lowest-scoring row is almost always the answer. It is shown rather than hidden so you can check the reasoning instead of trusting it.
Caesar Cipher at a glance
- Type
- Broken cipher (keyed)
- Key space
- 25 keys
- Directions
- Encode and decode: Plain text to Cipher text and back
- Example
HELLO→KHOOR(shift 3, the tool's default)- Privacy
- Runs in your browser, nothing is uploaded
Paste a Caesar cipher and this tool cracks it without the key, ranking all 25 shifts against English letter frequencies.
If you already know the shift, or want to encode a message of your own, set the shift yourself and read the result live. It is the friendliest cipher to learn and the classic first puzzle in cryptography, and all the work happens in your browser.
How the Caesar Cipher works
Pick a shift number from 1 to 25. Each letter moves that many places forward through the alphabet, wrapping around from Z back to A. A shift of 3 turns A into D and Z into C.
To decode, apply the same shift in reverse (or set the tool to decode). Non-letters like spaces and punctuation are left untouched.
Examples
Caesar cipher chart
At a shift of 3, the shift Julius Caesar is said to have used, A becomes D, B becomes E and so on to the end of the alphabet, where it wraps back around.
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Cipher | 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 |
Prefer paper? Print the cipher wheel below on A4, cut out both discs and pin them together at the centre to set any shift by hand.
History and origins
Named after Julius Caesar, who according to the historian Suetonius shifted letters by three to protect his military correspondence. It is one of the oldest recorded ciphers.
By modern standards it offers no real security, since there are only 25 possible shifts to try. That very weakness makes it perfect for teaching how substitution ciphers work and how they are broken.
Frequently asked questions
What is a Caesar cipher? #
A Caesar cipher replaces each letter with the letter a fixed number of places further along the alphabet. Counting A as 0, a letter at position p becomes (p + shift) mod 26, so with a shift of 3 HELLO becomes KHOOR.
How do you decode a Caesar cipher without the shift? #
Try all 25 shifts and keep the one that reads as English. Paste the message and the decoder does exactly that, ranking every shift by how closely its letter frequencies match English. If you do know the shift, set it and switch to decode.
How do you recognize Caesar ciphertext? #
Look for ordinary-looking words of normal length made of the wrong letters, with spaces and punctuation left in place. The letter frequencies keep the shape of English, only moved along the alphabet, so the most common letter often stands for E. The cipher identifier on this site tests for exactly that pattern.
Can the Caesar cipher encrypt numbers? #
Not in its classic form: the shift moves the 26 letters only, so this tool leaves digits, spaces and punctuation exactly as they are. Some puzzle variants shift digits separately around 0 to 9, which is a different cipher and not what this translator does.
What does a Caesar shift of 25 do? #
A shift of 25 moves every letter one place back, the same as a shift of -1: ACME becomes ZBLD. Because the alphabet has 26 letters, a shift of 25 to encode is the same as a shift of 1 to decode.
How do you write I love you in Caesar cipher? #
With the classic shift of 3, I LOVE YOU becomes L ORYH BRX. Any other shift from 1 to 25 gives a different result, so the reader needs to know which one you used.
When was the Caesar cipher used? #
In the first century BC: Julius Caesar shifted letters by 3 in his private letters, according to the biography Suetonius wrote around AD 121. Suetonius adds that Caesar's successor Augustus used a shift of 1.
How do you spell Caesar cipher? #
It is spelled Caesar, after Julius Caesar. People often search for a ceaser cipher or a ceasar cipher, and both mean this same shift cipher.
Is ROT13 a Caesar cipher? #
Yes. ROT13 is simply a Caesar cipher with a shift of 13. Because 13 is half of 26, applying it twice returns the original text.
Why is the Caesar cipher considered insecure? #
There are only 25 possible keys, so anyone can try them all in moments. It is a teaching cipher, not a way to protect real secrets.
Learn more
Go deeper on the ideas behind this tool.
Not sure this is the right tool?
If you have a message and you are not certain what it is, the cipher identifier reads the character set and the letter statistics and tells you which scheme it most likely uses, and why. It covers every code and cipher on this site.
Related translators
Reference this tool
Mention this page in homework, a write-up or an article with this line:
Caesar Cipher Decoder, Encoder and Translator on CipherPad, retrieved on the date of your visit, https://cipherpad.dev/translate/caesar
The text on this page is licensed CC BY 4.0: you may share and adapt it, also commercially, as long as you credit CipherPad and link to the page.