ROT47 Encoder and Decoder

Rotate the 94 visible ASCII characters from ! through ~ by 47 positions. The same operation encodes and decodes ROT47.

The conversion runs locally. Spaces, line breaks, accented letters and non-ASCII characters stay unchanged.

The conversion runs locally. Spaces, line breaks, accented letters and non-ASCII characters stay unchanged.

ROT47 conversion workspace

Only ASCII characters from ! (code 33) through ~ (code 126) are rotated. Every other character is preserved.

Apply ROT47 again to recover the original text.

What this tool does

Rotate the 94 visible ASCII characters by exactly 47 positions while preserving every other character.

Use the same self-inverse operation for both ROT47 encoding and decoding.

How to use the tool

  1. Type or paste text into the input field.
  2. Review the ROT47 result that updates automatically.
  3. Copy the output when needed.
  4. Apply ROT47 to the result again to restore the original input.

Useful applications

  • Read or create legacy text that uses ROT47 obfuscation.
  • Verify ROT47 examples in software tests or technical documentation.
  • Demonstrate a self-inverse substitution across letters, digits and punctuation.
  • Transform mixed ASCII samples while preserving spaces and line breaks.

Notes and limitations

  • ROT47 changes ASCII codes 33 through 126, from ! to ~.
  • Spaces, tabs, line breaks, accented letters and non-ASCII scripts remain unchanged.
  • ROT47 is an encoding rule, not encryption, and provides no confidentiality.
  • Text is processed in the browser and is not sent to petuja.tools by this tool.

Frequently asked questions

Why are encoding and decoding the same?

The rotated set contains 94 characters, and shifting by 47 twice returns every character to its starting position.

Does ROT47 change spaces or line breaks?

No. A space has ASCII code 32, outside the rotated range, and control characters are also preserved.

Which characters does ROT47 change?

It changes ASCII characters from ! through ~, including letters, digits and punctuation.

Can ROT47 protect passwords or confidential data?

No. Anyone can reverse it immediately by applying ROT47 again.

Is my text uploaded?

No. The conversion runs locally in your browser.