Caesar Cipher Encoder and Decoder

Encode and decode text with a Caesar shift, ROT13 or Atbash, and read a coded message at all 25 shifts to find the one that makes sense.

Text Tools Runs in your browser · no upload

Reviewed 23 November 2026 · Free · No account needed

ExecutionYour browserInput never leaves your tab
File retentionNoneNothing is stored
AccountNot requiredNo sign-up, no paywall
PriceFreeNo trial, no usage cap on the tool itself

How to use

  1. Choose Caesar shift, ROT13 or Atbash, and for a Caesar shift choose Encode or Decode.
  2. Set the shift with the slider, or press the 3 or 13 chip. Type or paste your text.
  3. Read the result on the right and press Copy.
  4. To crack a message without the shift, paste it and turn on Show all 25 shifts, then press Use on the line that reads as sensible text.

Example

Input: Hello, World! with a shift of 3

Output: Khoor, Zruog!

How it works

A Caesar cipher replaces each letter with the letter a fixed number of places further along the alphabet, wrapping from Z back to A. Decoding moves the letters back by the same number. ROT13 is the shift of 13, and Atbash swaps each letter with its mirror, A with Z, B with Y and so on.

encoded = (letter position + shift) mod 26. decoded = (letter position − shift) mod 26. Atbash: new position = 25 − position. The likely shift is the one whose decoded text has the smallest chi-squared distance from English letter frequencies.

Limits and edge cases

  • Only the letters A to Z are changed, in upper and lower case. Digits, spaces, punctuation, accented letters and other alphabets stay as typed.
  • Text is limited to 100,000 characters.
  • The likely-shift guess compares letter frequencies with English and needs at least 25 letters. Other languages and very short texts can fool it.
  • These ciphers are trivial to break and are for puzzles and learning, never for protecting secrets.
  • A shift of 26 is the same as 0, so only the shifts 1 to 25 change the text. That is why there are 25 possibilities to try.
  • ROT13 is its own inverse: applying it twice returns the original text, so there is no separate decode step.
  • Case is kept: a capital letter stays a capital and a lower-case letter stays lower case.
  • Words that are the same after a shift, or very short texts, can make several shifts look equally good, so read the candidates yourself.

Privacy

Your text is processed in this browser tab. It is never uploaded, logged or stored.

About this page

Written and reviewed by Toolnexo on 23 November 2026. The limits above describe the published tool, not an idealised version of it. If a result looks wrong or the page is unclear, email [email protected] with the tool URL and what you entered. Corrections are published here.

Further reading

Guides that use Caesar Cipher Encoder and Decoder

All guides →

Related tools

FAQ

Questions about Caesar Cipher Encoder and Decoder

What is a Caesar cipher?

A Caesar cipher is one of the oldest and simplest ciphers. Every letter is moved a fixed number of places along the alphabet, so with a shift of 3, A becomes D and B becomes E. Julius Caesar is reported to have used a shift of 3 for private messages.

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

Try every shift. There are only 25, so you can read the text at each one and spot the one that makes sense. Turn on Show all 25 shifts to see them in a table. A longer text also lets the tool point out the most English-looking shift.

What is ROT13?

ROT13 is a Caesar cipher with a shift of 13. Because the alphabet has 26 letters, applying it twice gives the original text back, so the same operation encodes and decodes. It is often used to hide spoilers and puzzle answers, not to keep secrets.

What is Atbash?

Atbash is an ancient cipher that mirrors the alphabet: A becomes Z, B becomes Y, C becomes X and so on. Like ROT13, applying it twice returns the original text.

Is a Caesar cipher secure?

No. With only 25 possible shifts it can be broken in seconds by hand or by a computer. Use it for puzzles, games and teaching, and use proper encryption to protect anything private.

Is my text uploaded?

No. The text is shifted in your browser and is never sent anywhere.