Skip to content

Caesar Cipher

Encode and decode text with the Caesar cipher. Shift letters A-Z by any amount (1-25). Encrypt and decrypt instantly. Free, 100% in your browser.

What is the Caesar cipher?

The Caesar cipher is one of the oldest and simplest encryption techniques, attributed to Julius Caesar, who reportedly used it to protect military communications. It works by shifting each letter in the plaintext by a fixed number of positions in the alphabet. For example, with a shift of 3, A becomes D, B becomes E, and so on. The cipher wraps around, so X becomes A with a shift of 3. Non-letter characters (digits, punctuation, spaces) are left unchanged.

History of the Caesar cipher

Ancient Rome — Julius Caesar used a shift of 3 to encrypt messages to his generals. Medieval era — variations of simple substitution ciphers were widely used for diplomatic and military communication. Modern era — the Caesar cipher is considered trivially breakable with only 25 possible keys, but it remains an important educational tool in cryptography. ROT13 — the most popular modern variant uses a shift of 13 and is self-reciprocal (encoding and decoding are the same operation).

Common use cases

Education — learn the fundamentals of substitution ciphers and cryptanalysis. Puzzles & games — create or solve cipher challenges and treasure hunts. CTF competitions — Caesar ciphers frequently appear in capture-the-flag challenges. Light obfuscation — hide spoilers or casual text from plain reading. Frequency analysis practice — a great starting point for learning how to break ciphers.

Privacy

All encoding and decoding runs 100% in your browser. No data is sent to any server.