🔐 Caesar Cipher & ROT13 Tool

Caesar cipher encoder/decoder with adjustable shift, ROT13, ROT5, ROT47, Atbash, and brute-force panel showing all 25 shifts. Free letter-shift cipher tool — pure browser, no upload.

What is Caesar Cipher & ROT13 Tool?

A free Caesar cipher tool with full encoder/decoder, ROT13 / ROT5 / ROT47 / Atbash variants, and a unique brute-force panel that shows all 25 possible shifts at once so you can spot the readable plaintext. Adjust shift via slider (1-25) or quick-pick buttons (1, 3, 7, 13, 25). Preserves case, passes punctuation through unchanged, and includes an educational sidebar explaining each cipher's history and weakness. Perfect for puzzles, escape rooms, ARGs, cryptography tutorials, and CTF challenges. Pure client-side, runs offline.

How to Use

  1. Paste your text into the input field.
  2. Pick a cipher: Caesar (with custom shift), ROT13, ROT5 (digits), ROT47 (printable ASCII), or Atbash.
  3. For Caesar, set the shift (1-25) using the slider or quick-pick buttons.
  4. Toggle Encode / Decode. Output appears live.
  5. If you\

A brief history of substitution ciphers

The Caesar cipher is named after Julius Caesar, who according to Suetonius used a shift-by-3 cipher around 58 BC for confidential military and personal correspondence. He never claimed it was secure — by Roman standards, any literate person who saw the same letter substitutions repeatedly would crack it eventually. Atbash predates Caesar by centuries — it appears in the Hebrew Bible's book of Jeremiah as a cryptographic word-play. ROT13 emerged on Usenet in the early 1980s as a polite way to hide spoilers and mild jokes that readers could opt-in to decode by scrolling and applying ROT13. ROT47 is a modern variant designed for the wider ASCII range used in code and email.

When Caesar / ROT13 is actually useful

  • Spoilers — encode movie endings, game spoilers, puzzle answers in ROT13. Readers must consciously decode, so they cannot accidentally see them.
  • CTF and security puzzles — Caesar appears constantly in capture-the-flag challenges as a "warm-up" stage.
  • Escape rooms — letter-shift ciphers fit physical puzzle design (alphabet wheels, slide rules) and require no mathematical skill from players.
  • ARG and clue games — the Caesar cipher is universally recognisable as "encrypted" while remaining solvable in 30 seconds, making it the perfect introductory puzzle layer.
  • Educational demos — explaining cryptography to students, the Caesar cipher illustrates substitution, key space, and brute force in a way modern algorithms cannot.
  • Light obfuscation — encode an answer key for a quiz, mask a forum spoiler, hide a punchline. None of these are security; all are trust-on-first-use.

Why frequency analysis breaks Caesar in seconds

Every Caesar cipher preserves the relative frequencies of letters. In English, E appears in roughly 12.7% of all text, T at 9%, A at 8.2%, O at 7.5%, and so on. So in a ciphertext, the most common letter is almost certainly the shifted version of E. Find that letter, calculate the shift to E, decode the rest. For ciphertexts longer than 100 characters, this works essentially every time and takes a competent cryptographer under a minute. Computers do it in microseconds. The brute-force panel here just shows all 25 shifts visually — even faster than frequency analysis for short messages.

Frequently Asked Questions

What is the difference between Caesar cipher and ROT13?

ROT13 is a Caesar cipher with a fixed shift of 13. Because the alphabet has 26 letters and 13 is exactly half, encoding and decoding ROT13 are the same operation — apply ROT13 twice and you get the original text back. This makes it ideal for spoiler tags, mild obfuscation, and historical contexts (Usenet, retro forums). General Caesar cipher uses any shift from 1 to 25, requiring a separate decode step with the inverse shift.

How secure is a Caesar cipher?

Not at all. A Caesar cipher with any shift can be cracked in seconds by frequency analysis (the most common letter in English is E, so whatever letter appears most in the ciphertext is likely the shifted E) or by brute force (only 25 possible shifts). Use it for puzzles, escape rooms, and educational demos — never for real security. For actual encryption, use AES, ChaCha20, or modern public-key cryptography (RSA, Curve25519).

What does the brute-force panel do?

For an unknown Caesar shift, it computes all 25 possible decodings simultaneously and displays them in a list. You scan the list for the one that reads as English (or your target language). It's the fastest way to crack an unknown Caesar cipher — typically takes 10-30 seconds of visual scanning. The Atbash cipher has only one possible decoding (no shift parameter), so brute-force isn't needed.

What is ROT47 and why does it cover punctuation?

ROT47 shifts each printable ASCII character (codepoints 33-126, covering letters, digits, and most punctuation) by 47 — exactly half of the 94-character range. Like ROT13, it is its own inverse. Unlike ROT13 it scrambles punctuation and digits too, making the output look more cryptic. Common in code-golf challenges and as a slightly stronger spoiler hide than ROT13. Still trivially crackable.

What is the Atbash cipher?

Atbash is a substitution cipher where A↔Z, B↔Y, C↔X, etc. — each letter maps to its mirror in the alphabet. Originally used in Hebrew with the Aleph-Tav-Beth-Shin pattern (hence the name). It's a fixed mapping with no key, so once you know it's Atbash, decoding is instant. Sometimes used in puzzles as a simpler alternative to Caesar; sometimes appears in Hebrew religious texts.

Related Tools

  • ··— Morse Code Translator — Translate text to Morse code and back. Free Morse code translator with audio playback (WPM, frequency, volume)
  • 01 Binary, Hex & ASCII Converter — Convert text to and from binary, hexadecimal, octal, and decimal ASCII. Free bidirectional converter with UTF-
  • 🔁 Find & Replace (Regex) — Powerful browser-based find-and-replace with regex support, multiple sequential rules, live preview, and 10+ p
  • 💘 Secret Crush Detector — Party game: everyone secretly picks a crush with a PIN-protected pick, then reveal mutual matches. 100% privat
  • 🎲 Truth or Dare Generator (Smart Mode) — The smartest Truth or Dare generator online. 200+ prompts across 5 group types (friends/couples/office/family/
  • 📝 Word Counter — Count words, characters, sentences, and paragraphs instantly as you type. Free online word counter with readin
  • 🤖 ChatGPT Humanizer — De-robotize AI text in your browser. 200+ AI-tell swaps, contraction injection, em-dash cleanup, sentence-vari
  • Aa Case Converter — Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, and more.

Related: caesar cipher, rot13, rot13 decoder, rot13 encoder, rot5, rot47, atbash cipher, letter shift cipher, caesar cipher decoder, caesar cipher encoder, shift cipher, classical cipher, brute force cipher, cipher solver, puzzle cipher, ctf cipher tool