What is a Caesar cipher?
A Caesar cipher shifts every letter by a fixed amount in the alphabet. Shift 1: A → B, B → C.
Shift 13 (ROT13): A → N, B → O. Non-letter characters (digits, punctuation, spaces) pass through
unchanged. Named after Julius Caesar, who used a shift of 3 to encrypt military messages around 50 BCE.
Why ROT13 specifically?
Shift 13 is special because the English alphabet has 26 letters — applying ROT13 twice gets you back to the original. So one tool encodes and decodes. ROT13 was popular on Usenet in the 80s–90s as a mild "spoiler protection" — readers had to deliberately decode to read the answer to a riddle or the ending of a movie.
Is this real encryption?
No. Caesar ciphers are trivial to break — there are only 26 possible shifts, and modern letter-frequency analysis can crack any text longer than ~30 characters. They're useful for:
- CTF challenges and puzzle games
- Spoiler hiding (the Usenet tradition)
- Teaching the basics of cryptography
- Light obfuscation where the goal is to make the reader take an extra step, not security
For real secrecy, use AES-GCM via WebCrypto, libsodium, or a battle-tested library. Never roll your own crypto for production.
The brute-force "all shifts" view
If you don't know the shift used, expand the "Show all 26 candidate decryptions" panel below the tool. Visually scan the 26 lines — the readable English text is your answer. Frequency analysis (the most common letter in English text is E, second is T) accelerates this even more, but with only 26 options, eyeballing is fast enough.
Caesar variants beyond ROT
- Vigenère cipher — uses a keyword to vary the shift letter-by-letter. Stronger against simple frequency analysis but still breakable.
- Affine cipher — multiplies and shifts:
(a*x + b) mod 26. Slightly more complex. - Substitution cipher — every letter maps to a fixed but arbitrary other letter. Strong against shift-only attacks but vulnerable to frequency analysis.
This tool only does Caesar (single-shift). Vigenère and Affine are on the roadmap as separate tools.
Frequently asked questions
Why is ROT13 the default?
It's the most-searched and most-used Caesar variant. The exact-keyword cluster ("caesar cipher", "rot13", "rot13 decoder") is one of the surprisingly large search verticals on the web.
Does case matter?
Both upper- and lowercase letters are shifted independently and case is preserved in the output. Hello → Uryyb.
Negative shifts?
Yes. Shift −13 is equivalent to shift +13 (because 26 − 13 = 13). Shift −1 maps B → A. Negative shifts are useful when you know the message was encoded with a positive shift and you need to reverse it.
Is this safe to paste sensitive text into?
The tool runs entirely in your browser. But again — Caesar isn't security. Don't paste your bank PIN. Paste a riddle's answer.
Related tools
- Base64 Encoder / Decoder — Encode and decode Base64 strings and files. Client-side, safe for sensitive data.
- URL Encoder / Decoder — Percent-encode and decode URLs per RFC 3986.
- Hash Generator — Generate MD5, SHA-1, SHA-256, and SHA-512 hashes client-side.
- Number Base Converter — Convert between binary, octal, decimal, hexadecimal, and text (UTF-8). Handles arbitrary lengths. Per-byte and per-character views.
Pillar
Part of Encoding & Crypto.
Written by Mian Ali Khalid. Last updated 2026-04-25.