Caesar Cipher: Encode & Decode Text Online (ROT13)

RunFreeTools TeamJun 24, 20263 min read

The Caesar cipher is one of the oldest encryption methods, named after Julius Caesar, who used it to protect his messages. It shifts each letter a fixed number of places down the alphabet. This guide shows you how to use a Caesar cipher with the free Caesar Cipher tool, which encodes and decodes text at any shift, including the classic ROT13, while leaving numbers and punctuation untouched. It runs in your browser, so it is free, private, and needs no install.

What a Caesar cipher is and how it works

A Caesar cipher replaces each letter with another letter a fixed number of positions away in the alphabet. With a shift of 3, A becomes D, B becomes E, and so on, wrapping around so X becomes A. To decode, you shift back by the same amount.

ROT13 is a special case with a shift of 13. Because the alphabet has 26 letters, applying ROT13 twice returns the original text, so the same operation both encodes and decodes. The Caesar Cipher tool handles any shift and keeps numbers, spaces, and punctuation exactly as they are.

How to use the Caesar Cipher tool

Encoding and decoding share the same steps:

  1. Open the Caesar Cipher tool.
  2. Type or paste your text.
  3. Set the shift amount (use 13 for ROT13).
  4. Choose encode to scramble or decode to unscramble.
  5. The result appears instantly. Click Copy to use it.

To decode a message someone sent you, enter the same shift they used and choose decode.

A shift example you can follow

Here is how a shift of 3 transforms the start of the alphabet:

Plain Shifted (+3)
A D
B E
C F
HELLO KHOOR

So HELLO with a shift of 3 becomes KHOOR. To get back, decode KHOOR with a shift of 3 and you recover HELLO. Numbers and punctuation in the message pass through unchanged.

What people use a Caesar cipher for

Despite being simple, the Caesar cipher is genuinely useful:

  • Learning cryptography: it is the classic first example of how ciphers work.
  • Puzzles and games: create or crack coded messages in escape rooms and ARGs.
  • ROT13 spoilers: forums use ROT13 to hide spoilers and answers so readers reveal them only when they want.
  • Light obfuscation: scramble text that should not be readable at a glance.
  • Teaching: demonstrate shifting and modular arithmetic.

For a different kind of encoding, try the Morse Code Translator, and explore more options across the free text tools.

Tips and common mistakes

Use it correctly:

  • It is not secure. A Caesar cipher is trivial to break, so never use it for real secrets or passwords. It is for fun, learning, and spoilers only.
  • Match the shift to decode. You must decode with the same shift used to encode. If you do not know the shift, try each value from 1 to 25 until the text reads correctly.
  • ROT13 is self-reversing. With a shift of 13, encoding and decoding are the same operation, so you do not need to remember which way to go.
  • Only letters shift. Numbers, spaces, and punctuation are intentionally left unchanged.

Your text stays in your browser

The Caesar Cipher tool runs entirely in your browser. Whatever you type is encoded or decoded locally and never uploaded to a server or stored, so your messages stay on your device. There is no account and no tracking. When you are done, browse the other free text tools or the full text category for translators, converters, and counters that all work the same private way.

Try the tool from this guide

Caesar Cipher (ROT13)

Encode and decode shifted text.

Open Caesar Cipher (ROT13)

Frequently asked questions

Is the Caesar cipher tool free?

Yes. It is completely free with no sign-up and no limits. Encode and decode at any shift instantly.

Is my text private?

Yes. All encoding and decoding happen locally in your browser. Your text is never uploaded or stored, so it stays on your device.

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, so the same operation both encodes and decodes. Forums use it to hide spoilers.

How do I decode a Caesar cipher if I do not know the shift?

Try each shift from 1 to 25 until the output reads as normal text. With only 25 possibilities, a Caesar cipher is quick to crack by trial.

Is a Caesar cipher secure?

No. It is easily broken and should never be used for real secrets or passwords. It is meant for learning, puzzles, and hiding spoilers.

Sources

Share this article

Send it to a teammate or save the link for later.

Related tools

A mailbox receiving new tools, guides and feature updates

New tools, straight to your inbox

A short note whenever we ship a new free tool or guide. No spam, unsubscribe in one click.

  • No spam
  • Unsubscribe anytime
  • Your email is safe
3min left