BYTETOOLS

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

  1. Paste or type your text into the input box. The output updates instantly as you go.
  2. 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.
  3. Read the rotated output that appears below the box — no Generate click required.
  4. To decode, paste the rotated text back in with the same mode selected. Because the cipher is self-inverse, it unscrambles automatically.
  5. Copy the result with the one-click copy button and paste it wherever you need it.

ROT13, ROT5 and ROT18 at a glance

ModeRotatesExampleBest for
ROT13Letters A–ZSecretFrpergPlain text spoilers and answers
ROT5Digits 0–920247579Hiding numbers or codes
ROT18Letters + digitsRoom 12Ebbz 67Text 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

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.