How to Encode & Decode Text With ROT13 in Your Browser
To encode or decode text with ROT13, paste your text into the ByteTools ROT13 Encoder, keep ROT13 selected, and read the rotated result below — because ROT13 is its own inverse, the exact same step reverses it, so there is no separate decode button. Each letter is simply shifted 13 places through the alphabet, and everything happens locally in your browser.
ROT13 has been the internet's favourite way to hide spoilers, riddle answers and email addresses in plain sight for decades. Below is the full walkthrough, plus how the ROT5 and ROT18 options extend the trick to numbers.
What the ROT13 encoder actually does
ROT13 replaces every letter with the one 13 positions later in the alphabet: A becomes N, B becomes O, and past Z it wraps back to the start. Since the alphabet has 26 letters and 13 is exactly half, running the rotation twice returns you to the original text. That symmetry is why a single button both hides and reveals your words.
The tool preserves case, punctuation and spacing untouched — only the 26 letters (and optionally the digits) move. So Hello, World! becomes Uryyb, Jbeyq! with the comma, space and exclamation mark exactly where you left them.
Step-by-step: encode and decode
- Paste or type your text into the input box. The output updates instantly as you go.
- Choose your mode. Leave ROT13 selected for letters only, switch to ROT5 to rotate digits 0–9, or pick ROT18 to transform letters and numbers together.
- Read the rotated output that appears below the box — no Generate click required.
- To decode, paste the rotated text back in with the same mode selected. Because the cipher is self-inverse, it unscrambles automatically.
- Copy the result with the one-click copy button and paste it wherever you need it.
ROT13, ROT5 and ROT18 at a glance
| Mode | Rotates | Example | Best for |
|---|---|---|---|
| ROT13 | Letters A–Z | Secret → Frperg | Plain text spoilers and answers |
| ROT5 | Digits 0–9 | 2024 → 7579 | Hiding numbers or codes |
| ROT18 | Letters + digits | Room 12 → Ebbz 67 | Text that mixes words and numbers |
All three modes are self-inverse, so the same decode-by-re-encoding trick applies whichever one you use.
Why it runs entirely in your browser
Every rotation is computed with JavaScript on your own device. Nothing you type is uploaded, logged or stored, and the tool keeps working offline once the page has loaded. That makes it safe for scratch text and personal notes — though remember ROT13 is obfuscation, not encryption, so it is never a substitute for real security.
Try the ROT13 Encoder & Decoder — free and 100% in your browser.
FAQ
Do I need to click a decode button?
No. ROT13 is its own inverse, so decoding is identical to encoding. Just paste the rotated text back into the same mode and the original reappears — the tool never needs a separate decode toggle.
Can I encode numbers with ROT13?
Plain ROT13 leaves digits alone. To rotate numbers, enable ROT5 for digits only, or ROT18 to shift both letters and digits in a single pass.
Will the tool change my punctuation or line breaks?
No. Only letters and, if enabled, digits are rotated. Spaces, commas, symbols and line breaks pass through untouched so your formatting stays intact.
Does the tool work without an internet connection?
Yes. Once the page has loaded it runs fully client-side, so you can encode and decode offline. As a Progressive Web App it can even be installed for quick access.
Related free tools
- Caesar Cipher Encoder & Decoder — shift letters by any amount, not just 13.
- Atbash Cipher Encoder & Decoder — mirror the alphabet for a different classic cipher.
- Vigenère Cipher Encoder & Decoder — add a keyword for a stronger substitution cipher.
- Base64 Encoder — encode text and data into a transport-safe format.
Built by ByteVancer
ByteTools is a free product of ByteVancer, a software and web development studio that builds web apps, SaaS platforms and custom software. If you need more than a browser tool can offer, explore how the ByteVancer team can help bring your product to life.
Recommended reading
ROT13 Tips, Best Practices & Mistakes to Avoid
Pro tips for using ROT13 the right way: when ROT5 and ROT18 matter, the security mistake to never make, and how to troubleshoot odd output.
ROT13 Use Cases: Real Examples of Where It Shines
From forum spoilers to puzzle hunts and email obfuscation — real-world ROT13 use cases with worked examples you can copy today.
Text Cipher Tips: Avoid These Common Mistakes
Pro tips for Caesar, ROT13 and Vigenère ciphers — pick the right shift and keyword, dodge decoding pitfalls, and know when never to trust them.
How to Encrypt Text with Caesar, ROT13 and Vigenère
Step-by-step guide to encoding and decoding messages with Caesar, ROT13 and Vigenère ciphers in your browser — private, free and no sign-up needed.