ROT13 encoder and decoder

Apply ROT13 to text. The same step encodes and decodes. Nothing leaves your browser.

ROT13 is the Caesar cipher with the shift fixed at 13. The Latin alphabet has 26 letters, so 13 is exactly half way round. That makes ROT13 its own undo: running it once hides the text, and running it again brings the original back. People use it to hide a spoiler, a puzzle answer or a joke punchline in a forum post, so that it is not read by accident. It is not a lock. Anyone can reverse it in a second, and it adds no protection at all. This page opens with the shift set to 13, and the sample reads Why did the chicken cross the road. Paste your own text and the result updates as you type. Only the letters A to Z and a to z change, and capital letters stay capital. Digits, spaces, punctuation, emoji, accented letters and other alphabets are copied through unchanged. You can still change the shift if you need a different Caesar cipher, or switch on the table of all 25 shifts.

How it works

  1. Type or paste your message
  2. Set the shift and choose encode or decode
  3. Copy the result, or show all 25 shifts

Frequently asked questions

Why does ROT13 decode itself?

There are 26 letters and the shift is 13, so two shifts of 13 add up to 26, which is a full turn. Applying ROT13 twice returns every letter to where it started. Hello becomes Uryyb and Uryyb becomes Hello.

Does ROT13 change numbers?

Not by default. Digits stay as they are. If you turn on the digit option here, each digit moves by 13 modulo 10, which is 3, so 5 becomes 8. A strict ROT13 leaves digits alone.

Is ROT13 encryption?

No. It has one fixed key that everyone knows, so it hides text from a casual glance only. Use it for spoilers and puzzles, not for anything private.