Search tools

Caesar Cipher & ROT13

Shift letters through the alphabet to encode a message, or decode one by shifting back — ROT13 included.

Caesar Cipher & ROT13 tool

Options

Processing runs in your browser.

The Caesar cipher is one of the oldest known encryption methods: each letter is replaced by the one a fixed number of places later in the alphabet. With a shift of 3, A becomes D and “HELLO” becomes “KHOOR”. ROT13 is the same idea with a shift of 13, which is exactly half the alphabet, so the same operation both encodes and decodes.

Where it’s still used

  • Escape rooms and geocaching: classic first puzzles that anyone can solve with a little thought.
  • Forums and newsletters: ROT13 hides spoilers and quiz answers.
  • Classrooms: a hands-on introduction to keys, encryption and why frequency analysis breaks weak ciphers.

How to use the Caesar Cipher & ROT13

  1. Type your message in the left box.
  2. Set the Shift. 13 gives ROT13; 3 is the shift Julius Caesar reportedly used.
  3. Choose Encode or Decode, or click Swap to decode the result straight away.
  4. Copy the result and share it.

Features

  • Any shift from −25 to 25, with encode and decode directions.
  • Keeps capital letters, spaces, digits and punctuation exactly as they are.
  • ROT13 is its own inverse: running it twice gives back the original.
  • Live output, so you can try shifts until a hidden message becomes readable.

Frequently asked questions

How do I crack a Caesar cipher without the key?

There are only 25 possible shifts, so try them in turn: change the shift and watch the output until it becomes readable. In English, the most common letter in a long message is usually E, which hints at the shift.

Is a Caesar cipher secure?

No. It can be broken by hand in minutes. Use it for puzzles, games and teaching. For real secrets, use the AES Encrypt & Decrypt tool, which uses modern encryption.

What is ROT13 used for?

Hiding spoilers, puzzle answers and punchlines in plain sight. Readers who want to see the text can decode it instantly, but nobody reads it by accident.

Written by