Caesar Cipher: Encode and Decode Online

Encrypt or decrypt messages with the classic Caesar cipher. Set the shift, type your text, and see the coded message right away. If you don't know the shift, try all 25 at once and spot the one that reads as English. It is great for puzzles and learning basic cryptography.

Caesar Cipher

Shift letters to encode or decode.

-
Everything runs in your browser. Nothing you enter is sent to a server.

How to use the Caesar Cipher

  1. Type or paste your text.
  2. Choose the shift.
  3. Pick Encode or Decode.
  4. Copy the result, or scan the list of all shifts.

How it works

Each letter moves a fixed number of places down the alphabet and wraps from Z back to A. Numbers and symbols stay the same.

Formula

Encode: E(x) = (x + k) mod 26
Decode: D(x) = (x − k) mod 26

Example

With shift 3, HELLO becomes KHOOR.

Frequently asked questions

What is a Caesar cipher?

A substitution cipher that shifts each letter by a fixed amount.

What is ROT13?

A Caesar cipher with shift 13; encoding and decoding are the same.

Is it secure?

No. There are only 25 shifts, so it is easy to crack.

See also: Password Generator, Unit Converter.

Encode or decode a Caesar cipher

How to use it

  1. Type or paste your message.
  2. Pick a shift from 1 to 25.
  3. Choose encode or decode.
  4. Or show all shifts to crack it.

More questions

What is a Caesar cipher?

Each letter is shifted a fixed number of places in the alphabet.

What is ROT13?

A Caesar cipher with a shift of 13.

Is it secure?

No. It is easy to crack and is used for fun and learning.

Related tools: Morse Code Translator, Text to Binary Converter, Hash Generator.