To use a ROT47 Encoder Decoder, paste the text to encode and select Apply ROT47; to decode, paste the ROT47 output and select Apply ROT47 again. The ROT47 Encoder Decoder rotates every printable ASCII character from ! (code point 33) through ~ (code point 126), moving it 47 positions through a 94-character set. Because 47 is exactly half of 94, the transformation is its own inverse: applying it twice returns the original supported characters. There is no separate Encode or Decode mode and no key to select. Spaces, tabs, line breaks, accented letters, CJK text, emoji, and every other character outside the printable ASCII range remain unchanged. The tool processes text in your browser, provides a copy-ready plain-text result, and is intended for reversible puzzle encoding rather than private or secret communication. For the most reliable result, paste the exact content you want to transform, avoid letting a messaging app or editor silently convert punctuation or line endings, and verify the result by applying ROT47 again to the copied output.

The ROT47 Encoder Decoder is built for this one-button workflow. It handles encoding and decoding locally in your browser, so there is no separate decoder to find and no shift value to remember. You also do not need to separate punctuation from words because punctuation participates in the substitution along with letters and numbers. Preserving whitespace and Unicode is different from making the transformed text readable or safe for every destination, though, so consider how the copied output will be used after conversion.

how do i use rot47 encoder decoder
ROT47 Encoder Decoder: Ranges, Rules, and Reversal

What Apply ROT47 changes

ROT47 is a substitution over a fixed character set rather than a letter-only shift. Its interval begins at ! and ends at ~, giving 94 printable ASCII code points in total. Each supported character moves forward by 47 places, wrapping from ~ back to ! when needed. The shift is exactly half the set size, so each character has a distinct partner and applying the transformation a second time lands on the original character. The operation also preserves position: it does not reorder text, add framing, or replace one supported character with several characters.

Character category Code-point range ROT47 treatment Visible result
Space 32 Copied unchanged Word spacing remains visible
Printable ASCII 33–126 Rotated by 47 positions modulo 94 Letters, digits, and punctuation can change
Control characters Outside 33–126 Copied unchanged Tabs and line breaks remain intact
Non-ASCII code points Outside 33–126 Copied exactly Accented text, CJK text, and emoji remain unchanged

This wider range explains why commas, brackets, numbers, and other symbols can change along with letters. It differs from letter-only ROT13, which leaves digits and punctuation alone. Preservation does not mean that every character stays unchanged: only characters outside the rotating interval are copied exactly. A space is code point 32, one below the rotating range, so word spacing remains visible even while nearby letters and punctuation change.

Encode or decode your text

  1. Paste the source text. Put the exact characters you want to encode or decode into the input area. Keep leading or trailing spaces if they are part of the source, and do not replace characters with smart variants unless those variants belong to the original text.
  2. Select Apply ROT47. There is no separate encoding or decoding switch and no key field. The same action performs the substitution in either direction.
  3. Copy the generated text. The browser-based tool returns a copy-ready plain-text result. Keep the original nearby if you plan to test a round trip.
  4. Paste a ROT47 result for decoding. Put the transformed output into the same input area. Do not apply another cipher first, because that would change the text before ROT47 receives it.
  5. Apply the operation once more. The second application reverses the first supported-character mapping and restores the original input when nothing else has altered the copied result.

Encoding requires only the first application. Decoding requires two actions across the complete exchange: one when the sender creates the puzzle and one when the recipient reveals it. Because the tool is self-inverse, the sender and recipient use exactly the same control.

Keep spacing and Unicode intact

Whitespace and Unicode content are copied rather than rotated. Space has code point 32, while tabs, line breaks, and other control characters sit outside the 33–126 interval. The implementation copies those values without trimming, collapsing, or otherwise normalizing them. Leading and trailing whitespace therefore stays in place, and mixed text keeps its original whitespace around the transformed ASCII segments.

The same code-point pass preserves accented letters such as é, CJK text, emoji, and every other non-ASCII character exactly. They are not converted into ASCII, replaced with question marks, or broken into UTF-16 halves. The transformation is deterministic and position preserving: every supported code point maps one-for-one, while unsupported code points are copied. It does not detect language, so language-specific assumptions play no part in the result.

Why the character range matters

For an input value in the rotating range, the exact rule is 33 + ((value − 33 + 47) mod 94). Values outside that range are copied. The Unicode Basic Latin chart shows the code points in this area, while ECMAScript’s codePointAt documentation describes how a Unicode code point is read from a string. These references help explain why the tool can process emoji without splitting a supplementary character into UTF-16 halves.

Move transformed output into another system

ROT47 output should be treated as plain text, even when it looks like code. Because punctuation is part of the substitution, a result can contain characters with special meaning in a URL, HTML document, shell command, regular expression, or another markup format. Copying that result directly into a receiving system may cause the system to interpret punctuation differently from the text you intended. The tool does not claim that its output is safe for any programming or transport context, and it performs no context-specific escaping. Escape or encode the output again according to the rules of the destination system rather than assuming ROT47 already did so.

This distinction matters most when the original contains separators such as commas, brackets, quotes, ampersands, equals signs, slashes, or hashes. ROT47 can transform each of them. If the destination has a strict grammar, validate the transformed value there after applying the required escaping.

Confirm the result round trip

To confirm an encoding, paste the copied output into the input field and select Apply ROT47 once more. A clean round trip should recover the original supported characters, with the same spaces, line breaks, tabs, and non-ASCII segments in their original positions. No comparison key or password is needed.

If the recovered text does not match, inspect the path between the two conversions. A chat app, editor, clipboard workflow, or syntax formatter may have escaped punctuation, converted straight quotes to smart quotes, or changed line endings. Those changes mean the second application is no longer operating on the exact first output. Copying a result that contains only preserved characters can also produce an apparently unchanged string, but that alone does not indicate a failure.

Use ROT47 for puzzles, not secrecy

ROT47 is a puzzle encoding, not encryption. It has no secret key, and a reader who recognizes the pattern can reverse it immediately. It provides no confidentiality, integrity, authentication, or resistance to frequency analysis, so it must not be used to protect credentials, personal information, or sensitive messages. Its appropriate uses are light spoiler masking, classroom demonstrations, reversible forum puzzles, and testing how systems handle character transformation. These are visibility and education uses rather than security controls.

Know the tool’s boundaries

  • Input size: The input can contain at most 200,000 Unicode code points, a limit intended to keep interactive conversion and copying responsive.
  • Empty input: Empty text is rejected because it provides no transformation to copy or decode.
  • Whitespace and text handling: The tool does not trim, normalize, collapse, or detect language; leading and trailing whitespace is preserved.
  • Output type: The conversion runs locally in your browser and returns plain, copy-ready text without a format tailored to URLs, HTML, shells, or other syntax.

Related reading: Vigenere Cipher Decoder: No Account Required.

Related reading: File to Base64 Cheat Sheet: Canonical Rules and Steps.