My Tool Studio
Text

Caesar Cipher Decoder

This Caesar cipher decoder turns shifted text back into plain English, even when you do not know the shift. Paste the ciphertext and it tries every possible shift, ranks them by how closely the letter frequencies match English and suggests the most likely one. A table lists every shift at once, so you can scan for readable words, copy any row or export them all as CSV. If you know the key, choose Decode or Encode and set the shift. The ROT13 button sets shift 13. Pick the alphabet: A to Z, A to Z with digits, the 23-letter classical Latin alphabet, printable ASCII like ROT47, or your own. Case is kept, and other characters pass through or can be removed.

Always freeNo sign upRuns in your browser
Most likely shift from letter frequency: shift 3

All 25 shifts (brute force)

Each row decodes your text by moving each symbol back that many places. The highlighted row looks most like English.

ShiftDecoded textCopy
1Vjg ugetgv oggvkpi ku cv pqqp pgct vjg qnf dtkfig.
2Uif tfdsfu nffujoh jt bu oppo ofbs uif pme csjehf.
3 *The secret meeting is at noon near the old bridge.
4Sgd rdbqds lddshmf hr zs mnnm mdzq sgd nkc aqhcfd.
5Rfc qcapcr kccrgle gq yr lmml lcyp rfc mjb zpgbec.
6Qeb pbzobq jbbqfkd fp xq kllk kbxo qeb lia yofadb.
7Pda oaynap iaapejc eo wp jkkj jawn pda khz xnezca.
8Ocz nzxmzo hzzodib dn vo ijji izvm ocz jgy wmdybz.
9Nby mywlyn gyyncha cm un hiih hyul nby ifx vlcxay.
10Max lxvkxm fxxmbgz bl tm ghhg gxtk max hew ukbwzx.
11Lzw kwujwl ewwlafy ak sl fggf fwsj lzw gdv tjavyw.
12Kyv jvtivk dvvkzex zj rk effe evri kyv fcu sizuxv.
13 (ROT13)Jxu iushuj cuujydw yi qj deed duqh jxu ebt rhytwu.
14Iwt htrgti bttixcv xh pi cddc ctpg iwt das qgxsvt.
15Hvs gsqfsh asshwbu wg oh bccb bsof hvs czr pfwrus.
16Gur frperg zrrgvat vf ng abba arne gur byq oevqtr.
17Ftq eqodqf yqqfuzs ue mf zaaz zqmd ftq axp ndupsq.
18Esp dpncpe xppetyr td le yzzy yplc esp zwo mctorp.
19Dro combod woodsxq sc kd xyyx xokb dro yvn lbsnqo.
20Cqn bnlanc vnncrwp rb jc wxxw wnja cqn xum karmpn.
21Bpm amkzmb ummbqvo qa ib vwwv vmiz bpm wtl jzqlom.
22Aol zljyla tllapun pz ha uvvu ulhy aol vsk iypknl.
23Znk ykixkz skkzotm oy gz tuut tkgx znk urj hxojmk.
24Ymj xjhwjy rjjynsl nx fy stts sjfw ymj tqi gwnilj.
25Xli wigvix qiixmrk mw ex rssr riev xli sph fvmhki.

How to use

01

Paste your ciphertext

Replace the sample in the Ciphertext box with your message and pick an Alphabet if it is not plain A to Z. The Output box and the brute force table update as you type. Try sample restores the example.

02

Use the likely shift or set one

With about 20 or more letters, a most likely shift appears. Click Decode with shift to apply it, or drag the Shift slider yourself. Choose Encode to shift letters forward instead.

03

Copy the result

Click Copy above the Output box, use the Copy button on any row of the brute force table, or download every row as CSV or .txt. The highlighted row is the one that looks most like English.

Why Caesar Cipher Decoder

How to crack a Caesar cipher without the key

A Caesar cipher on the normal alphabet has only 25 useful keys, so the simplest attack is brute force: decode with every shift and look for the one that reads as English. The brute force table does exactly that, for whichever alphabet you pick.

For longer messages there is a faster way called frequency analysis. English uses some letters far more than others, with E, T, A and O at the top and Q, X and Z at the bottom. A Caesar shift moves every letter by the same amount, so the pattern of common and rare letters survives. The tool counts the letters in each of the 25 decodings and scores how far they are from normal English using a chi-squared test. The lowest score becomes the suggested shift.

Frequency analysis needs enough letters to work. Below about 20 letters the tool does not suggest a shift, because a short phrase can easily have an unusual mix of letters.

Other alphabets change the number of keys: 35 with digits added, 22 for the classical Latin alphabet and 93 for printable ASCII.

Every shift of HELLO

This table shows the word HELLO encoded with each shift from 1 to 25. To decode any of these, choose Decode and set the slider to the number in the first column.

ShiftHELLO becomesShiftHELLO becomes
ROT1IFMMPROT14VSZZC
ROT2JGNNQROT15WTAAD
ROT3KHOORROT16XUBBE
ROT4LIPPSROT17YVCCF
ROT5MJQQTROT18ZWDDG
ROT6NKRRUROT19AXEEH
ROT7OLSSVROT20BYFFI
ROT8PMTTWROT21CZGGJ
ROT9QNUUXROT22DAHHK
ROT10ROVVYROT23EBIIL
ROT11SPWWZROT24FCJJM
ROT12TQXXAROT25GDKKN
ROT13URYYB

A short history: Julius Caesar and ROT13

The cipher is named after Julius Caesar. The Roman historian Suetonius wrote that Caesar protected private letters by replacing each letter with the one three places further along the alphabet, so a shift of 3. At a time when few people could read at all, and fewer still knew the trick, even this simple scheme kept casual readers out.

Much later, a shift of 13 became popular on Usenet discussion groups in the 1980s. ROT13 was used to hide joke punchlines and spoilers so that nobody read them by accident. Because 13 is half the alphabet, the same step both hides and reveals the text, which made it easy to build into newsreader software. It still turns up today in puzzles, programming exercises and capture the flag contests, where this decoder handles it at slider position 13.

Common questions

How do I decode a Caesar cipher without knowing the shift?
Paste the ciphertext and look at the brute force table, which decodes your text with every possible shift, 25 for the normal alphabet. For longer messages the tool highlights the row whose letter frequencies look most like English. For short messages, scan the rows and the one with real words is your answer.
What is the most common Caesar shift?
Shift 3 is the classic one, because the Roman historian Suetonius wrote that Julius Caesar replaced each letter with the one three places later. Online, ROT13, a shift of 13, is the most widely used because it hides spoilers and applying it twice gives back the original.
Is ROT13 the same as a Caesar cipher?
Yes, ROT13 is a Caesar cipher with a shift of 13. Because 13 is half of 26, encoding and decoding are the same step. Press ROT13, or set the slider to 13, and Uryyb becomes Hello in either mode.
How do I solve a Caesar cipher by hand?
Find the most common letter in the ciphertext and assume it stands for E, the most common letter in English. Count how many places it is from E, and try that shift on the whole message. If it does not work, try T or A, or simply write out a few shifts of the first word.
Can a Caesar cipher include numbers?
The classic Caesar cipher only shifts letters, so with the default alphabet digits pass through unchanged. Choose A to Z plus digits 0 to 9 to shift through a 36-character alphabet where Z is followed by 0, or Printable ASCII to shift every visible character, which is how ROT47 works.
How secure is a Caesar cipher?
Not secure at all. With the normal alphabet there are only 25 possible keys, so anyone can try them all in seconds, as the brute force table shows. Use it for puzzles and teaching, and use modern encryption for anything private.
Can I use my own alphabet in the Caesar cipher tool?
Yes. Choose Custom alphabet and type the characters in order, for example a keyword alphabet or one that includes accented letters. Repeated characters are ignored. If the alphabet has only capital letters, lowercase text is matched too and keeps its case.
What is the difference between Decode and Encode in the Caesar tool?
Encode moves each letter forward by the shift, so A with shift 3 becomes D. Decode moves each letter back, so D with shift 3 becomes A. Pick Decode and enter the same shift that was used to encrypt the message.
Why is the suggested Caesar shift missing or wrong for my message?
The suggestion compares letter frequencies with normal English, which needs about 20 letters to be reliable. Short messages, names, lists or text in another language can fool it. In those cases, read down the brute force table instead.

More Text tools

View all