By Debmedia Technologies LLP · Kolkata, India · Updated
What Is It and When Do You Need It?
The Caesar cipher is named after Julius Caesar, who is said to have used a shift of three to send private messages. It is the classic first cipher: easy to understand and easy to break. It appears in puzzles, escape rooms, geocaching and programming exercises.
Enter your text and a shift. To crack a message when you do not know the shift, turn on brute force and look for the line that reads as normal language.
How to Use This Tool
- Type or paste your text.
- Enter the shift and choose encrypt or decrypt.
- Optionally turn on the brute force table.
- Press Run and copy the result.
How the Calculation Works
Each letter is given a number from 0 to 25. Encryption adds the shift and wraps around after Z, and decryption subtracts it. In other words, new letter = (letter + shift) mod 26. Letters keep their case, and everything else is left alone.
Worked Example
With a shift of 3, HELLO becomes KHOOR. Decrypting KHOOR with a shift of 3 gives HELLO. A shift of 13 is called ROT13 and is its own inverse.
Common Uses
- Puzzles and escape rooms.
- Geocaching hints.
- Teaching cryptography.
- Programming exercises.
Tips and Common Mistakes
- Use brute force when the shift is unknown.
- A shift of 13 gives ROT13.
- Frequent letters such as E and T help you guess the shift by hand.
Related Tools
Next, you may need the Atbash cipher, Vigenère cipher, affine cipher, rail fence cipher.
Everything runs in your browser. Nothing you type is uploaded, stored or sent to any outside service.
Frequently Asked Questions
Disclaimer: results are calculated in your browser from the numbers you enter. Check important results before you rely on them for money, health, safety or legal decisions.