Skip to main content
ToolsHub

ROT13 / Caesar Cipher

Type text and choose a shift (13 for ROT13) to encode or decode a Caesar cipher instantly — all in your browser.

Updated

Files never leave 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.

  1. Paste or type the text you want to encode or decode into the input area.
  2. Set the shift amount — 13 for standard ROT13, or any value from 1 to 25 for a general Caesar cipher.
  3. The encoded (or decoded) output updates instantly in the output area.
  4. 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.

Caesar cipher shift examples
ShiftPlaintextCiphertextNotes
1ABCBCDMinimal shift
3HELLOKHOORCaesar's historical shift
13HELLOURYYBROT13 — self-inverse
25ABCZABEquivalent 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

Free · No spam

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

Explore all Text Tools.