ROT13 Encoder and Decoder

Paste plain text to scramble it, or scrambled text to read it. ROT13 undoes itself, so there is only one box and no direction to choose.

How it works

ROT13 moves every Latin letter 13 places along the alphabet, wrapping round from Z to A. A becomes N, N becomes A, and Hello becomes Uryyb. Capitals stay capitals. Digits, spaces, punctuation and accented letters are left as they are.

The alphabet has 26 letters, so moving 13 places twice brings every letter home. That is why the same step encodes and decodes: paste Uryyb and you get Hello back.

ROT47 does the same over the 94 printable ASCII characters, from ! to ~, moving each one 47 places. Digits and symbols change too, so a date or a price is hidden as well. It also undoes itself. Both run on this page.

How to use it

  1. 1 Pick ROT13 for letters only, or ROT47 to scramble digits and symbols as well.
  2. 2 Type or paste into the Text box. The result appears below as you type.
  3. 3 Press Copy result, or download it as a .txt file.
  4. 4 To read scrambled text, paste it into the same box with the same cipher picked.

Good to know

  • ROT13 hides text from a glance, not from a person who wants to read it. Never use it for a password or anything private.
  • If ROT13 output still looks scrambled, the text may be ROT47. Try the other cipher.
  • Accented letters such as é are not moved by ROT13, so Café becomes Pnsé. ROT47 leaves them alone too, because they are not ASCII.
  • Spoilers, puzzle answers and the punchline of a joke are the classic uses: the reader chooses to decode them.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Why "Uryyb" reads as Hello: the cipher that undoes itself

Julius Caesar is said to have written military notes with each letter moved three places along the alphabet, so A became D. Any shift works the same way, and the shift of 13 has a property no other shift has on a 26-letter alphabet: it is its own reverse. Move a letter 13 places, then 13 more, and you have moved 26, which is a full turn. That is ROT13, short for "rotate by 13", and it is why one button both scrambles and unscrambles.

Take the word Hello. H is the 8th letter; 13 places on is the 21st, U. E is the 5th letter and becomes the 18th, R. L is the 12th and becomes the 25th, Y, and so does the second L. O is the 15th letter, and 15 plus 13 is 28, which wraps past Z to the 2nd letter, B. So Hello becomes Uryyb. Now run Uryyb through the same rule. U, the 21st letter, moves to the 34th, which wraps to the 8th: H. Every letter comes back the same way. Type both words into the box above and watch it happen.

ROT13 became a habit on Usenet, the discussion network of the 1980s and 1990s. People posted film spoilers, puzzle answers and jokes some readers might not want to see in ROT13, so that nobody read them by accident. Newsreaders had a key to flip a message, and the convention stuck. You still see it in forums, in geocaching hints and in the source code of programs that want to keep a string from being found by a simple search.

ROT47 is the same idea stretched to cover more characters. It works on the 94 printable ASCII characters, from the exclamation mark to the tilde, and moves each one 47 places, which is again half of the set and so again its own reverse. Digits and punctuation change as well as letters, so "Meet at 10:30" becomes "|66E 2E `_ib_" and the time is hidden too. The price is that the output is full of symbols, which some chat apps and forums turn into formatting.

Neither cipher keeps a secret. There is no key, the rule is famous, and a person can decode ROT13 by eye with a little practice. Use it to hide a spoiler from a glance, never to protect a password, an address or anything private. Two more limits are worth knowing. ROT13 only moves the plain Latin letters A to Z, so accented letters such as é, and letters from other alphabets, pass through unchanged and can give away part of the text. And ROT47 skips anything outside ASCII for the same reason, including emoji and curly quotes.

Frequently asked questions

How do I decode ROT13?

Run ROT13 again. Moving 13 places on a 26-letter alphabet twice is a full turn, so paste the scrambled text into the box and the plain text comes out. There is no separate decoder because none is needed.

Is ROT13 encryption?

No. There is no key, and anyone who knows the rule can reverse it in their head. It is a Caesar cipher with a shift of 13, and its only job is to stop text being read by accident.

What is the difference between ROT13 and ROT47?

ROT13 moves only the 52 Latin letters, upper and lower case. ROT47 moves all 94 printable ASCII characters, so digits and symbols change as well. "Meet at 10:30" is "Zrrg ng 10:30" in ROT13 and "|66E 2E `_ib_" in ROT47.

Is my text sent anywhere?

No. The rotation is a few lines of JavaScript on this page, and nothing is uploaded.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.