Caesar Cipher & ROT13

Encode or decode text using classical Caesar cipher, ROT13, or brute-force all 25 possible shifts

Shift Amount3
Direction
Quick Shift:
Encoded · shift 3
Alphabet Mapping
PlainABCDEFGHIJKLMNOPQRSTUVWXYZ
CipherDEFGHIJKLMNOPQRSTUVWXYZABC

A Brief History of Classical Ciphers

From Julius Caesar's military dispatches to internet spoiler culture — classical ciphers shaped how we think about secrecy.

~100 BCJulius Caesar

Shift cipher with key 3, used in military communications

1563Vigenère Cipher

Polyalphabetic substitution, harder to crack

1987ROT13

Internet standard for hiding spoilers and jokes

1977AES Predecessor

DES introduced — the start of modern symmetric encryption

What is Caesar Cipher & ROT13?

The Caesar Cipher & ROT13 tool lets you encode and decode text using one of the oldest and most famous encryption techniques in history. Named after Julius Caesar, who reportedly used it to protect military messages, the Caesar cipher works by shifting each letter in the alphabet by a fixed number of positions. A shift of 3 turns "A" into "D", "B" into "E", and so on. To decode, simply shift in the reverse direction by the same amount.

ROT13 is a special case of the Caesar cipher with a shift of exactly 13, which is notable because encoding and decoding are the same operation — applying ROT13 twice returns the original text. ROT13 is commonly used in online communities to hide spoilers, puzzle solutions, or potentially offensive content behind a simple reversible transform that requires a deliberate action to read.

Beyond its historical and educational value, understanding the Caesar cipher is a foundational step in learning cryptography. The tool also includes a brute-force mode that tries all 25 possible shift values simultaneously, displaying all outputs so you can identify the correct decode without knowing the original shift. This is useful for solving cryptography puzzles, CTF (Capture the Flag) challenges, or simply understanding why such a simple cipher offers no real security against modern analysis.

How to Use Caesar Cipher & ROT13

  1. Enter your text

    Type or paste the message you want to encode or decode into the input field.

  2. Set the shift value

    Enter a shift number from 1 to 25, or select ROT13 (shift 13) from the quick-select option.

  3. Encode or decode

    Click Encode to cipher the text, or Decode to reverse it. ROT13 uses the same button for both operations.

  4. Try brute-force mode

    Use the brute-force option to display all 25 shift outputs at once and spot the correct decode visually.

Key Benefits

Classic cipher support

Supports all 25 Caesar cipher shifts and the popular ROT13 variant used in online communities.

Brute-force all shifts

View all 25 possible decodings at once — perfect for CTF challenges or cipher puzzles where the shift is unknown.

Instant results

Encoding and decoding happen in real time as you type, with no need to click a button.

Runs in the browser

No server involved — your text is processed locally and never transmitted anywhere.

Frequently Asked Questions

ROT13 is simply a Caesar cipher with a shift of 13. Because the alphabet has 26 letters, a shift of 13 is self-inverse — you apply the same operation to both encode and decode.

No. It is a substitution cipher with only 25 possible keys, making it trivially breakable by brute force or frequency analysis. It should never be used for real security purposes.

Only alphabetic characters (A–Z and a–z) are shifted. Numbers, spaces, punctuation, and special characters are passed through unchanged.

CTF stands for Capture the Flag — a type of cybersecurity competition where participants solve puzzles to find hidden "flag" strings. Caesar ciphers are a common beginner-level CTF challenge.

Related Tools