ROT47 Character Substitution Cipher

The ROT47 (Caesar cipher by 47 chars) is a simple character substitution cipher that replaces a character within the ASCII range [33, 126] with the character 47 character after it (rotation) in the ASCII table. It is an invertible algorithm i.e. applying the same algorithm to the input twice will get the origin text.
The page provides a Javascript implementation online ROT47 encoder/decoder.

Tweet LinkedIn

Example: This page provides a Javascript online web-based ROT47 Encoder/Decoder.
will be translated to:
%9:D A286 AC@G:56D 2 y2G2D4C:AE @?=:?6 H63\32D65 #~%cf t?4@56C^s64@56C]

ROT47: same action can be used for encoding and decoding
ROT47 is a derivative of ROT13. ROT47 introduces mixed letters and symbols, therefore, the encoded text looks more obvious that text has been enciphered. The following is an online ROT47 cipher implemented by Javascript.

The ROT47 can be easily implemented by modern programming language in many many ways, e.g. using a lookup table. For example, the following PHP code uses strstr to convert the text by using a lookup table.

    function str_rot47($str)
      return strtr($str, 
Alternatively, ROT47 can be implemented by computing directly the ROT47-ed ASCII of each given character.
    function Rot47(const s: string): string;
      i, j: integer;
      Result := s;
      for i := 1 to Length(s) do
        j := Ord(s[i]);
        if (j in [33..126]) then
          Result[i] := Chr(33 + ((j + 14) mod 94));

Pascal/Python/VBScript/Javascript Download

Use the ROT47 function in your application easily; rot47.pas - - rot47.vbs - rot47.js - rot47c.js (Compressed)

Link here!

Just paste the HTML code, shown below, onto the site of your choice.
    <a href="" title="Online ROT47 Encoder/Decoder">Online ROT47 Encoder</a>
Plain text example:
Online ROT47 Encoder

Related Links

Quick Image/Photo/Picture Sharer/Upload
Photo Database/Explorer/Gallery
CRC32 Javascript Calculator
ROT13/ROT47 Wiki page
Online BASE64 Javascript Encoder
Online Javascript ROT13 Encoder
Online ROT47 Encoder (Server Side, No Javascript)
ACMer Forum (
Online Arbitrary Base Number Converter (Javascript)
Windows Batch Rot13 Implementation
Make Links/URL shorter
Table of Public Links
Online PIBAS Interpreter
Page Edited: Contact Email: dr AT --EOF--