ROT13 / Caesar Cipher (Adjustable Shift)
Caesar cipher with adjustable shift, including ROT13. Toy cipher; not for security.
Note: applying ROT13 (shift 13) twice returns the original text. For other shifts, the inverse is shift = 26 minus your shift.
A Caesar cipher is a toy. It hides text from a casual reader, not from anyone with a computer. Do not use it to protect anything that matters. For real privacy, use modern symmetric encryption (AES-GCM via WebCrypto) with a properly managed key.
What this tool does
Applies a Caesar cipher to text: each letter is rotated forward by a fixed number of positions in the alphabet (the "shift"). Letters wrap around (z + 1 = a). Case is preserved. Non-letter characters pass through unchanged. ROT13 is the special case where the shift is 13. Because the English alphabet has 26 letters, applying ROT13 twice returns the original; this is the property that makes it self-inverse and the reason it shows up in classic Usenet conventions for hiding spoilers.
How to use it
Type in the input. The output updates as you type. Drag the slider or type a number
into the shift field to change the rotation. Press Set ROT13 to
jump to shift 13. Press Copy result to copy the output. Example:
Hello, World! with shift 3 becomes Khoor, Zruog!; with
shift 13 (ROT13) becomes Uryyb, Jbeyq!.
Common use cases
- Hiding a spoiler or punchline in a forum post or chat where readers can opt-in to decode.
- Light obfuscation of a quiz answer or a friendly puzzle.
- Teaching the basic concept of substitution ciphers to someone learning cryptography.
- Testing input handling in software ("what if my user pastes ROT13'd text?").
- Decoding a ROT13 string copied from a forum where it was used as a spoiler convention.
Common pitfalls
- This is not encryption. A Caesar cipher with any fixed shift is breakable in seconds by frequency analysis or by trying all 25 non-trivial shifts and reading. Treat it as obfuscation only.
- Numbers and punctuation pass through. Some Caesar variants
rotate digits as well. This tool does not.
Test 42with shift 1 becomesUftu 42. - Negative shifts. Shifting backward (e.g., shift -3) is the same as a forward shift of 23. This tool accepts only 0-25; convert mentally if you want the backward direction.
Frequently asked questions
- What is ROT13 typically used for?
- ROT13 is a convention for hiding spoilers, punchlines, or quiz answers in forum and email contexts where the reader can opt-in to decode. It is a self-inverse cipher: applying ROT13 twice returns the original. That property is why it became the historical Usenet convention for spoilers; one button does both encode and decode.
- Why is ROT13 not encryption?
- ROT13 has a fixed key (shift 13), and the entire Caesar family has only 25 effective shifts. An attacker can decode any ROT13 text in milliseconds by trying all shifts, by frequency analysis, or by simply reading the output. Real encryption uses keys with billions of trillions of possible values and resists all known attacks even when the algorithm is public.
- Is there a more useful Caesar shift than 13?
- For obfuscation purposes, 13 has the self-inverse property which is genuinely convenient. Other shifts work for the same purpose but require remembering whether to apply forward or backward. Different shifts do not make the cipher meaningfully more secure; an attacker tries all 25 in milliseconds regardless.
- Why do numbers and punctuation pass through unchanged?
- This tool rotates only ASCII letters A-Z and a-z, preserving case and passing all other characters through. Some Caesar variants rotate digits 0-9 separately; others rotate punctuation; some apply ROT47 across the printable ASCII range. The tool here uses the most common convention to stay compatible with how ROT13 is used in forums and email.
- What is the inverse of a Caesar shift?
- For a forward shift of N, the inverse is a forward shift of (26 - N), equivalent to shifting backward by N. So shift 3 forward decodes with shift 23 forward. The tool only accepts shifts 0-25, so for "shift -3" you enter 23. ROT13 specifically is its own inverse because 13 + 13 = 26, which wraps to zero.
- Are there any practical uses besides spoiler-hiding?
- Teaching the basic concepts of cryptography (substitution, key, cipher, frequency analysis) by giving students something simple to break. Light obfuscation in puzzles, escape rooms, or CTF beginner challenges. Decoding posts where you encounter the convention. None of these need security; all are deliberately fun-with-cryptography rather than serious cryptography.
Cite this tool
For academic, journalistic, or technical references. Pick a format:
Citations use 2026 as the publication year. Access date is left as a fillable placeholder where the citation style expects one.