Skip to content

Caesar Cipher Tool

Shift every letter of a message by a fixed number of places in the alphabet, or undo it. ROT13 is one click away, and a table shows what the message says for every one of the 25 possible shifts, so you can read a Caesar message without knowing the key. Only the letters A to Z are shifted: upper and lower case are kept, and so are digits, punctuation, spaces and accented letters. This is a classic puzzle cipher, not real security.

34 letters shifted, 15 other characters left as they were (1 accented, not shifted).

The Caesar cipher is not secure: anyone can try all 25 shifts in seconds. Use it for puzzles and learning, never to protect real information. Only A to Z are shifted: accented letters stay as they are.

No key? All 25 possible shifts

If the text above is an encrypted message, one of these lines should read as a real sentence. The line closest to English letter frequencies is marked.

KeyText if the key is thisAction
1Cvvcem cv fcyp! Oggv og cv vjg eché cv 9 q'enqem.
2Buubdl bu ebxo! Nffu nf bu uif dbgé bu 9 p'dmpdl.
3Most English-likeAttack at dawn! Meet me at the café at 9 o'clock.
4Zsszbj zs czvm! Ldds ld zs sgd bzeé zs 9 n'bknbj.
5Yrryai yr byul! Kccr kc yr rfc aydé yr 9 m'ajmai.
6Xqqxzh xq axtk! Jbbq jb xq qeb zxcé xq 9 l'zilzh.
7Wppwyg wp zwsj! Iaap ia wp pda ywbé wp 9 k'yhkyg.
8Voovxf vo yvri! Hzzo hz vo ocz xvaé vo 9 j'xgjxf.
9Unnuwe un xuqh! Gyyn gy un nby wuzé un 9 i'wfiwe.
10Tmmtvd tm wtpg! Fxxm fx tm max vtyé tm 9 h'vehvd.
11Sllsuc sl vsof! Ewwl ew sl lzw usxé sl 9 g'udguc.
12Rkkrtb rk urne! Dvvk dv rk kyv trwé rk 9 f'tcftb.
13Qjjqsa qj tqmd! Cuuj cu qj jxu sqvé qj 9 e'sbesa.
14Piiprz pi splc! Btti bt pi iwt rpué pi 9 d'radrz.
15Ohhoqy oh rokb! Assh as oh hvs qoté oh 9 c'qzcqy.
16Nggnpx ng qnja! Zrrg zr ng gur pnsé ng 9 b'pybpx.
17Mffmow mf pmiz! Yqqf yq mf ftq omré mf 9 a'oxaow.
18Leelnv le olhy! Xppe xp le esp nlqé le 9 z'nwznv.
19Kddkmu kd nkgx! Wood wo kd dro mkpé kd 9 y'mvymu.
20Jccjlt jc mjfw! Vnnc vn jc cqn ljoé jc 9 x'luxlt.
21Ibbiks ib liev! Ummb um ib bpm kiné ib 9 w'ktwks.
22Haahjr ha khdu! Tlla tl ha aol jhmé ha 9 v'jsvjr.
23Gzzgiq gz jgct! Skkz sk gz znk iglé gz 9 u'iruiq.
24Fyyfhp fy ifbs! Rjjy rj fy ymj hfké fy 9 t'hqthp.
25Exxego ex hear! Qiix qi ex xli gejé ex 9 s'gpsgo.

How it works

  1. Type or paste your text.
  2. Choose Encrypt or Decrypt and a shift from 0 to 25, or press ROT13.
  3. Read the result and copy it.
  4. If you do not know the key, look through the table of 25 shifts for the line that reads as a real sentence.

What people use it for

  • Puzzles and games

    Write a clue for a treasure hunt, a classroom exercise or a geocache.

  • Hiding a spoiler

    ROT13 has long been used online to hide a punchline or a spoiler so that it is not read by accident.

  • Breaking a message

    Find the key of a Caesar-encrypted text in seconds by scanning the 25 possibilities.

Questions

Is the Caesar cipher secure?
No. There are only 25 useful keys, so anyone can try all of them in a few seconds, as the table on this page does. Never use it, or ROT13, to protect a password, a message or any personal data. It is a puzzle and a teaching tool.
How does the shift work?
Each letter moves forward by the shift in the alphabet and wraps from Z back to A: with a shift of 3, A becomes D and Y becomes B. Decrypting moves each letter back by the same number. A shift of 0 changes nothing, and a shift of 13 (ROT13) is its own undo, since 13 + 13 = 26.
What happens to accents, digits and punctuation?
They stay exactly as typed. Only the 26 Latin letters A to Z and a to z are shifted, so an accented letter such as e with an acute accent is not moved and stays readable in the encrypted text. The page counts how many characters were left as they were.
How does the tool pick the most likely line?
For texts of at least 15 letters it compares the letter counts of each of the 25 results with the usual letter frequencies of English (a chi-squared score) and marks the closest one. It assumes English text, and a short or unusual text can fool it, so read the lines yourself.