ROT47 Cipher Encoder / Decoder|One Function Covers Digits and Punctuation ROT13 Leaves Untouched
Apply ROT47 to printable ASCII 33-126, shifting each character by 47 positions. Unlike letter-only ROT13, digits and symbols are converted too. The cipher is its own inverse, so running text through twice restores the original.
💡 About this tool
If you have ever tried to hide a string with ROT13 only to find the numbers and brackets sitting there in plain sight, ROT47 is what you were reaching for. ROT13 rotates only the 26 letters by 13, so a string like Player1 (HP:30) leaks every digit and symbol untouched.
ROT47 widens the alphabet to the 94 printable ASCII characters from 33 to 126 and shifts by 47 — exactly half of 94. Because the shift is half the cycle, encoding and decoding are the literally identical operation. There is no separate decode mode: send any string through twice and you are guaranteed to land back on the original.
Spaces, tabs, newlines, and anything outside the ASCII printable range pass through unchanged, so your line breaks and word boundaries stay intact while the alphanumeric and symbol payload gets scrambled. That makes it a clean fit for the "just make it unreadable at a glance" jobs: CTF challenge text, spoiler masking on forums, light obfuscation in code comments or signatures.
🧐 Frequently Asked Questions
How is ROT47 different from ROT13? ROT13 rotates only the 26 letters by 13. ROT47 rotates all 94 printable ASCII characters (digits and symbols included) by 47. Reach for ROT47 when you need symbols and numbers scrambled too.
Does it touch spaces, tabs, or newlines? No. ASCII space (32), tab, and newline are all outside the 33-126 window, so your spacing and line structure are preserved exactly.
Is this real encryption? No. ROT47 has no key and anyone can reverse it with the same public procedure. Treat it as obfuscation for hiding text from a casual glance, never as security.
Why is there no decode button? Because the cipher is an involution — its own inverse. Paste the encoded output back into the input and the same ROT47 pass decodes it.
What happens to accented or non-ASCII characters? They are left as-is. Only codepoints 33 through 126 are shifted, so accented letters, emoji, and other Unicode characters survive unchanged.
📚 Where ROT47 comes from
ROT47 descends from ROT13, a Usenet-era convention for hiding punchlines and spoilers so that only readers who deliberately decode them see the text. ROT13 became a cultural shorthand on English-language forums, but its letters-only scope meant numbers and symbols always leaked through.
ROT47 generalizes the idea to the full printable ASCII block. Choosing 47 — half of the 94-character cycle — is what keeps the cipher self-inverse: a shift of exactly half the period brings any character back home after two passes. That single design choice is why there is no asymmetry between encoding and decoding, and why ROT47 still turns up in beginner CTF puzzles and signature-line games today.