Caesar Cipher
Encrypt and decrypt text with a custom Caesar shift.
Each letter shifts 3 positions forward in the alphabet. The classic Caesar cipher used a shift of 3.
Caesar cipher is a substitution cipher with no real security — any shift from 1 to 25 can be found by trying all 25 possibilities. Do not use it to protect sensitive information.
How to use Caesar Cipher
What this tool does
The Caesar Cipher tool lets you encode and decode text using the classic shift cipher. You choose a shift amount between 1 and 25 using the slider, select whether you want to encode or decode, type or paste your text, and the result appears in the output box in real time. Uppercase and lowercase letters are shifted independently so their case is preserved. Digits, spaces, punctuation and any other characters pass through without alteration. The current shift value is always visible next to the slider so you know exactly what transformation is being applied.
Why you might need it
Caesar cipher is the gateway cipher — it is almost always the first substitution cipher taught in mathematics, computer science and cryptography courses because its mechanics are immediately understandable. If you are studying the basics of encryption, building a classroom puzzle, designing an escape room, or writing a story that involves secret messages, a Caesar cipher is a natural starting point.
Puzzle designers use it to hide clues in printed materials where the shift key is embedded elsewhere in the puzzle — perhaps a number found at another station. Writers use it to create props that look authentically like a coded letter. Game developers use it in ARGs and treasure hunts where players need to decode a message to advance.
This tool is also handy for quickly decoding a Caesar-encrypted string you have received, without having to set up any software or write any code. Paste the text, try a few shift values, and the correct one will produce legible English (or whichever language the original was in).
How to use it
- Choose Encode if you want to encipher a plain-text message, or Decode if you want to recover the original from an already-encoded one.
- Drag the Shift amount slider to pick a value from 1 to 25. The classic Caesar used 3.
- Type or paste your text into the input box.
- Read the result in the output box — it updates with every keystroke and every slider movement.
- Click Copy output to copy the transformed text, or Clear to reset.
Common pitfalls
The most common mistake when decoding is using the wrong shift. If the output looks like garbled letters, try adjacent shift values — it is easy to be off by one. Keep in mind that the encoder and decoder must agree on the same shift number, so if someone sends you a message and tells you the shift is 7, make sure your slider is also at 7 before switching to decode.
Remember that the Caesar cipher treats uppercase and lowercase letters separately, but both are shifted by the same amount. A message encoded in all caps will decode to all caps; mixed-case text stays mixed-case.
Finally, non-Latin characters do not rotate. If your text contains accented letters, emoji or characters from other writing systems, they will appear unchanged in the output — only the 26 basic Latin letters (A–Z) are shifted.
Tips and advanced use
ROT13 is a special case of the Caesar cipher with a shift of 13. Because 13 is half of 26, it is its own inverse — encoding and decoding are the same operation. If you need exactly ROT13, the dedicated ROT13 tool on this site handles that with a single transform.
For puzzle creation, a shift of 3 is immediately recognisable to anyone familiar with the history, so consider a less obvious value for a harder puzzle. Shifts like 7, 11 or 19 are just as easy to use but less likely to be guessed on sight.
Because all processing happens in your browser, you can safely paste real drafts or personal text to experiment — nothing is ever sent anywhere.
Frequently asked questions
Is my text sent to a server?
What is the Caesar cipher?
How do I decode a Caesar-encoded message?
Is the Caesar cipher secure?
Why does the shift go up to 25, not 26?
Related tools
ROT13 Cipher
Encode and decode text with the classic ROT13 cipher.
Atbash Cipher
Encode and decode text with the Atbash cipher.
Vigenère Cipher
Encrypt text with the key-based Vigenère cipher.
Bacon Cipher
Hide messages with the classic Bacon cipher.
Morse Code Translator
Translate between text and Morse code.
Binary to Text
Convert 8-bit binary back into readable text.