ToolJutsu
All tools
Text Tools

Caesar Cipher

Encrypt and decrypt text with a custom Caesar shift.

3

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.

Processed on your device. We never see your files.

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

  1. 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.
  2. Drag the Shift amount slider to pick a value from 1 to 25. The classic Caesar used 3.
  3. Type or paste your text into the input box.
  4. Read the result in the output box — it updates with every keystroke and every slider movement.
  5. 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?
No. Every letter shift is calculated by JavaScript running in your browser. Nothing you type is uploaded or stored — the Network tab in your browser's developer tools will confirm there is no outgoing traffic.
What is the Caesar cipher?
The Caesar cipher is one of the oldest known substitution ciphers. It works by shifting every letter in a message a fixed number of positions along the alphabet. Julius Caesar reportedly used a shift of 3 to communicate with his generals — A became D, B became E, and so on. To read the message, the recipient shifted back by the same amount.
How do I decode a Caesar-encoded message?
Switch the mode selector to Decode, set the shift slider to the same number that was used to encode the message, and paste the encoded text. The tool shifts every letter backward by that amount, revealing the original. If you do not know the shift, you can try all 25 possibilities — the correct one will produce readable text.
Is the Caesar cipher secure?
No. The Caesar cipher has only 25 possible keys, so anyone who suspects it can decode a message in under a minute by trying every option — a process called a brute-force attack. Even an automated program can crack it instantly. Use the Caesar cipher for puzzles, games, and learning — never to protect real information.
Why does the shift go up to 25, not 26?
A shift of 0 or 26 would leave every letter unchanged, which is not a cipher at all. Shifts 1 through 25 each produce a distinct scrambling of the alphabet, giving 25 genuinely different keys.

Related tools