How ROT47 Works
ROT47 operates on the 94 printable ASCII characters, from ! (code 33) to ~ (code 126). Each character is shifted forward by 47 positions inside this range, wrapping around at the end. Because 47 is exactly half of 94, applying the transformation twice returns the original text.
ROT47 vs ROT13
ROT13 only shifts the 26 English letters, leaving digits, spaces, and punctuation unchanged. ROT47 covers the full printable ASCII set, so it can obscure letters, digits, and symbols in one pass. The trade-off is that ROT47 output looks much noisier and less readable than ROT13.
Common ROT47 Use Cases
ROT47 appears in CTF challenges, lightweight developer obfuscation, and examples where you want to hide printable text without using real encryption. It is not secure cryptography; it is only a casual obfuscation method.
Character Mapping Scope
ROT47 covers uppercase letters, lowercase letters, digits, and punctuation in the printable ASCII range. Characters outside ASCII 33-126, such as Unicode letters or emoji, are typically left unchanged.