Caesar Cipher

Encode and Decode with a Letter Shift (ROT13).

Loading…

Julius Caesar is said to have written to his generals with each letter moved three places along the alphabet, so A became D. It's the oldest cipher most people meet, and still the standard first exercise in cryptography classes and puzzle hunts.

Pick a shift and type. A shift of 13 is ROT13, the internet's way of hiding spoilers and punchlines, where encoding twice gets you back to the start. If you have a coded message and no key, list all 25 shifts and read down until one makes sense.

How to use the Caesar Cipher tool

  1. Type or paste the text.
  2. Set the shift, or tick decode.
  3. Copy the result, or list all shifts to crack a message.
  • Puzzle hunts, escape rooms and geocaching clues
  • Hiding spoilers with ROT13
  • Teaching how ciphers and frequency analysis work

Tips for the best result

  • Shift 13 for ROT13. The same setting encodes and decodes.
  • Only A to Z are shifted. Accented letters, digits and punctuation pass through.

Quick facts

PriceFree
Works withText
Where it runsIn your browser, on your device
AccountNot needed

Frequently asked questions

Is a Caesar cipher secure?

No. There are only 25 keys, so anyone can try them all in seconds. Use Encrypt and Decrypt Text for real secrets.

How do I decode without knowing the shift?

Tick "show all 25 shifts" and look for the line that reads as normal language.

What is ROT47?

A variant that also rotates digits and symbols. This tool does the letter version, with an option for digits.

Does it work for other alphabets?

Only the 26 letters of the English alphabet.