ROT5 Encoder and Decoder

Apply a fixed five-position rotation to ASCII digits. The same operation encodes and decodes ROT5.

The conversion runs locally. Letters, punctuation and non-ASCII digits stay unchanged.

The conversion runs locally. Letters, punctuation and non-ASCII digits stay unchanged.

ROT5 conversion workspace

Only ASCII digits 0–9 are rotated by five positions. Every other character is preserved.

Apply ROT5 again to recover the original text.

What this tool does

Rotate ASCII digits by exactly five positions while preserving all other characters.

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

How to use the tool

  1. Type or paste text containing ASCII digits into the input field.
  2. Review the ROT5 result, which updates automatically.
  3. Copy the result when needed.
  4. Apply ROT5 to the result again to restore the original input.

Useful applications

  • Read or create legacy text that uses ROT5 for numeric parts.
  • Verify ROT5 examples in software tests or technical documentation.
  • Demonstrate a self-inverse cyclic digit substitution in a lesson.
  • Transform sample identifiers while preserving letters and punctuation.

Notes and limitations

  • ROT5 changes only the ASCII digits 0–9.
  • Letters, whitespace, punctuation, accented characters and non-ASCII numeral systems remain unchanged.
  • ROT5 is an encoding rule, not encryption, and provides no confidentiality.
  • Text is processed in your browser and is not sent to petuja.tools by this tool.

Frequently asked questions

Why are encoding and decoding the same?

Five is half of the ten-digit cycle, so applying the rotation twice returns every digit to its starting position.

What does ROT5 do to 8?

It becomes 3 because the rotation wraps from 9 back to 0.

Does ROT5 change letters or punctuation?

No. This implementation changes only ASCII digits 0–9.

Does it rotate Arabic-Indic or other Unicode digits?

No. Digits such as ١ or 5 are outside the ASCII 0–9 range and remain unchanged.

Is my text uploaded?

No. The transformation runs locally in your browser.