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
- Type or paste your text into the box.
- Pick a variant: ROT13, ROT47, ROT5 or ROT18.
- 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
Vigenere Cipher
Encode and decode text with the Vigenere cipher using a keyword. Letters shift, case and punctuation are preserved, and everything runs in your browser.
Text Encrypt / Decrypt
Encrypt and decrypt text with a password using AES-GCM in your browser. Paste, set a password, copy the result. Nothing is uploaded and nothing is stored.
Text to Binary
Convert text to binary and binary back to text online. Encodes UTF-8 as 8-bit bytes, decodes it back, and copies the result. Free and private.
Add Line Numbers
Add line numbers to any text online. Set the start value, step, and separator, pad numbers to align, and copy or download the result. Free and private.
Bullet List Maker
Turn lines of text into a bullet or numbered list online. Pick dash, asterisk, dot, arrow or numbers, add indent, then copy. Free and private.
Caesar Cipher
Encode and decode text with the Caesar shift cipher. Pick any shift, see the result live, and brute force all 25 shifts. Runs entirely in your browser.