ROT13 / Caesar Cipher
Type text and choose a shift (13 for ROT13) to encode or decode a Caesar cipher instantly — all in your browser.
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.
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
Get weekly tool tips & updates
New tools, power-user tips, and productivity hacks — delivered free every Friday.
No spam, ever. Unsubscribe with one click.
Why use ROT13 / Caesar Cipher?
- Instant results with no signup or account creation
- Works offline once the page is loaded
- Supports Unicode and multilingual text
- Copy results to clipboard with a single click
Common use cases
- Count words in an essay before submission
- Sort a list of items alphabetically
- Remove duplicate lines from CSV exports
- Change the case of text copied from PDFs
- Find and replace text across large documents
Related Text Tools
AES Encrypt / Decrypt
Encrypt and decrypt text with AES-256-GCM and a password. Strong, standards-based encryption in your browser. Free and private.
Binary Code Translator
Convert text to binary and binary to text online. 8-bit ASCII/UTF-8 encoding with instant results. Free binary code translator that runs in your browser.
Morse Code Translator
Translate text to Morse code and Morse code to text instantly. Supports letters, numbers, and punctuation. Free online Morse code translator.
Word Counter
Count words, characters, sentences, and paragraphs, and estimate reading time. Free, instant, and private — ideal for essays, articles, and posts.
Case Converter
Convert text to camelCase, PascalCase, snake_case, kebab-case, UPPERCASE, lowercase, Title Case, and Sentence case instantly.
Lorem Ipsum Generator
Generate Lorem Ipsum placeholder text in paragraphs, sentences, or words. Optionally wrap in HTML paragraph tags.
Explore all Text Tools.