Use this free Caesar cipher tool to shift the letters of a message by a fixed amount, and to decode a message whose shift you do not know. It is a classic teaching cipher. The shifting runs in your browser, so the text you enter is not sent anywhere.

The Caesar cipher is not secure. Anyone can try all 25 shifts in seconds. Use it to learn how substitution works, and use modern encryption for anything that matters.

How the Caesar cipher works

Each letter is replaced by the letter a fixed number of places along the alphabet. With a shift of 3, A becomes D, B becomes E, and so on, with Z wrapping back to C. Decoding moves the same number of places in the other direction.

How to use the Caesar cipher tool

  • Encode or decode: pick the direction and a shift from 0 to 25.
  • ROT13: one click sets the shift to 13. Applying ROT13 twice gives back the original text.
  • Break a message: paste ciphertext in the analysis card to see all 25 shifts and the most likely one.

Worked example

Encoding Hello, World! with a shift of 3 gives Khoor, Zruog!. Decoding that with the same shift returns the original. The comma, space, and exclamation mark are unchanged.

Why it is easy to break

  • Few keys. With 25 shifts, an attacker simply tries each one.
  • Letter frequencies survive. In English, E is the most common letter, so the most common letter in the ciphertext often maps back to E.
  • Short messages are harder to read. The frequency guess works best on a passage of a few sentences.

Frequently asked questions

Is the Caesar cipher secure?

No. There are only 25 useful shifts, so anyone can try them all, and letter frequencies reveal the shift quickly.

What is ROT13?

ROT13 is a Caesar cipher with a shift of 13. Applying it twice returns the original text, so one step both encodes and decodes.

How does the shift guess work?

For each shift, the tool decodes the text and adds up typical English letter frequencies. The shift that gives the most English-like result is suggested. Short texts can mislead it.

Is my text sent to a server?

No. The shifts are calculated in your browser and nothing is uploaded.

Share this article