Caesar Cipher / ROT13

Encode and decode Caesar shift ciphers.

Free online Caesar cipher and ROT13 tool

Encrypt and decrypt text with a classic Caesar shift cipher — or the popular ROT13 variant — right in your browser. Pick any shift from 0 to 25, choose whether to encode or decode, and watch the result update live as you type. Each letter is rotated through the alphabet while spaces, numbers, and punctuation stay exactly as they are. It is a great way to learn how substitution ciphers work, hide a spoiler or puzzle answer, or crack a message by trying every shift.

How to use the Caesar cipher tool

  1. Choose Encode to scramble your text, or Decode to reverse it.
  2. Set the shift with the slider or the number box — the default is 3, the shift Caesar himself used.
  3. Type or paste your message into the input box on the left.
  4. Read the transformed text in the result box; it updates automatically.
  5. Press Set ROT13 for a quick shift of 13, Copy result to grab the output, or Swap to move the result back into the input.

Why ROT13 is special

ROT13 is simply a Caesar cipher with a shift of 13. Because the alphabet has 26 letters, rotating by 13 and then rotating by 13 again lands you back on the original letter — so ROT13 is its own inverse. Encoding and decoding are the same action, which is why one Encode pass both hides and reveals text. It is widely used on forums to conceal spoilers in plain sight.

Ciphers, encodings, and related tools

A Caesar cipher is fun but offers no real security — with only 25 keys it is trivial to break. If you want to make data safe for transport rather than secret, try the Base64 encoder / decoder, and if you enjoy old-school codes, translate dots and dashes with the Morse code translator.

Frequently asked questions

What is a Caesar cipher?

A Caesar cipher is one of the oldest and simplest encryption methods, named after Julius Caesar, who used it for private correspondence. It shifts every letter of the alphabet by a fixed number of positions — for example, a shift of 3 turns A into D, B into E, and so on. Letters wrap around from Z back to A, and non-letter characters like spaces and punctuation are left unchanged.

What is ROT13 and why is it its own inverse?

ROT13 is a Caesar cipher with a fixed shift of 13. Because the English alphabet has 26 letters and 13 is exactly half of 26, applying ROT13 twice returns the original text. That makes ROT13 its own inverse — the same operation both encodes and decodes — so you can use the Encode mode for both directions. It is popular for hiding spoilers, puzzle answers, and forum text in plain sight.

How do I decode a Caesar cipher without knowing the shift?

If you do not know the shift, try each value from 1 to 25 and look for readable text — there are only 25 possible shifts, so brute force is quick. Switch to Decode mode and drag the slider through each shift until the message makes sense. This ease of cracking is exactly why the Caesar cipher offers no real security today.

Is the Caesar cipher secure?

No. With only 25 possible keys it can be broken almost instantly by trying every shift or by frequency analysis. Treat it as a fun puzzle, a teaching tool, or light obfuscation — never as real protection. For genuine secrecy you need modern encryption, and even Base64 encoding is not encryption at all.

Is my text sent to a server?

No. All encoding and decoding happens locally in your browser with JavaScript. Nothing you type is uploaded, logged, or stored, so it is safe to experiment with any text you like.