Caesar Cipher
Encode or decode text with a classic Caesar shift cipher: every letter is shifted a fixed number of places through the alphabet.
Tool guide
What this tool does
Caesar Cipher shifts every letter of the input text a fixed number of places through the alphabet, wrapping from Z back to A, while leaving spaces, punctuation and digits untouched. A slider sets the shift amount from 0 to 25, and the same shift decodes a message when run in reverse.
The Caesar cipher is one of the oldest known encryption methods, reportedly used by Julius Caesar for military messages: every letter in the message is replaced by the letter some fixed number of places further along the alphabet, wrapping back to A after Z.
This tool applies that shift to any pasted text, leaving spaces, punctuation and numbers exactly as they are since the cipher only ever touches letters. The same shift amount both encodes and decodes a message: decoding is simply encoding with the shift reversed, which is exactly what the Decode mode does under the hood.
How to use Caesar Cipher
- Paste or type the text you want to encode or decode.
- Choose Encode or Decode.
- Set the Shift amount with the slider (0-25).
- Read the shifted result instantly as you type or adjust the shift.
- Use the swap button to feed the output back in as input for a quick round trip check.
Tips for better results
- A shift of 13 applied twice returns the original text, since 13 is exactly half of the 26-letter alphabet — this is the basis of the related ROT13 cipher.
- Because there are only 26 possible shifts, a Caesar-enciphered message is trivial to break by brute force or by analysing letter frequency; treat this strictly as a historical curiosity or a puzzle tool, never as real security.
- Non-letter characters, including spaces, digits and punctuation, are never shifted, which keeps the message’s word boundaries and formatting fully intact and readable once decoded.
- The cipher preserves letter case: an uppercase letter shifts to another uppercase letter, and lowercase to lowercase.
Common use cases
- Solving or setting a classic Caesar cipher puzzle for a game, escape room or classroom exercise.
- Learning the basics of substitution ciphers and classical cryptography history.
- Lightly obscuring text for a non-sensitive puzzle or game mechanic, not real confidentiality.
- Demonstrating why simple shift ciphers are easy to break, as a teaching example in a cryptography course.
Common mistakes to avoid
- Using a Caesar cipher for anything that needs real confidentiality; with only 26 possible shifts, it offers no meaningful security against even a casual attacker.
- Forgetting the exact shift amount used to encode a message, which makes decoding it manually require trying all 26 possibilities (easy for a computer, tedious by hand).
- Expecting digits or punctuation to be encoded; the Caesar cipher by definition only shifts letters of the alphabet.
Frequently asked questions
How do I decode a message without knowing the shift?
Try all 26 possible shifts (or use a frequency-analysis approach), since the shift amount is a single number from 0 to 25 and the message becomes readable at exactly one of them.
Is the Caesar cipher secure?
No, it offers essentially no real security since there are only 26 possible shifts to try; it is a historical and educational cipher, not a practical encryption method.
What is ROT13?
ROT13 is simply a Caesar cipher with a fixed shift of 13, which has the convenient property that encoding twice returns the original text, since 13 is half of the 26-letter alphabet.
Does this cipher work with accented or non-Latin letters?
No, only the 26 unaccented A-Z letters are shifted; accented letters, non-Latin scripts, digits and punctuation all pass through unchanged.
Feedback & suggestions
Help us improve Caesar Cipher. We read every message.