Skip to content
Free Tool Arena

Text & Writing Utilities · Free tool

Caesar Cipher & ROT13

Encode or decode messages by shifting letters by any amount, including ROT13, instantly online. Use this classic substitution cipher tool for free in your browser with no downloads.

Updated June 2026
Encoded (shift +13)

Gur dhvpx oebja sbk whzcf bire gur ynml qbt

Decoded (shift −13)

Gur dhvpx oebja sbk whzcf bire gur ynml qbt

Found this useful?EmailBuy Me a Coffee

Advertisement

What it does

Shift every letter in your message by a fixed number of positions in the alphabet to encode it; shift back to decode. The Caesar cipher is the simplest substitution cipher — A becomes D with shift 3, B becomes E, and so on, wrapping around (X becomes A, Y becomes B, Z becomes C). Named after Julius Caesar, who reportedly used a shift of 3 for private military correspondence in the 50s BCE according to Suetonius’ Lives of the Twelve Caesars.

Three modes in one tool: Caesar (custom shift 1-25), ROT13 (shift of 13, the special case where encoding and decoding are the same operation — a one-button click both ways), brute force (try all 25 possible shifts and show the results — useful when decoding a Caesar message where you don’t know the shift).

Important: this is NOT real security. A Caesar cipher has only 25 possible keys (one for each shift); a computer breaks it instantly by brute force, and even a human can break it in minutes by frequency analysis (the most common letter in the ciphertext is almost certainly E if the original is English). Use it for: educational puzzles (intro to cryptography), scout / school activities, escape-room clues, hiding a spoiler in plain sight (ROT13 is convention on Reddit and Usenet for this), or basic obfuscation where you just want to discourage casual reading. NOT for: real confidentiality, anything that needs to resist a determined attacker, encrypted communication.

Embed this tool on your siteShow snippet

Paste this snippet into any page. Loads on-demand (lazy), no tracking scripts, and sized to most dashboards. Replace the height to fit your layout.

<iframe src="https://freetoolarena.com/embed/caesar-cipher" width="100%" height="720" frameborder="0" loading="lazy" title="Caesar Cipher & ROT13" style="border:1px solid #e2e8f0;border-radius:12px;max-width:720px;"></iframe>
Embed docs →

Example input & output

Input

Text: HELLO, shift 3, encode

Output

KHOOR

H+3=K, E+3=H, L+3=O, L+3=O, O+3=R. Decode is the same operation in reverse: shift each letter back by 3.

How to use it

  1. Paste your message into the input box.
  2. Pick a shift (1-25) or click the ROT13 button (shift = 13, encode and decode are the same operation).
  3. Toggle Encode / Decode based on what you want to do. Encode = shift forward; decode = shift backward.
  4. Copy the result. The cipher only affects letters; numbers, punctuation, and spaces pass through unchanged.
  5. If you have a ciphertext but don't know the shift, click 'Try all shifts' — the tool shows results for shifts 1-25, and you can scan visually for the one that produces real words.

When to use this tool

  • Educational use teaching basic cryptography concepts.
  • Escape-room or treasure-hunt puzzles where the difficulty needs to be moderate.
  • Hiding spoilers on Reddit, forums, or text messages — ROT13 is the universal convention.
  • Light obfuscation when you just want to discourage casual reading (signing a private joke at the bottom of an email, etc.).

When not to use it

  • Real confidentiality — Caesar is trivially broken by computer or human. For real encryption use AES (symmetric) or RSA/ECDSA (asymmetric).
  • Communication where someone might intercept and try to decode — a determined attacker breaks Caesar in minutes.
  • Anything regulated or compliance-sensitive (HIPAA, GDPR, financial data) — those require proper cryptographic standards, not Roman-era ciphers.
  • Long messages — frequency analysis on text >50 characters reliably reveals the shift in seconds.

Frequently asked questions

Did Julius Caesar actually use this?
Yes — Suetonius's biography 'Lives of the Twelve Caesars' (~120 CE) reports that Julius Caesar used a shift of 3 for military correspondence. His nephew and successor Augustus used a shift of 1. Suetonius gives examples of decoded messages, which means the cipher was apparently considered secure enough at the time to send sensitive military information — but the historical context matters: most of Caesar's enemies were illiterate or didn't have time to attempt decryption.
Why is ROT13 special?
Because shift = 13 is exactly half the alphabet (26 letters). So encoding twice = applying shift 13 twice = total shift 26 = back to original. Encode and decode are the SAME operation. That makes ROT13 useful when you want a single button that toggles obfuscation on and off without needing to track which direction you're going.
How is Caesar broken in seconds?
Frequency analysis. In English, the letter E appears in ~12% of letters. After applying any Caesar shift, the most-common letter in the ciphertext is still the most-common letter — just shifted. So if 'X' is most common in your ciphertext, the original was probably E, and the shift is X-E = 19. Verify by trying that shift; if it produces real words, you've broken the cipher. Computers do this instantly; humans in 1-5 minutes.
What's a more secure alternative?
AES-256 for symmetric encryption (one key shared between parties). RSA-2048 or ECDSA for asymmetric (different keys for encrypt vs decrypt). For everyday secure messaging use Signal or iMessage end-to-end encryption. For files, use age (GPG alternative) or 7-Zip with a strong password. Don't roll your own crypto.
Why is ROT13 the convention for spoilers on Reddit/Usenet?
Tradition from Usenet (1980s) where text-based news groups needed a quick way to hide spoilers, jokes, or punchlines without making them invisible. ROT13 is easy to apply, easy to reverse, looks like gibberish at first glance, and doesn't require any special software. Reddit inherited the convention from early Usenet emigrants and it stuck.
Can I shift non-Latin alphabets?
This tool is Latin-alphabet only (A-Z, a-z, English-style). Caesar ciphers exist in concept for any alphabet — just shift positions in that alphabet's ordering. Cyrillic, Greek, and Arabic Caesar ciphers are real things but need their own tooling. Numbers and punctuation pass through unchanged in this implementation.

Advertisement

Learn more

Explore more text & writing utilities tools

100% in-browserNo downloadsNo sign-upMalware-freeHow we keep this safe →

Found this useful?

The tools stay free thanks to readers who chip in or spread the word.

Buy Me a Coffee