ROT13

This will encode or decode base64, urlencode, rot13 or htmlentities to its counterpart.

How to use ROT13

  1. Type or paste your text into the Input box. ROT13 is already selected.
  2. Press Submit.
  3. The rotated text appears in the Output box. To get the original back, submit the output again.

Examples

  • Hello, World 123 becomes Uryyb, Jbeyq 123
  • Uryyb, Jbeyq 123 becomes Hello, World 123 again

How it works

Each letter is replaced by the one 13 places further on in the alphabet, wrapping round from Z to A: A becomes N, B becomes O, and N becomes A. The English alphabet has 26 letters, so doing it twice brings every letter back to where it started. That's why there is only one ROT13 option: encoding and decoding are the same step.

  • Upper and lower case are kept.
  • Digits, spaces and punctuation are not changed.
  • Only the basic letters A–Z are rotated. Accented and non-Latin letters pass through unchanged, so Ærø becomes Æeø.

What ROT13 is good for

ROT13 has been used on Usenet and forums since the 1980s to hide spoilers, punchlines and puzzle answers, so a reader has to choose to reveal them. It is a Caesar cipher with a fixed shift, so it offers no security at all.

FAQ

Can I shift by a different number? Not here. This tool only does the 13-place shift.

Does it rotate digits too (ROT18 or ROT47)? No, digits and symbols stay as they are.


Base64 decode encode

Base64 is a byte sequence of 8-bit padded ascii in mime.

More: Wikipedia and RFC 2045

URLencode decode encode

Tyically used for passing strings and variables between web pages

More info: php.net and RFC 3986


ROT13 encode

Rotates the characters 13 places. Since the basic latin1 alphabet has 26 characters, performing rot13 on a string encrypts it. Do it twice, and it's decrypted.

More info: Wikipedia and php.net

HTMLentities decode encode

Encodes or decodes all characters that have a HTML equivalent entity.

More info: php.net and w3.org