Caesar Cipher Encoder, Decoder and Cracker

Shift letters to encode or decode a message, apply ROT13, or paste a message you can't read and let the tool try every shift. It runs in your browser; nothing is sent to our server.

What Is a Caesar Cipher?

A Caesar cipher replaces each letter with the letter a fixed number of places further along the alphabet. With a shift of 3, A becomes D, B becomes E, and at the end the alphabet wraps around, so X becomes A, Y becomes B and Z becomes C. It's named after Julius Caesar, who, according to the Roman historian Suetonius, used a shift of 3 for private letters.

Example with a shift of 3: HELLO WORLD becomes KHOOR ZRUOG. To decode it, shift each letter 3 places back. This tool keeps capital and small letters as they are and leaves numbers, spaces and punctuation unchanged.

ROT13

ROT13 is a Caesar cipher with a shift of 13. Because the alphabet has 26 letters, applying ROT13 twice gives back the original text, so the same button both encodes and decodes. It was popular on Usenet and forums for hiding spoilers and puzzle answers: anyone could read them, but not by accident.

How to Crack a Caesar Cipher

There are only 25 possible shifts, so the quickest way is to try them all, which is what Crack: Try All Shifts does. To pick the right one, the tool compares the letter frequencies in each result with normal English, where E, T, A and O are the most common letters, and lists the closest match first.

By hand, find the most common letter in the message. In English text it's usually E, so if the most common letter is H, the shift is probably 3. Short messages, names and non-English text can fool this method, so glance through the whole list if the top answer looks wrong.

Is a Caesar Cipher Secure?

No. Anyone can break it in seconds, as this page shows. It's useful for puzzles, escape rooms, geocaching and learning how encryption works, but never for passwords or private data. Real encryption such as AES uses keys so large that trying them all would take longer than the age of the universe. For passwords, use the password generator; to see how one-way hashing works, try the hash generator.

Related Ciphers

  • Vigenère cipher. Uses a keyword so each letter gets a different shift. It was considered unbreakable for about 300 years.
  • Atbash. Reverses the alphabet (A becomes Z, B becomes Y), with no key at all.
  • Substitution cipher. Swaps each letter for another letter picked from a scrambled alphabet, with no fixed shift. You break it with the same frequency analysis.

Frequently Asked Questions

How do I decode a Caesar cipher without knowing the shift?
Paste the message and click Crack: Try All Shifts. The tool decodes it with all 25 shifts and ranks them by how closely the letter frequencies match English, so the most likely answer comes first.
What is ROT13?
ROT13 is a Caesar cipher with a shift of 13. Since the alphabet has 26 letters, applying it twice gives back the original, so the same step encodes and decodes.
What shift did Julius Caesar use?
According to the Roman historian Suetonius, Caesar shifted each letter three places, so A became D. That's this tool's default shift.
Is the Caesar cipher secure?
No. With only 25 possible shifts, anyone can break it in seconds. Use it for puzzles and learning, never for passwords or private information.
Last reviewed: Reviewed by the

How this tool works: This tool runs in your browser and on our server in real time. Depending on the tool, results are computed directly from the input you provide or retrieved from live, authoritative data sources at the moment you run a lookup. We do not sell your data, and your lookups are kept private — any history shown here is stored only on your device.