Tools/Caesar Cipher

Caesar Cipher / ROT13

Shift letters by any amount (1–25). Set the shift to 13 for ROT13. Decode mode reverses the shift, and you can brute-force all 25 shifts at once.

All processing happens in your browser — nothing is sent to our servers
3

Caesar cipher and ROT13

The Caesar cipher shifts each letter a fixed number of positions through the alphabet — the oldest known substitution cipher. ROT13 is simply a Caesar cipher with a shift of 13, which makes it its own inverse. With only 25 possible keys it offers no real security and is trivially broken by trying every shift. Use it for puzzles and learning, never to protect real data.

How it works
Caesar Cipher / ROT13
Encrypt
01Input text

Plaintext read character by character

02Shift key

A fixed shift from 1 to 25 chosen — 13 gives ROT13

03Rotate letters

Each A–Z and a–z letter advanced by the shift, wrapping around the alphabet; case preserved

04Ciphertext

Non-letters (digits, spaces, punctuation) pass through unchanged

Decrypt
01Ciphertext

Encrypted text read character by character

02Inverse shift

The same key applied in reverse (shift backwards) to undo the rotation

03Rotate letters

Each letter moved back by the shift, wrapping around the alphabet

04Plaintext

Original message recovered — or brute-force all 25 shifts when the key is unknown

Spec: Monoalphabetic substitution (shift cipher); ROT13 = shift 13

The Caesar cipher has only 25 possible keys and offers no real security — it is trivially broken by trying every shift.

Frequently Asked Questions