Skip to content

ROT13 Encoder and Decoder

Scramble or unscramble text with ROT13, ROT47 or a Caesar cipher with any shift.

  • 100% free
  • Runs in your browser
  • Instant results
Quick answer

A ROT13 encoder replaces each letter with the one 13 places further along the alphabet, so A becomes N and "Hello" becomes "Uryyb". Because the alphabet has 26 letters, applying ROT13 twice returns the original, so the same tool encodes and decodes. ROT47 and Caesar ciphers with any shift are included too.

How to use the ROT13 Encoder

  1. Choose a cipherPick ROT13, ROT18, ROT47, a Caesar cipher or the list of all shifts.
  2. Enter your textType or paste the message. The result updates as you type.
  3. Set the Caesar optionsFor a Caesar cipher, enter the shift from 1 to 25 and choose encode or decode.
  4. Copy the resultPress Copy. For ROT13, ROT18 and ROT47, paste the result back in to decode it.

ROT13, ROT47 and the Caesar cipher explained

All of these are rotation ciphers: each character is replaced by one a fixed number of places further along a list, wrapping round at the end.

  • Caesar cipher: the general form, named after Julius Caesar, who is reported to have used a shift of three. With a shift of 3, A becomes D, B becomes E and X wraps round to A. To decode, shift back by the same amount. Only the 26 letters A to Z change; case is kept.
  • ROT13: a Caesar cipher with a shift of 13. Thirteen is half of 26, so encoding and decoding are the same operation. That convenience is why the ROT13 encoder became the standard way to hide text casually.
  • ROT18: ROT13 for letters combined with ROT5 for digits, where 0 to 9 rotate by five. It is also its own inverse.
  • ROT47: rotates the 94 printable ASCII characters, from "!" to "~", by 47 places. Letters, digits and punctuation are all scrambled, so the result looks more like noise. Applying it twice restores the text.

Spaces, line breaks, accented letters and characters from other alphabets are left unchanged by every option.

What these ciphers are for, and what they are not

ROT13 became popular on Usenet newsgroups in the 1980s as a way to hide spoilers, puzzle answers and punchlines. The point is not secrecy but politeness: nobody reads the text by accident, and anybody who wants to can decode it in a second. It is still used that way in forums, puzzle hunts and geocaching hints, and occasionally to keep an email address away from the simplest harvesting scripts.

None of these ciphers provides security. A Caesar cipher has only 25 possible shifts, so it can be broken by trying them all. The "Show all 25 Caesar shifts" option does exactly that: paste a message, look down the table and pick the row that reads as normal language. Never use ROT13, ROT47 or a Caesar cipher for passwords, personal data or anything that needs real protection; use proper encryption instead.

These ciphers are useful for learning. They are the usual first example in cryptography lessons, a common programming exercise, and a gentle introduction to frequency analysis, since the most common letter in the scrambled text usually stands for E.

For other reversible encodings, see Base64 encode and decode or the Morse code translator. Your text is converted in your browser and is never uploaded.

Frequently asked questions

How do I decode ROT13?

Paste the scrambled text into the ROT13 encoder with ROT13 selected. Encoding and decoding are the same step, so the readable text appears straight away.

What is the difference between ROT13 and a Caesar cipher?

ROT13 is a Caesar cipher with a fixed shift of 13. A general Caesar cipher can use any shift from 1 to 25, and needs the opposite shift to decode.

What is ROT47?

ROT47 rotates all 94 printable ASCII characters by 47 places, so digits and punctuation are scrambled as well as letters. Like ROT13, applying it twice gives back the original.

Is ROT13 secure?

No. It offers no security at all, because anyone can reverse it instantly. It is meant for hiding spoilers and puzzle answers, not for protecting information.

How can I crack a Caesar cipher when I do not know the shift?

Choose "Show all 25 Caesar shifts". The tool lists the text under every possible shift, and the correct one is the row that reads as ordinary words.

Last updated 24 November 2026 by the TheTechFolk team.