ROT cipher encoder and decoder

Encode and decode text with ROT13, ROT5, ROT18, and ROT47. Each transformation reverses itself when applied again to the supported letters, digits, or ASCII characters.

ROT type

Choose which character range is rotated in both editable text panels.

Letters only (A-Z, a-z)

Input text

Enter text to encrypt/decrypt...

Output text

Encrypted/decrypted text will appear here...

What is a ROT cipher?

ROT (Rotate) ciphers are simple letter substitution ciphers that replace each letter with another letter a fixed number of positions down the alphabet. ROT13, the most famous variant, shifts letters by 13 positions.

For example, Hello becomes Uryyb when encoded with ROT13.

ROT13 and ROT47 are self-reversing: applying the same algorithm twice returns the original text. This makes them useful for hiding spoilers, puzzle answers, or mildly obscuring text without needing a separate decrypt function.

How to use

Choose ROT13, ROT5, ROT18, or ROT47, then edit either text panel. The opposite panel updates automatically after a short pause; copy either value from its card or reset the example from the input controls.