Caesar Cipher & ROT13

Encode and decode text with ROT13, Caesar shift and Atbash ciphers. Fun puzzles and classroom use. Free.

50 free uses every 24 hoursUnlimited with Pro →

Private by design — your data stays on your deviceEverything runs right here in your browser. What you type is not sent to our server and is not stored.
  • Runs in your browser
  • Not stored
  • No sign-up

This free Caesar cipher tool encodes and decodes text with three classic ciphers: ROT13, Caesar shift and Atbash. It is made for puzzle fans, teachers, students and anyone who wants to hide a message for fun. These ciphers are not real security, so use them for games and learning only.

How do you use the Caesar cipher and ROT13 tool?

The tool has two main steps, and the whole thing takes a few seconds.

  1. Pick a cipher. Choose ROT13, Caesar shift or Atbash.
  2. Type your text. Write or paste the message you want to encode, or the coded text you want to read.
  3. Check the result. Encode and decode both work, so you can turn plain text into code and back again.
How to use the Caesar Cipher & ROT13 on OneHubTools: 3 steps with a real screenshot of the tool
How to use the Caesar Cipher & ROT13, step by step.

Need to go a step further? The Morse Code Translator and the Reverse Text work the same way, right in your browser.

Everything runs in your browser, and the tool is free to use.

What are ROT13, Caesar shift and Atbash?

All three are letter-substitution ciphers. Each letter in your message is swapped for a different letter by a fixed rule. The rule is what makes them different.

  • Caesar shift moves every letter a set number of places along the alphabet. With a shift of 3, A becomes D and B becomes E.
  • ROT13 is a Caesar shift of exactly 13 places. The alphabet has 26 letters, so running ROT13 twice gives you the original text back.
  • Atbash flips the alphabet. A becomes Z, B becomes Y, and so on. Like ROT13, it undoes itself when you apply it twice.
Result from the Caesar Cipher & ROT13 on OneHubTools
What the Caesar Cipher & ROT13 gives you.

Cipher comparison with the same word

Here is how the word "Hello" looks in each cipher. The Caesar example uses a shift of 3.

CipherRule"Hello" becomes
Caesar shift (3)Move each letter 3 places forwardKhoor
ROT13Move each letter 13 placesUryyb
AtbashSwap each letter with its mirrorSvool

What is a Caesar cipher good for?

A Caesar cipher will not protect anything private. It is very good for light, practical jobs where the point is the puzzle, not the secret.

  • Classroom lessons. Teachers use it to show how substitution ciphers work and why simple codes are easy to break.
  • Puzzles and games. Scavenger hunts, escape-room clues and treasure-hunt notes all work well with a short coded message.
  • Spoiler hiding. ROT13 has long been used to hide jokes or spoilers so readers have to choose to decode them.
  • Checking homework. Students can test their hand-worked answers against the tool.
  • Notes for friends. Kids and adults alike enjoy passing a message that needs a quick decode.

Tips for best results

  • Write down your shift. If you use a Caesar shift, tell the reader which number you used. Without it, they have to guess.
  • Use ROT13 when you want zero setup. Nobody needs a key because the shift is always 13. Paste the coded text in and you get the original.
  • Keep messages short for puzzles. A single sentence is easier to crack and more fun than a full page.
  • Test a short word first. Try "cat" with a shift of 3. You should get "fdw". If it matches, you know the settings are right.
  • Don't send passwords this way. These ciphers are only for fun and teaching. Anyone can crack them in minutes.

Why does my decoded text look wrong?

Most problems come from a few simple mistakes.

  • Wrong cipher. Text coded with Atbash will not decode with ROT13. Match the cipher to the one used to encode.
  • Wrong shift. A Caesar message decodes only with the same shift. If you encode with 5 and decode with 4, you get nonsense.
  • Encoding twice. Running the tool again on already coded text can scramble it a second time. Decode once, then read the result.
  • Numbers and punctuation. These ciphers work on letters. Digits and symbols are not part of the alphabet, so don't expect them to change.

Can you break a Caesar cipher without the shift?

Yes, and it is easy. A standard Caesar cipher has only 25 possible shifts for the English alphabet. You can try each one until a readable sentence appears. That weakness is exactly why the cipher teaches so well and protects so little.

A short history of letter-shift codes

Shifting letters is one of the oldest ways to hide a message. Julius Caesar is said to have used it more than 2,000 years ago, and puzzle books and escape rooms still use it today. It is easy to break, because there are only 25 possible shifts, so treat it as a game or a teaching tool rather than real security. For anything private, use a proper password manager or encrypted messaging app instead.

Limits and specs

PriceFree
Free use50 uses every 24 hours — shared with 178 other tools in the “Basic tools” group
Where it runsIn your browser
Sign-upNot needed
Muhammad Shahwaiz Gillani
Maintained and reviewed by Muhammad Shahwaiz GillaniSoftware engineer and founder of OneHubTools · Last reviewed

How we checked it: We tested it in Chrome with sample text and checked the output by hand.

Where the facts come from

According to Wikipedia, CIDR notation such as /24 shows how many leading bits of an IPv4 address belong to the network; CIDR was introduced more than 30 years ago, and IPv4 has only about 4.3 billion addresses in total.

Spotted a mistake or the tool did not work for you? Tell us and we will fix it.

Rate this tool

Ratings come only from signed-in users, so every rating is verified.

Only signed-in users can rate tools, so every rating shows a ✔ Verified badge.Sign in to rate

Frequently asked questions

What is a Caesar cipher?

A Caesar cipher is a simple code that shifts every letter a fixed number of places along the alphabet. With a shift of 1, A becomes B and B becomes C. It is one of the oldest and easiest ciphers to learn.

Is ROT13 the same as a Caesar cipher?

ROT13 is a Caesar cipher with a fixed shift of 13. Because the alphabet has 26 letters, applying ROT13 twice returns the original text, so one setting both encodes and decodes.

How do I decode ROT13 text?

Pick ROT13 in the tool and paste in the coded text. The tool turns it back into readable words. ROT13 reverses itself, so decoding works the same way as encoding.

What does the Atbash cipher do?

Atbash swaps each letter with its mirror in the alphabet, so A becomes Z and B becomes Y. "Hello" turns into "Svool". Applying it a second time brings the original text back.

Is a Caesar cipher secure?

No, a Caesar cipher is not secure. It has very few possible keys and can be broken in minutes by trying each one. Use it for puzzles, games and teaching, never for private information.

Is this Caesar cipher tool free?

Yes, the tool is free to use. It works in your browser, so you can encode and decode text up to the free daily limit (unlimited with Pro).

Related tools

All text tools →