Skip to content
  1. ConvertSoon
  2. Text tools
  3. Caesar cipher

Caesar cipher

Encode or decode a Caesar cipher by shifting each letter along the alphabet. It is free, you can pick any shift from 1 to 25, and it runs in your browser.

Runs in your browser Updates as you type Free, no signup

How to use the Caesar cipher

  1. Choose Encode or Decode

    Pick the direction above the boxes.

  2. Set the shift

    Move the slider from 1 to 25. The usual Caesar shift is 3.

  3. Type and copy

    Type or paste the message and copy the result.

Examples

Real results from this tool.

You typeYou get
Meet me at noonPhhw ph dw qrrq
Khoor (decode)Hello

How the Caesar cipher works

A Caesar cipher replaces each letter with the one a fixed number of places further along the alphabet. With a shift of 3, A becomes D, B becomes E and Z wraps round to C, so MEET becomes PHHW. The Roman historian Suetonius wrote that Julius Caesar used a shift of 3 for private letters, which is how the cipher got its name. Numbers, spaces and punctuation are left as they are, and capitals stay capital.

Caesar cipher decoder

Choose Decode and set the same shift that was used to encode; the letters move back. If you do not know the shift, try them: there are only 25, so move the slider until the text makes sense. Short words help, because English has few one- and two-letter words.

Shift cipher decoder for puzzles and lessons

A shift cipher is the classic first cipher in maths and computing lessons, escape rooms and geocaches. It is easy to break, which is the point of the lesson: never use it to protect anything real. A shift of 13 is ROT13, which undoes itself.

Caesar cipher examples

With a shift of 1, HAL becomes IBM, a famous joke about the computer in 2001: A Space Odyssey. With a shift of 3, ATTACK AT DAWN becomes DWWDFN DW GDZQ. With a shift of 13, the cipher is ROT13 and applying it twice gives back the original. Try these with the slider to see how each letter moves.

Breaking it with letter frequency

In longer messages you do not need to try every shift. E is the most common letter in English, so the most common letter in the cipher is probably E. If it is H, the shift is 3. This idea, frequency analysis, was described by the Arab scholar Al-Kindi in the 9th century and breaks every simple substitution cipher.

Make your own puzzle

Encode a clue with a shift that hints at the answer, such as the number of players or a date, and give that number as a riddle. Players decode it here by setting the same shift and choosing Decode.

Related tools

More codes and ciphers and similar tools, all free.

Questions about the Caesar cipher

Try each shift from 1 to 25 with Decode until the text reads as words. With only 25 options this takes a minute.

No. It can be broken by trying every shift. Use it for puzzles and learning only.

ROT13 is a Caesar cipher with a shift of 13. Because the alphabet has 26 letters, applying it twice gives the original text.

No. Only letters A to Z move. Numbers, spaces and punctuation stay the same, and capitals stay capital.

No. The conversion runs in your browser, so the text never leaves your device and works offline once the page has loaded.