How to use ROT13 / Caesar Cipher
The ROT13 / Caesar Cipher tool encodes and decodes text by shifting each letter a configurable number of positions through the alphabet — defaulting to the classic ROT13 shift of 13. Because the Latin alphabet has 26 letters, applying ROT13 twice returns the original text, making the same operation both encoder and decoder. All processing happens in your browser; nothing is transmitted to a server.
- Paste or type the text you want to encode or decode into the input area.
- Set the shift amount — 13 for standard ROT13, or any value from 1 to 25 for a general Caesar cipher.
- The encoded (or decoded) output updates instantly in the output area.
- Copy the result with the Copy button or share it via the result actions bar.
Your data never leaves your device — 100% private processing.
How the Caesar cipher works
The Caesar cipher is one of the oldest known encryption techniques, attributed to Julius Caesar who reportedly used a shift of 3 to protect military messages. Each letter in the plaintext is replaced by a letter a fixed number of positions further in the alphabet, wrapping from Z back to A. For example, with a shift of 3, A becomes D, B becomes E, and Z becomes C. The cipher preserves case — uppercase letters stay uppercase — and non-alphabetic characters (digits, punctuation, spaces) pass through unchanged. Despite its simplicity, the Caesar cipher laid the groundwork for all substitution ciphers and remains a staple in cryptography education.
| Shift | Plaintext | Ciphertext | Notes |
|---|---|---|---|
| 1 | ABC | BCD | Minimal shift |
| 3 | HELLO | KHOOR | Caesar's historical shift |
| 13 | HELLO | URYYB | ROT13 — self-inverse |
| 25 | ABC | ZAB | Equivalent to shift −1 |
ROT13 in internet culture
ROT13 became a de facto standard for hiding spoilers, puzzle answers, and punchlines on Usenet newsgroups in the 1980s. Because it is trivially reversible, it serves as a "content warning" rather than true security — readers must consciously choose to decode the text. Many Unix systems include a `tr` command one-liner (`tr A-Za-z N-ZA-Mn-za-m`) for ROT13, and programming language communities use it as a canonical example of simple text transformation. It is also used to obfuscate email addresses from naive spam scrapers, though modern bots easily defeat it.
Worked examples
ROT13 encode
Inputs: 'Hello'
Result: Uryyb
ROT13 is self-inverse
Inputs: apply ROT13 to 'Uryyb'
Result: Hello
Caesar shift 3
Inputs: 'HELLO' · shift 3
Result: KHOOR
Glossary
- ROT13
- A Caesar cipher with a fixed shift of 13 — applying it twice restores the original text because 13 is half of 26.
- Caesar cipher
- A substitution cipher that replaces each letter with a letter a fixed number of positions down the alphabet.
- Plaintext
- The original, unencoded message before a cipher is applied.
- Ciphertext
- The encoded message produced by applying a cipher to plaintext.
- Substitution cipher
- An encryption method that replaces each unit of plaintext with a corresponding unit of ciphertext according to a fixed rule.
Related reading
Frequently Asked Questions
Why use ROT13 / Caesar Cipher?
- Configurable shift from 1 to 25 supports both classic ROT13 and any general Caesar cipher offset
- Applying the same shift twice always decodes ROT13, so a single page handles encode and decode together
- Non-alphabetic characters — digits, punctuation, spaces — pass through unchanged by the cipher
- Original letter case is preserved so the encoded output has the same capitalisation pattern as the input
Common use cases
- Encode a spoiler or puzzle answer to post on a forum without immediately revealing the solution
- Decode a ROT13-encoded answer from a cryptography worksheet or self-graded textbook exercise
- Apply a historical Caesar-3 cipher to a short phrase as a classroom demonstration of substitution ciphers
- Lightly obfuscate an email address in plain-text content to reduce harvesting by naive scrapers
- Illustrate the concept of a symmetric cipher where the identical operation both encodes and decodes
Get weekly tool tips & updates
New tools, power-user tips, and productivity hacks — delivered free every Friday.
No spam, ever. Unsubscribe with one click.
Related Text Tools
Text Repeater
Repeat any text a set number of times, with optional separators and new lines. Great for testing and templates. Free and private.
NATO Phonetic Alphabet Converter
Convert text into the NATO phonetic alphabet (Alpha, Bravo, Charlie). Spell names, codes, and numbers clearly over the phone or radio. Free and private.
Add Line Numbers
Add line numbers to any text or code, with custom start, padding, and separators. Also remove existing numbers. Free and private.
Text to Handwriting
Convert typed text into realistic handwriting and download it as an image. Choose pens, paper, and ink color. Free and private.
AES Encrypt / Decrypt
Encrypt and decrypt text with AES-256-GCM and a password. Strong, standards-based encryption in your browser. Free and private.
Morse Code Translator
Translate text to Morse code and Morse code to text instantly. Supports letters, numbers, and punctuation. Free online Morse code translator.
Explore all Text Tools.