What is the Caesar cipher and how does it work?
The Caesar cipher is one of the oldest encryption methods: every letter is replaced by the letter a fixed number of places further along the alphabet. With a shift of 3, A becomes D and “Hello” becomes “Khoor”. Type your message, set the shift from 1 to 25 or press ROT13, and choose Encrypt or Decrypt. If you do not know the shift, turn on the brute force list to see all 25 results. It runs in your browser.
How to use the Caesar cipher
- 1
Type or paste your text.
- 2
Choose Encrypt or Decrypt and set the shift with the slider, or press ROT13.
- 3
Read the result in the output box.
- 4
To crack a message with an unknown shift, turn on Show all 25 shifts and look for the readable line.
Key features
Any shift from 1 to 25
Use the classic shift of 3 used by Julius Caesar, or any other value.
ROT13 in one click
Shift by 13, the version that encrypts and decrypts with the same operation.
Brute force table
See all 25 possible decryptions at once and copy the one that makes sense.
Keeps case and punctuation
Upper and lower case are kept, and numbers, spaces and symbols stay unchanged.
Frequently asked questions
How do you decrypt a Caesar cipher?
Choose Decrypt and use the same shift that was used to encrypt the text. If the shift is unknown, turn on Show all 25 shifts and look for the line that reads as normal text.
What is ROT13?
ROT13 is a Caesar cipher with a shift of 13. Because the alphabet has 26 letters, applying ROT13 twice returns the original text.
Is the Caesar cipher secure?
No. There are only 25 possible shifts, so it can be broken in seconds. Use it for puzzles, games and learning, and use real encryption such as the Text Encryption tool for private data.
What is the Caesar shift 3 for the word HELLO?
With a shift of 3, HELLO becomes KHOOR, since H moves to K, E to H, L to O and O to R.
Does the tool change numbers or accented letters?
No. Only the letters A to Z are shifted. Numbers, accented letters, punctuation and spaces stay the same.