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.
How to use the Caesar Cipher
- Type or paste your text.
- Choose the shift.
- Pick Encode or Decode.
- 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
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
- Type or paste your message.
- Pick a shift from 1 to 25.
- Choose encode or decode.
- 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.