Caesar Cipher Encoder & Decoder

Encode or decode text with the Caesar cipher using any shift value, or auto-crack all 25 shifts when the key is unknown. ROT13 supported.

Only letters A–Z are shifted. Numbers, punctuation and other characters are preserved unchanged.

125

This free Caesar cipher tool is a complete encoder, decoder and translator in one: encode text with any shift value, decode a message when you know the key, or auto-crack the ciphertext across all 25 shifts when you don't. ROT13 is fully supported. As a browser-based Caesar cipher translator, everything runs locally — your text never leaves your device — making it perfect for puzzles, classrooms, escape rooms and learning how classical cryptography works.

What Is the Caesar Cipher?

So what is a Caesar cipher? The Caesar cipher is one of the oldest and simplest encryption methods: each letter is shifted a fixed number of positions forward in the alphabet. It is named after Roman emperor Julius Caesar, who is said to have used it for military correspondence. With a shift of 3, A becomes D, B becomes E and Z becomes C.

It is the classic starting point for teaching cryptography. With only 25 possible keys the method is not considered secure, but it is ideal for understanding how substitution encryption works before moving on to modern algorithms.

How the Caesar Cipher Works

This shift cipher belongs to the substitution cipher family. Each letter is replaced by another, shifted a fixed number of steps. Mathematically:

  • Encryption: E(x) = (x + n) mod 26, where x is the letter's position (A=0, Z=25) and n is the shift.
  • Decryption: D(x) = (x − n + 26) mod 26 — or equivalently, encrypt again with a shift of 26 − n.
  • Wrap-around: At the end of the alphabet it wraps to the start; shifting Z by 1 gives A.
  • Case preserved: Uppercase stays uppercase, lowercase stays lowercase; only the letter changes.
  • Non-letters: Numbers, punctuation and other characters are preserved unchanged.

Caesar Cipher Examples

ShiftOriginalEncryptedSpecial Name
3HELLOKHOORClassic Caesar (used by Julius Caesar)
13HELLOURYYBROT13 (encode = decode)
1HELLOIFMMP
7HELLOOLSSV
25HELLOGDKKNCaesar −1 (ROT25)

Caesar Cipher Encoder: Encrypting a Message

To use the Caesar cipher encoder, open the Encode tab, type your message and choose a shift value between 1 and 25. The tool shifts every letter forward by that amount and leaves numbers and punctuation untouched, so the encrypted output is ready to copy or share in a moment. Remember to tell your recipient which shift you used — without the key they would need a Caesar cipher solver to read it.

Caesar Cipher Decoder: Decrypting a Message

There are two ways to decode a Caesar cipher, and this Caesar cipher decoder supports both:

  1. Known shift: If you know the key, open the Decode tab, paste the ciphertext and set the same shift value. The original message is restored instantly.
  2. Brute force (Auto-Crack): If the key is unknown, the built-in Caesar cipher solver tries all 25 possible shifts and lists every result, so you can pick the readable one. With only 25 keys, this brute-force approach always succeeds.
  3. Frequency analysis: In English text the most common letter is E. Find the most frequent letter in the ciphertext, assume it maps to E and derive the shift — very effective on longer messages.

Because modern computers can try all 25 shifts in milliseconds, this classical method is never used for real security today — but that same simplicity is exactly what makes it a great teaching tool.

ROT13 Decoder — A Special Case

ROT13 is a Caesar cipher with a fixed shift of 13. Because 13 is exactly half of the 26-letter alphabet, encoding and decoding are identical — applying it twice returns the original text. That symmetry is why a single ROT13 decoder handles both directions at once. ROT13 is widely used online to hide spoilers, puzzle answers and punchlines; simply set the shift to 13 in this tool to encode or decode ROT13.

Common Uses of a Caesar Cipher Translator

  • Education: The first hands-on example in any cryptography lesson, showing how substitution and keys work.
  • Puzzles & escape rooms: A favourite for treasure hunts, riddles and geocaching clues.
  • Spoiler hiding: ROT13 conceals answers and plot twists in forum posts until the reader chooses to reveal them.
  • Programming practice: A classic beginner exercise for learning string manipulation and modular arithmetic.

Whether you want to encode a secret note, decode a Caesar cipher you received or crack one with an unknown key, this translator handles every case. See the frequently asked questions below for more detail.

Frequently Asked Questions About the Caesar Cipher Encoder & Decoder

The Caesar cipher is one of the oldest encryption methods: each letter is shifted a fixed number of positions in the alphabet. Named after Julius Caesar. With a shift of 3, A→D, B→E, Z→C.

Each letter is shifted forward by the chosen shift (1–25), wrapping around at the end of the alphabet. To decrypt, shift back by the same amount. With only 25 keys it can be brute-forced easily.

Select the "Encode" tab, type your text, set the shift value and click "Encode". The ciphertext appears instantly. To decode it, use the "Decode" tab with the same shift.

If you know the shift, use the "Decode" tab with the same value. If the shift is unknown, use "Auto-Crack" — the tool tries all 25 shifts and lists the results.

Select the "Auto-Crack" tab, paste the ciphertext and click "Analyse All Shifts". Shifts 1–25 are all tried; click the row with the meaningful decryption to copy it.

ROT13 is a Caesar cipher with a fixed shift of 13. Because 13 is half of 26, encoding and decoding are identical — applying it twice returns the original. Set the shift to 13 to apply ROT13.

Couldn't find the answer you were looking for?

Explore all our tools and get the fastest answer to your question.

Go to All Tools