ROT13 Cipher

Encode or decode text with the classic ROT13 letter-substitution cipher.

This tool runs entirely in your browser. Your files are never uploaded to a server.

ROT13 is its own inverse — run the output back through this tool to get your original text.

What this tool does

Shifts every letter in your text 13 positions through the alphabet, wrapping from Z back to A, while leaving digits, spaces, and punctuation untouched — a simple Caesar cipher with a fixed shift of half the 26-letter alphabet.

How to use it

Type or paste text into the input box; the ROT13 result appears automatically below it. There's a single box rather than separate encode/decode buttons, since ROT13 works the same way in both directions.

Worked example

Applying ROT13 to `Hello, World!` produces `Uryyb, Jbeyq!`. Pasting that result back into the tool returns `Hello, World!` again — running the cipher twice always cancels itself out.

Why it's its own inverse

Shifting a 26-letter alphabet by 13 twice equals shifting by 26, which is the same as not shifting at all, since 26 is exactly the alphabet's length — that's the mathematical reason ROT13 needs no separate decode mode.

What it's actually used for

ROT13 is a long-standing convention on forums and newsgroups for hiding spoilers, puzzle solutions, or punchlines from casual view — a reader has to make a deliberate choice to decode the text rather than being confronted with it immediately.

Not a security tool

Because the shift amount is fixed and public knowledge, ROT13 provides no real confidentiality: anyone who recognizes the pattern can decode it by eye, and it should never be used to protect passwords, personal data, or anything genuinely sensitive.

Privacy

The transformation runs entirely in your browser via client-side JavaScript; the text you type is never uploaded to a server or stored.

Frequently Asked Questions

How does ROT13 work?
ROT13 shifts every letter 13 positions forward in the alphabet, wrapping around at the end. Numbers and symbols are left untouched.
Why is there no separate 'decode' button?
ROT13 is symmetric: applying it twice returns the original text, so the same box works for both encoding and decoding — just paste the output back in.
Is ROT13 secure for hiding sensitive data?
No — ROT13 is not encryption and offers no real security. It's meant for obfuscating text like spoilers or puzzle answers, not protecting sensitive information.