Caesar Cipher

Encrypt and decrypt text by shifting letters. Results appear as you type.

Loading tool…

  • Free
  • No sign-up
  • Runs in your browser

How to use the caesar cipher

  1. Choose the direction with the buttons above the result.
  2. Type or paste your text in the top box.
  3. Copy the converted result.

How the Caesar cipher works

Every letter is replaced by the letter a fixed number of places further along the alphabet. With a shift of 3, A becomes D, B becomes E, and X, Y, Z wrap round to A, B, C. To decrypt, shift back by the same amount. It is named after Julius Caesar, who, according to the Roman historian Suetonius, used a shift of three for his private letters.

PlainA B C D E F … X Y Z
Shift 3D E F G H I … A B C

Cracking it

There are only 25 possible shifts, so a Caesar cipher can be broken by trying them all, which takes seconds. If you receive a message and do not know the shift, set the mode to Decrypt and step the shift from 1 upwards until readable text appears. In longer English messages the most common letter usually stands for E, which gives the shift away immediately.

It is a great first cipher for learning and for puzzles, escape rooms and treasure hunts, but it provides no real secrecy. A shift of 13 is the special case known as ROT13.

Frequently asked questions

What shift did Caesar use?

Three, according to Suetonius. His nephew Augustus is said to have used a shift of one.

Are numbers encrypted?

No. Only the letters A to Z are shifted; everything else is left as it is.

Is my text stored or sent anywhere?

No. Everything happens inside your browser. Your text is not uploaded, logged or read by anyone. The page remembers your last text on this device only, so you can pick up where you left off; press Clear to remove it.

Related tools