Skip to content
Menu
Theme

ROT13 and Caesar Cipher

Shift every letter by 13 places, or by any number you pick, to hide spoilers and puzzle answers or decode them again. Free and in your browser.

DeveloperRuns in your browser
Paste or type. The result updates as you type.
13 is ROT13. Running it twice gives back your text.

What is ROT13?

ROT13 is a very old and very simple way to scramble text. Each letter of the English alphabet is replaced by the letter 13 places after it, wrapping around from Z back to A. So A becomes N, B becomes O, and “Hello” becomes “Uryyb”. Because the alphabet has 26 letters, doing the same thing a second time brings every letter back to where it started. One step both hides and reveals.

People use it to hide things that should not be read by accident: the answer to a riddle, the ending of a film in a forum post, or the solution to a puzzle in a game guide. The reader has to make a small effort to see it, which is the whole point. ROT13 is also a common first exercise in programming classes and appears in puzzle hunts and escape rooms.

ROT13 is one case of the Caesar cipher, named after Julius Caesar, who is said to have shifted letters by three in his letters. This tool lets you choose any shift from minus 25 to 25. A shift of 3 gives you the classic Caesar cipher. A negative shift moves letters backwards, so if a message was made with a shift of 5, a shift of minus 5 reads it again.

Only the plain letters A to Z, in upper or lower case, are moved. Digits, spaces, punctuation and emoji stay as they are. Letters with marks, such as the Vietnamese “ă”, “ê” or “ơ”, are also left unchanged, because they are not part of the 26 letter alphabet the cipher works on.

This is a game, not security. Anyone can undo it in seconds, so never use it to protect a password or private message.

Everything runs in your browser. Your text is not sent anywhere and is gone when you close the page.

How to use the ROT13 tool

  1. Paste or type your text in the input box. A short sample is already there.
  2. Leave the shift at 13 for ROT13, or type another number for a different Caesar shift.
  3. Read the scrambled text in the Result box. It updates as you type, so there is no button to press.
  4. To read a ROT13 message, paste it in with the shift at 13. The result is the original text.
  5. Use the copy button under the result to put it on your clipboard.

FAQ

How do I decode a ROT13 message?

Paste it in and keep the shift at 13. ROT13 is its own reverse, so the same step that hides a message also reveals it. For other shifts, use the same number with a minus sign in front to go back.

Why did my accented letters not change?

The cipher works on the 26 letters of the basic Latin alphabet. Letters with marks, like “é” or “ư”, are separate characters with no agreed place in that circle, so the tool leaves them as they are. Your Vietnamese text keeps its accents, and only the plain letters shift.

What shift did the original Caesar cipher use?

The story says Julius Caesar shifted each letter by three. Type 3 as the shift to encode that way, and minus 3 to decode.

Can ROT13 keep my text secret?

No. It hides text from a quick glance and nothing more. Anyone who knows the trick, or who finds this page, can read it straight away.

Is my text stored or sent anywhere?

No. The letters are shifted inside the page on your own device. Nothing is uploaded and nothing is saved after you close the tab.

Related tools