Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

ROT13 Cipher Encoder & Decoder

Encode or decode text with ROT13, ROT5, ROT47, or a custom rotation amount — auto-converts as you type

Your files never leave your browser
Input0 chars, 0 lines
Output0 chars, 0 lines
Ready·

Shift letters by 13 positions, swap digits with ROT5, or scramble all printable ASCII using ROT47 — pick a mode and the output updates as you type. Custom rotations from 1 to 25 are supported too, so you can test any Caesar cipher variant without writing a single line of code.

ROT13 is its own inverse, which means encoding and decoding are the same operation. Run it once to scramble, run it again to get the original back. And everything runs in your browser. Nothing gets uploaded.

How It Works

Paste Text
➜
Shift Each Character
➜
Get Result

ROT13 replaces every letter with the one 13 spots ahead in the alphabet. A becomes N, B becomes O, Z wraps around to M. The alphabet has 26 letters, so shifting by 13 twice brings you back to where you started. That is the entire trick — no keys, no math beyond counting to 13. ROT5 does the same for digits (0–9, shifted by 5), and ROT47 covers every printable ASCII character.

Examples

Hiding a Movie Spoiler

Posting in a forum where people haven't seen the film yet.

INPUT
Bruce Willis was dead the whole time
OUTPUT
Oehpr Jvyyvf jnf qrnq gur jubyr gvzr

Obfuscating an Email Address

Some folks post ROT13'd email addresses on public pages to slow down spam bots. Won't stop a determined scraper, but it filters out the lazy ones.

INPUT
[email protected]
OUTPUT
[email protected]

ROT47 on Mixed Content (Letters, Digits & Symbols)

ROT47 scrambles everything printable — not just letters. Good for hiding a short note from casual eyes when it contains numbers and punctuation too.

INPUT
Room 404: Not Found
OUTPUT
#@@> c_ci }@E u@F?5

Who Uses This

💬 Forum Posters

Hide spoilers, puzzle answers, and joke punchlines behind ROT13 so readers opt in to seeing them.

👨‍💻 Developers

Quick-test Caesar cipher logic or obfuscate example strings in documentation and unit tests.

🎓 Students

Learn how substitution ciphers work by watching letters shift in real time as you drag the rotation slider.

🕵️ CTF Players

Decode ROT13/ROT47 clues fast during capture-the-flag competitions without writing throwaway scripts.

Common Mistakes

Thinking ROT13 is encryption

It is not. Anyone who knows the trick (and that's everyone) can reverse it in seconds. If you need actual security, use AES or another real encryption algorithm.

Using ROT13 on numbers and expecting them to change

Plain ROT13 only shifts letters. Digits stay put. Switch to ROT13+ROT5 mode if you need both letters and numbers rotated.

Forgetting that custom ROT-N isn't self-inverse (unless N=13)

If you encode with ROT-7, running ROT-7 again doesn't decode it. You would need ROT-19 (because 7+19=26). Only ROT13 gives you the decode-by-reapplying shortcut.

Technical Details

Frequently Asked Questions

What is ROT13 used for?

Mostly hiding spoilers, puzzle answers, and joke punchlines on forums and in emails. It's a way of saying "you have to choose to read this." Nobody treats it as security — it is just a polite curtain.

Can ROT13 be cracked?

"Cracked" implies effort. You reverse ROT13 by applying the same transformation again. There is no key to guess and no algorithm to break. A five-year-old with an alphabet chart could do it. So yes — instantly.

What is the difference between ROT13 and a Caesar cipher?

ROT13 is a specific Caesar cipher with a fixed shift of 13. A Caesar cipher can use any shift from 1 to 25. The cool thing about 13 specifically is that encoding and decoding are the same step, since 13 is exactly half of 26.

Does ROT13 work on numbers and symbols?

Standard ROT13 only touches A–Z and a–z. Numbers and symbols pass through unchanged. If you want digits rotated too, use ROT13+ROT5 mode. For full coverage of all printable ASCII — including symbols — switch to ROT47.

Is my text stored or sent to a server?

No. The entire conversion happens in JavaScript inside your browser. Nothing gets transmitted. You can turn off your internet and the tool still works perfectly — that is the simplest proof.

Share: