Caesar Cipher Encoder and Decoder
Type a message and a shift to encrypt or decrypt it with the Caesar cipher, switch to ROT13 in one click, or add a keyword for the Vigenere cipher. If you have a message and no key, the Break it tab shows all 25 shifts and marks the one that looks most like English. Everything runs in your browser.
Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZ Cipher: DEFGHIJKLMNOPQRSTUVWXYZABC
The Caesar cipher replaces each letter with the one a fixed number of places further along the alphabet, so a shift of 3 turns A into D. ROT13 is a shift of 13, which is its own reverse because the alphabet has 26 letters. These ciphers are for puzzles, teaching and light obfuscation only: there are just 25 useful shifts, so anyone can try them all, as the Break it tab does. The Vigenere cipher uses a repeating keyword to pick a different shift for each letter, which is harder to break but still not secure. Never use any of them to protect real secrets. Everything runs in your browser and nothing is uploaded.
Related Tools
[5 suggestions]Text to Binary Translator
Convert text to binary, hex, decimal, or octal and decode it back, using UTF-8 bytes.
Developer & WebMorse Code Translator
Translate text to Morse code and Morse code back to text, with audio playback at standard speed.
Developer & WebNATO Phonetic Alphabet Converter
Spell any text with the NATO phonetic alphabet, or turn code words back into text, using the official ICAO spellings.
Format ConversionBase64 Encoder / Decoder
Easily encode plain text to Base64 format or decode Base64 back to readable text.
Developer & WebHash Generator (MD5, SHA-1, SHA-256, SHA-512)
Generate MD5, SHA-1, SHA-256, and SHA-512 cryptographic hashes live from any text using the native Web Crypto API.
Developer & WebAbout the Caesar Cipher Encoder and Decoder
The 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 Hello, World! becomes Khoor, Zruog!. Decrypting moves each letter back by the same amount. Letters keep their case, and digits, spaces and punctuation are left alone. ROT13 is the Caesar cipher with a shift of 13. Because the alphabet has 26 letters, applying ROT13 twice returns the original text, so one operation both encrypts and decrypts. The cipher is named after Julius Caesar, who is reported to have used a shift of 3. It offers no real security: there are only 25 useful shifts, so every one can be tried in seconds. The Break it tab does exactly that and ranks the results by how closely their letter frequencies match English, which works well for messages of a few words or more and can be wrong for very short ones. The Vigenere cipher uses a repeating keyword so that each letter gets its own shift: with the key LEMON, ATTACKATDAWN becomes LXFOPVEFRNHR. It is harder to break than a single shift but it is also long obsolete. Use these ciphers for puzzles, teaching and light obfuscation, never to protect anything private.
How does the Caesar cipher work?▾
Each letter is moved a fixed number of places along the alphabet. With a shift of 3, A becomes D and X wraps around to A. To decrypt, move each letter back by the same number.
What is ROT13?▾
ROT13 is the Caesar cipher with a shift of 13. Applying it twice gives back the original text, so the same step encrypts and decrypts. It is used to hide spoilers and puzzle answers, not to protect secrets.
How do I decrypt a Caesar cipher without the key?▾
Try every shift from 1 to 25 and read the results. The Break it tab does this for you and marks the shift whose letter frequencies look most like English.
Is the Caesar cipher secure?▾
No. With only 25 useful shifts it can be broken by hand in minutes. The Vigenere cipher is stronger but is also easy to break with modern methods. Neither should protect real secrets.
Is my data uploaded?▾
No. The calculation runs in your browser and nothing you enter is sent anywhere.