Cipher Utility

ROT13 Decoder

C-05

Rotate every letter by 13. The same step encodes and decodes. Runs in your browser; nothing is sent anywhere.

How to do ROT13 by hand

  1. Write A to M on one line.
  2. Write N to Z under it.
  3. Swap each letter with the one above or below.
  4. Keep numbers and punctuation.
  5. Do it again to decode.

Worked example

Swap each letter of HELLO:

H→U  E→R  L→Y  O→B

HELLO = URYYB

Further reading

Cipher Utility reference card Catalog no. C-05

What ROT13 is

ROT13 stands for "rotate by 13 places". Every letter is replaced by the letter 13 positions later in the alphabet, wrapping round from Z back to A. It is a Caesar cipher with a fixed shift of 13.

The alphabet has 26 letters, so two shifts of 13 bring every letter back to where it started. That is why one tool does both jobs: paste ROT13 text to read it, or plain text to hide it.

Why did the chicken cross the road? Jul qvq gur puvpxra pebff gur ebnq?

ROT13 table

LetterABCDEFGHIJKLM
ROT13NOPQRSTUVWXYZ

Read the table in either direction: A becomes N and N becomes A. Lowercase letters follow the same pairs, and the tool keeps the case of each letter.

Where ROT13 is used

ROT13 became popular on Usenet newsgroups in the 1980s as a way to hide spoilers, punchlines and offensive jokes, so readers had to choose to decode them. It is still used the same way for puzzle answers and spoilers. Geocaching.com, for example, encodes cache hints with ROT13 so you only read them if you want help.

You will also meet it in programming exercises and capture-the-flag challenges, where it is often the first layer of a puzzle. If the result still looks scrambled, try the quick decoder, which also tests Base64, hex, Atbash and every Caesar shift.

Is ROT13 encryption?

Only in the loosest sense. ROT13 has no key and only one possible setting, so it gives no protection at all. Treat it as a way to keep text from being read by accident.

Questions about ROT13

How do I decode ROT13?

Paste the text into the box above. ROT13 is its own inverse, so running it again on encoded text gives back the original. By hand, replace each letter with the one 13 places further along the alphabet: A with N, B with O, and N back to A.

Is ROT13 the same as a Caesar cipher?

Yes, it is a Caesar cipher with a shift of 13. Because 13 is exactly half of 26, the same shift both encodes and decodes. Use the Caesar cipher tool for other shifts.

Does ROT13 change numbers or punctuation?

No. Only the letters A to Z move. Digits, spaces, punctuation and accented letters stay as they are. A related scheme called ROT5 rotates digits by 5, and ROT47 rotates most printable ASCII characters. This tool does plain ROT13.

Is ROT13 secure?

No. It has no key, so anyone who recognizes it can read the text in seconds. It is meant to hide spoilers and puzzle answers from a casual glance, not to keep secrets.

Is my text sent to a server?

No. The rotation runs in your browser with JavaScript, and nothing you type or paste leaves your device.