Overview / Text & Content / Caesar Cipher and Classic Ciphers
Text & Content 100% In-Browser & Offline

Caesar Cipher and Classic Ciphers

Encode and decode with the Caesar cipher, ROT13, Atbash and Vigenère. Try all 25 shifts at once to crack a message. Runs in your browser.

Paste or type text; the result updates live. The example is replaced as soon as you type.

Your files and input never leave your browser – nothing is uploaded.

All 25 shifts

Click a line to use that shift. Handy for decoding a message when the shift is unknown.

    Only the letters A to Z are changed, upper and lower case are kept. Digits, spaces and punctuation stay as they are.

    Julius Caesar is said to have shifted every letter of his military letters by three places so that a captured messenger could not read them. That idea, and a few relatives of it, are collected here. Pick a cipher, type or paste your text, and the encoded or decoded result appears while you type. These ciphers are not secure by modern standards, but they are perfect for puzzles, geocaching, classroom exercises and a bit of fun.

    Use it in three steps

    1. Choose the Cipher and whether you want to Encode or Decode.
    2. Set the shift for the Caesar cipher or the key word for Vigenère, then type or paste your text.
    3. Read the result in the second box and use Copy to take it with you.

    The four ciphers

    • Caesar cipher: every letter moves forward by a fixed number of places, from 1 to 25. A shift of 3 turns HELLO into KHOOR.
    • ROT13: a Caesar cipher with a shift of 13. Because the alphabet has 26 letters, the same step encodes and decodes.
    • Atbash: the alphabet is mirrored, so A becomes Z and B becomes Y. Like ROT13, applying it twice restores the text.
    • Vigenère: a key word decides the shift of each letter, which makes simple letter counting much less useful than with a single shift.

    Solving an unknown message

    If you know a text was written with a Caesar cipher but not the shift, open the list of all 25 shifts. There are only 25 possibilities, so one of the lines will be readable. Click it and the shift is applied to the main box. Letters keep their case, and everything that is not a letter from A to Z, including digits, spaces and punctuation, passes through unchanged. Accented letters are left as they are.

    Private by design

    The calculation happens in your browser and your text is never sent anywhere. Do not rely on these ciphers to protect anything important, because they can be broken in seconds. For real secrets use proper encryption.

    Frequently asked questions (FAQ)

    A substitution cipher in which every letter is replaced by the letter a fixed number of places further along the alphabet. With a shift of 3, A becomes D and X wraps around to A.