ROT47 Converter
Securely encode and decode text using the ROT47 cipher algorithm. A powerful derivative of ROT13 that includes numbers and special characters.
Input Text
Result
ROT47 Converter Guide
What is ROT47?
ROT47 is a character substitution cipher that replaces a character with the character 47 positions ahead in the ASCII table. It's an extension of the ROT13 cipher, but instead of only handling letters, ROT47 includes all printable ASCII characters (from 33 to 126).
Unlike ROT13 which only shifts alphabetic characters, ROT47 shifts numbers, punctuation, and symbols as well. This makes it appear more secure, but it's still a weak cipher that provides only minimal obfuscation.
How ROT47 Works
The ROT47 algorithm works by rotating characters within the ASCII range of 33 ("!") to 126 ("~"). There are 94 characters in this range, and shifting by 47 positions (half of 94) creates a self-reciprocal cipher:
function rot47(str) {
return str.replace(/[!-~]/g, function(ch) {
return String.fromCharCode(
ch.charCodeAt(0) - 47 < 33 ?
ch.charCodeAt(0) + 47 :
ch.charCodeAt(0) - 47
);
});
}
This self-reciprocal property means that applying ROT47 twice will return the original text. Therefore, the same algorithm is used for both encoding and decoding.
ROT47 Examples
Text Encoding
Original: Hello World! 123
ROT47: w6==@ (@C=5P 234
Special Characters
Original: @#$%^&*()_+
ROT47: 23456789`ab
Double Encoding
Original: Secret Message
First ROT47: $64C6E |6DD286
Second ROT47: Secret Message
ROT47 Character Mapping
Below is a complete reference table for the ROT47 cipher:
Original | ROT47 | Original | ROT47 | Original | ROT47 |
---|
Features of This ROT47 Converter
Real-time Processing
Instantly converts text as you type for efficient workflow
Fully Responsive
Works perfectly on desktops, tablets, and mobile devices
One-click Copy
Copy results to clipboard with a single button
Comprehensive Guide
Detailed explanations and examples included
Feature | Details |
---|---|
Price | Free |
Rendering | Client-Side Rendering |
Language | JavaScript |
Paywall | No |
0 Comments