ROT13 Encoder and Decoder
ED-16Paste text to apply ROT13, ROT47 or ROT18. The same step both encodes and decodes, because applying it twice gives you the original text back.
Runs in your browser. Nothing is uploaded.
Text
Result
How to use it
- Paste your text into the input box.
- Pick a variant: ROT13 for letters, ROT47 for all printable ASCII, or ROT18 for letters and digits.
- Press Encode / decode. The result updates as you type.
- Press it again on the result to get the original text back.
How the three variants work
ROT13 moves each letter 13 places along the alphabet and wraps around, so A becomes N and n becomes a. Digits and punctuation are untouched. ROT47 uses the 94 printable ASCII characters from ! to ~ and shifts each by 47, so it changes digits and punctuation as well as letters. ROT18 is ROT13 for letters plus a shift of 5 for the digits 0 to 9. Spaces and line breaks are always left as they are.
Why one action does both jobs
The alphabet has 26 letters, so shifting by 13 twice returns you to where you started. ROT47 shifts 47 of 94 places, and ROT18 shifts 5 of 10 digits, so they share that property. Paste ROT13 text and press the button and you get the plain text; press it on plain text and you get ROT13. There is no separate decode step.
What it is and is not good for
ROT13 hides text from a casual glance, for instance a spoiler or a puzzle answer. It is not encryption: anyone can reverse it in seconds with no key, so never use it to protect a password or private data. Characters outside the ranges, such as accented letters and emoji, are copied unchanged and are therefore still readable.
Questions people ask
How do I decode ROT13?
Paste the ROT13 text into the box with ROT13 selected and press Encode / decode. Because ROT13 is its own inverse, the same step turns it back into readable text. Uryyb becomes Hello.
What is the difference between ROT13 and ROT47?
ROT13 only shifts letters, by 13 places. ROT47 shifts all printable ASCII characters from ! to ~ by 47 places, so digits and punctuation change too. Hello becomes w6==@ in ROT47 but Uryyb in ROT13.
What is ROT18?
ROT18 combines ROT13 for letters with a shift of 5 for digits, so numbers change as well. It is not a standard cipher with a fixed spec, just a common extension. Like the others, applying it twice returns the original.
Is ROT13 a secure way to hide a password?
No. ROT13 has no key and anyone can reverse it immediately, with this tool or by hand. It only stops accidental reading, such as seeing a spoiler. Use real encryption, or a password manager, for anything sensitive.
Why do my accented letters and emoji stay the same?
ROT13 and ROT18 only move the letters A to Z, and ROT47 only moves printable ASCII. Accented letters, emoji and other scripts are outside those ranges, so they are copied through unchanged.
Does ROT13 change spaces and line breaks?
No. Spaces, tabs and line breaks are left exactly as typed. Only the letters, and for ROT18 and ROT47 the digits and punctuation in range, are shifted.
About this tool
ROT13 moves each letter A to Z and a to z 13 places and wraps around; running it twice gives the original text, so one action both encodes and decodes. ROT47 does the same for the 94 printable ASCII characters from ! to ~ with a shift of 47, so it also changes digits and punctuation. ROT18 is ROT13 for letters plus a shift of 5 for digits. Spaces, line breaks and everything outside those ranges, such as accented letters and emoji, are copied unchanged. This is not encryption: anyone can reverse it in seconds.