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.

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.

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

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.

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

Explore all Text Tools.