Boneyard Tools

ROT13 and ROT47 Encoder and Decoder

Encode or decode text with the ROT13 family of rotation ciphers. ROT13 shifts letters by 13, ROT5 shifts digits by 5, ROT18 does both, and ROT47 rotates all printable ASCII by 47. Every variant is its own inverse, so the same action scrambles and unscrambles, and the result updates live as you type.

How to use the ROT13 encoder

  1. Type or paste your text into the box.
  2. Pick a variant: ROT13, ROT47, ROT5 or ROT18.
  3. Read the result update live, then copy it (run it again to decode).

Examples

ROT13 a word

Text: Hello, variant: ROT13
Uryyb

Decode by running ROT13 again

Text: Uryyb, variant: ROT13
Hello

ROT5 shifts digits only

Text: 123, variant: ROT5
678

ROT47 rotates all printable ASCII

Text: Hello, variant: ROT47
w6==@

Frequently asked questions

How does ROT13 work?

ROT13 replaces each letter with the one 13 places ahead in the alphabet, wrapping from Z back to A. Because 13 is exactly half of 26, doing it a second time returns the original letter. That is why the same operation both encodes and decodes, and why there is no key to remember. Case is preserved and digits, spaces and punctuation are left unchanged.

Is ROT13 encryption?

No. ROT13 is not encryption and offers no real security. There is no key, so anyone can reverse it instantly, including this same tool. It is meant for hiding spoilers, puzzle answers or offensive jokes from casual view, not for protecting anything sensitive. For genuine secrecy use a password-based tool such as the AES-GCM text encrypt and decrypt tool.

What is the difference between ROT13, ROT5, ROT18 and ROT47?

ROT13 rotates letters A-Z and a-z by 13. ROT5 rotates the digits 0-9 by 5. ROT18 combines the two, so letters and digits are both rotated at once. ROT47 instead rotates every printable ASCII character from '!' to '~' by 47, which also scrambles punctuation. All four are their own inverse, so running the same variant a second time restores the original text.

Why do I need to run it twice to get my text back?

You do not run anything backwards. Each variant is self-inverse, meaning applying it once scrambles the text and applying the very same variant again unscrambles it. So to decode, paste the scrambled text, keep the same variant, and the output is your original message. The Swap button copies the result back into the input to make that easy.

Does ROT13 change numbers and punctuation?

ROT13 only touches letters, so digits, spaces, punctuation and emoji pass through untouched. If you also want to scramble digits, use ROT18, which adds ROT5 on top of ROT13. ROT47 goes further and rotates punctuation and digits along with letters, since it works over the whole printable ASCII range.

Is my text private?

Yes. The rotation runs entirely in your browser using JavaScript. Your text is never uploaded to a server and nothing is stored, so you can safely paste spoilers or draft messages.

Related tools