ROT13 & Caesar Cipher

Encode and decode ROT13, ROT47 and Caesar shifts, or try all 25 shifts at once to crack an unknown Caesar message. These are puzzles and spoiler-hiders, not encryption.

Output

Result appears here…

What this tool does

ROT13 and the Caesar cipher are the simplest substitution ciphers: every letter moves a fixed number of places along the alphabet. They have no security value, but they are still everywhere: ROT13 hides spoilers and punchlines on forums, appears in geocaching hints and capture-the-flag puzzles, and Caesar shifts are the first cipher taught in most cryptography courses.

This tool covers all of those cases in one place. It encodes and decodes ROT13, ROT47 (which also scrambles digits and punctuation) and Caesar shifts of any size, and it can crack an unknown Caesar message by showing all 25 possible decodings with the most English-looking one highlighted.

How to use it

  1. Pick a cipher: ROT13, ROT47, Caesar (custom shift) or Brute force (all shifts).
  2. Type or paste text into Input, or click one of the example buttons.
  3. In Caesar mode, set the Shift slider and choose Encode (+shift) or Decode (−shift).
  4. Read the Output; press Copy, or Use as input to apply another step.
  5. In brute force mode, scan the list of 25 results and press Copy next to the readable one.

Worked examples

ROT13 of Hello, World! is:

Uryyb, Jbeyq!

Punctuation and spaces stay where they are. ROT47 of the same text gives w6==@[ (@C=5P: the comma and exclamation mark change too, but the space does not.

Now take the "Caesar +3" example, Wkh txlfn eurzq ira mxpsv ryhu wkh odcb grj., and switch to brute force. The row for shift −3 reads "The quick brown fox jumps over the lazy dog." and is marked most likely English because its letter distribution is closest to normal English text.

How each cipher works

  • ROT13: A↔N, B↔O, … M↔Z. Upper and lower case are preserved; everything that is not A–Z is untouched.
  • ROT47: maps ASCII codes 33–126 to (code − 33 + 47) mod 94 + 33. Self-inverse, so encode equals decode.
  • Caesar: each letter moves forward by the shift when encoding and backward when decoding. Shift 13 is ROT13.
  • Brute force: decodes with shifts 1 to 25 and ranks each result by a chi-squared comparison with English letter frequencies. The highlight appears once the text has at least 12 letters.

Limitations

Only the basic Latin alphabet is shifted: accented letters such as é or ñ, other scripts and emoji pass through unchanged. The frequency ranking assumes English, so for other languages or very short messages the highlighted row can be wrong. Brute force previews use the first 5,000 characters; the Copy button decodes the full text. Inputs over 200,000 characters are rejected. Vigenère and other polyalphabetic ciphers are not supported.

Tips

  • Text that looks like gibberish but keeps its spaces and punctuation is very often ROT13. Try that mode first.
  • If a puzzle string contains odd symbols like @ or = between letters, try ROT47.
  • For real encoding of data, use Base64; for integrity checks use the hash generator. Neither is encryption either.

Frequently Asked Questions

What is ROT13?

ROT13 replaces each Latin letter with the letter 13 places later in the alphabet, wrapping from Z back to A. Because the alphabet has 26 letters, applying ROT13 twice gives back the original, so the same operation encodes and decodes.

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 decoding then needs the opposite shift, which is why this tool has separate Encode and Decode buttons in Caesar mode.

What is ROT47?

ROT47 rotates all 94 printable ASCII characters from ! to ~ by 47 places, so digits and punctuation are scrambled too, not just letters. Like ROT13 it is its own inverse. Spaces, accented letters and emoji are left unchanged.

How does the brute force mode find the right shift?

It decodes the text with all 25 shifts and compares the letter frequencies of each result with typical English using a chi-squared score. The closest match is highlighted as most likely English; for very short or non-English messages, read the list yourself.

Is ROT13 or a Caesar cipher secure?

No. Anyone can reverse them in seconds, as the brute force mode shows. Use them to hide spoilers or puzzle answers, never to protect passwords or personal data.

Is my text sent to a server?

No. Encoding and decoding run in your browser. Nothing is uploaded or stored.