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.
Related articles
- 4 min readROT13 in Python — Encode, Decode, and Extend to ROT47Implement ROT13 encoding in Python using codecs, str.translate, or a manual lookup table. Extends to ROT47 (all printable ASCII), ROT5 (digits), and ROT18 (combined). Includes...
- 5 min readVigenère Cipher — How It Works, Breaking It, and Python ImplementationThe Vigenère cipher uses a keyword to apply multiple Caesar shifts, making it resistant to simple frequency analysis. Learn how it works, the Kasiski and Index of Coincidence...
- 4 min readXOR Cipher Explained — One-Time Pads, Weak Encryption, and Bitwise XORXOR cipher is the basis of stream ciphers and one-time pads. Learn how XOR encryption works, why it's insecure without a truly random key, the Vigenère cipher relationship, and...
- 7 min readCaesar Cipher and ROT13 — How Shift Ciphers WorkThe Caesar cipher shifts each letter by a fixed number. ROT13 shifts by 13. Neither is secure — but understanding them explains every symmetric cipher that came after.
- 4 min readCaesar Cipher Explained — ROT13, ROT47, and Shift CiphersThe Caesar cipher shifts letters by a fixed number of positions. ROT13 is a Caesar cipher with shift 13. Learn how Caesar ciphers work, ROT13 vs ROT47, implementations in...
- 4 min readROT13 Uses — When and Why ROT13 Encoding Is UsedROT13 rotates each letter by 13 positions in the alphabet. It's not encryption but is used for spoiler text, basic obfuscation, and email spam avoidance. Here's where ROT13 is...
Pillar
Part of Encoding & Crypto.
Written by Mian Ali Khalid. Last updated 2026-05-13.