Skip to content

Caesar CipherNew

Encrypt or decrypt text with a letter shift or ROT13.

Runs in your browser · free · no sign-up

Plain text
Encrypted text

About the Caesar Cipher

The Caesar cipher replaces each letter with one a fixed number of places further in the alphabet. It is a classic way to teach cryptography and to hide puzzle answers or spoilers.

The Caesar cipher is one of the oldest known ciphers. Julius Caesar reportedly used it to protect military messages by shifting each letter three places along the alphabet. Today it is a favourite in classrooms, puzzle hunts, escape rooms and coding exercises because it demonstrates the core ideas of encryption, keys and code-breaking in a few minutes.

This tool encrypts or decrypts with any shift from 1 to 25. A shift of 13, known as ROT13, is its own inverse and is still used online to hide spoilers and puzzle answers. Upper and lower case are preserved, and numbers, punctuation and spaces stay as they are, so the structure of the message remains recognisable.

How to use the Caesar Cipher

  1. 1Type or paste your text.
  2. 2Choose Encrypt or Decrypt and the shift.
  3. 3Copy the result.

Key features

  • Encrypt and decrypt modes.
  • Any shift from 1 to 25.
  • ROT13 with shift 13.
  • Keeps case, numbers and punctuation.
  • Instant output.

Practical uses

  • Teaching the basics of cryptography.
  • Creating clues for treasure hunts and escape rooms.
  • Hiding spoilers or answers in a forum post.
  • Checking homework for a programming exercise.
  • Teaching frequency analysis: encrypt a paragraph and let students crack it by counting letters.

Example

With shift 3, “Meet at noon” becomes “Phhw dw qrrq”. Decrypting with shift 3 brings back the original. With ROT13 the same phrase becomes “Zrrg ng abba”.

Tips and common mistakes

  • To break an unknown Caesar message, try decrypting with each shift until words appear.
  • Agree the shift with your friends in advance for puzzle games.
  • Remove accents first if your text contains them, as they are not shifted.

Limitations

  • It offers no real security and must never protect private data.
  • Only the 26 English letters are shifted.

Privacy

Encryption and decryption run in the browser and nothing is stored.

Frequently asked questions

Is the Caesar cipher secure?

No. There are only 25 possible shifts, so anyone can break it in seconds. Use it for fun and learning, never for passwords or private data.

What is ROT13?

A Caesar shift of 13. Because the alphabet has 26 letters, applying ROT13 twice gives back the original text.

What happens to numbers and accents?

Only the letters A–Z and a–z are shifted. Numbers, spaces, punctuation and accented letters stay the same.

What shift did Caesar use?

Historical accounts say a shift of 3, so A became D.

Are shifts larger than 25 possible?

A shift of 26 brings every letter back to itself, so 1 to 25 covers every distinct Caesar cipher.

Related tools

Word CounterCount words, characters, sentences and reading time.
Case ConverterUPPER, lower, Title, Sentence, camelCase and more.
Slug GeneratorTurn titles into clean, SEO-friendly URL slugs.
Remove Duplicate LinesDelete repeated lines from a list.