Applying ROT13 to Uryyb, Jbeyq! produces Hello, World!. When text retains word lengths and punctuation but its letters look wrong, a fixed alphabet shift is one possibility to investigate. Appearance alone does not identify the cipher; compare the result with the exercise instructions.
How ROT13 relates to a Caesar cipher
A Caesar cipher moves each letter by a fixed number of positions around an alphabet. With an encoding shift of 3, A → D, B → E and Z → C. Letters wrap around at the end.
ROT13 fixes the shift at 13: A ↔ N, B ↔ O and M ↔ Z. Moving forward 13 positions or backward 13 positions reaches the same letter on a 26-letter alphabet.
| Method | Shift | How to decode |
|---|---|---|
| ROT13 | Always 13 | Apply the same transformation again |
| Caesar cipher | 0–25 in this tool | Move backward by the encoding shift |
Shift 0 leaves the input unchanged. Encoding twice with shift 3 does not restore the original. Do not apply the special ROT13 shortcut to every Caesar shift.
Decode a ROT13 example
- Open the ROT13 and Caesar converter.
- Set Shift to 13 and Direction to Decode.
- Enter
Uryyb, Jbeyq!and select Convert. - Check that the output is
Hello, World!.
Enter that output again with the same settings to recover Uryyb, Jbeyq!. For an independent Python comparison, codecs.encode('Hello, World!', 'rot_13') produces the same encoded text after importing codecs.
Check direction and wrapping with shift 3
Enter XYZ abc 123, choose shift 3 and Encode. The output is ABC def 123. The final uppercase letters wrap to the beginning, lowercase letters remain lowercase, and digits stay unchanged.
Now enter ABC def 123 with shift 3 and Decode. This returns XYZ abc 123. If a general Caesar cipher gives an unexpected result, check the direction before changing the shift amount.
What happens to digits and non-English text?
Tools Hub shifts only A–Z and a–z. Spaces, digits, punctuation, Japanese characters and emoji remain unchanged. Encoding こんにちは ABC 123! with shift 3 produces こんにちは DEF 123!.
The operation does not add a number to every Unicode character code. Schemes that rotate digits or a wider character set, such as ROT47, use different rules and are not implemented by this converter.
What if the shift is unknown?
If the exercise uses this 26-letter alphabet, the 26 shifts from 0 to 25 are the candidates. You can select them manually in the tool. It does not automatically detect a language or rank possible answers.
A short input can produce more than one word-like result. Check the expected flag format and the exercise constraints, rather than relying only on whether the output looks meaningful. A cipher with so few shifts is not suitable for protecting secrets.
Practice the distinction
Change the shift in the Caesar cipher tool to compare results. To distinguish letter substitution from byte representation, read the Hex and UTF-8 guide.