Caesar Cipher
Shift plaintext letters by a fixed number of positions.
Input
Output
Using This Tool: Guide & Notes Show guide
The Caesar cipher shifts every supported letter by one fixed amount. It is a simple classical substitution cipher and a good first example of how alphabetic encryption works.
How to use it
- Choose Encrypt to shift plaintext forward, or Decrypt to shift ciphertext back.
- Set the shift amount. Positive, negative, and large values are normalised around the 26-letter alphabet.
- Paste text into the input box. The output updates using the current shift and formatting settings.
- Use Load example to check the expected behaviour before trying your own message.
Options and settings
- Preserve case keeps uppercase and lowercase letters in their original style.
- Keep punctuation and numbers leaves spaces, digits, punctuation, and symbols unchanged.
- Remove whitespace strips spaces and line breaks from the output.
- Group letters formats the result into fixed-size blocks, which is useful for puzzle-style ciphertext.
Notes
- A shift of 13 is ROT13. A shift of 26 returns the original text.
- Caesar is easy to brute force because there are only 26 possible shifts.
Related Article
Caesar Cipher: A Secret in Plain Sight
Why the world's easiest cipher to break is still the perfect place to start learning.