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.
Gur dhvpx oebja sbk whzcf bire gur ynml qbt
Gur dhvpx oebja sbk whzcf bire gur ynml qbt
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 snippetHide
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>Example input & output
Input
Text: HELLO, shift 3, encodeOutput
KHOORH+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
- Paste your message into the input box.
- Pick a shift (1-25) or click the ROT13 button (shift = 13, encode and decode are the same operation).
- Toggle Encode / Decode based on what you want to do. Encode = shift forward; decode = shift backward.
- Copy the result. The cipher only affects letters; numbers, punctuation, and spaces pass through unchanged.
- 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
Guides about this topic
- How-To & Life · GuideHow to use classical ciphersCaesar and ROT13, Vigenère, substitution, transposition — how they work, why they're insecure today, and where they show up in puzzles and CTFs.
- Money & Business · GuideHow to write SEO-friendly URLsBuild clear URLs with smart slugs, structural patterns, and 301 redirects. Improve canonicalization and check URL health instantly with our free tips.
- Productivity & Focus · GuideHow to generate good acronymsCreate acronyms using pronounceability rules and backronym patterns. Generate unique acronyms instantly with our free online tool, no download required.
- How-To & Life · GuideHow to Reverse TextReverse text by character or word and handle Unicode, emoji, and RTL scripts accurately. Free, instant, no sign-up needed.
- How-To & Life · GuideHow to Sort Lines of TextSort lines of text alphabetically, numerically, or naturally with case and locale options. Free instant browser tool, no sign-up.
- How-To & Life · GuideHow to Remove Line BreaksFlatten text line breaks while keeping paragraph structure intact free online. Use regex patterns and undo-able strategies instantly with no download required.
Explore more text & writing utilities tools
- Emoji PickerSearch and copy from 80 most-used emoji across 7 categories in your browser. Instant, free access with no account or download needed.
- Strikethrough Text GeneratorApply strikethrough, underline, double‑underline, overline, or slash using Unicode real text. Free online tool works instantly in your browser — pastes anywhere with no sign‑up.
- Duplicate Line RemoverDeduplicate text lines with case-insensitive or strict modes online. Clean your lists instantly — a free tool with no sign-up or download needed.
- Sort LinesSort lines of text alphabetically, naturally (file‑2 < file‑10), by length, or shuffle. Free instant online tool with optional dedup and trim — no sign‑up needed.
- Flip TextFlip, reverse, or strikethrough your text using real Unicode symbols instantly. Works on social apps, free tool with no sign-up.
- Anagram CheckerCheck whether two words or phrases are anagrams. Ignores case and punctuation. Free, browser-only.