Free Online Caesar Cipher Encoder and Decoder Encrypt and decrypt text using the Caesar shift cipher.
Caesar Cipher
Encrypt and decrypt text using the Caesar shift cipher.
Enter text
Type or paste your text (letters, numbers, punctuation).
Choose shift
Pick a shift value from 1 to 25.
View output
Encrypted or decrypted text appears instantly.
What Is Caesar Cipher?
The oldest known encryption attributed to Julius Caesar (shift 3). Simple substitution shifting each letter. Preserves case. Only 25 shifts — trivially breakable. ROT13 (shift 13) is self-inverse. Pure JavaScript.
Why Use Caesar Cipher?
-
Fast, accurate processing
-
100% client-side — data never leaves your browser
-
Free online tool with no signup required
-
Mobile-friendly with 44px touch targets
Common Use Cases
Learning substitution ciphers
Introduce classic encryption concepts.
Puzzles and code games
Solve or create simple cipher challenges.
Quick obfuscation
Obfuscate text for fun or casual use.
Educational demos
Show how shift ciphers work in cryptography.
Technical Guide
E(x) = (x + s) mod 26. D(x) = (x + 26 - s) mod 26. Uppercase (base 65) and lowercase (base 97). Non-alphabetic via regex. 25 keys. ROT13 self-inverse: 13+13=0 mod 26.
Tips & Best Practices
-
1Letters shift; numbers and punctuation stay unchanged.
-
2Same shift for encode and decode (reverse direction).
-
3ROT13 (shift 13) encodes and decodes with the same action.
-
4Use Copy button for quick output.
-
5"hello" with shift 3 becomes "khoor".
Related Tools
Base64 Encode
Encode text to Base64 format instantly in your browser.
🔐 Encoding & Crypto
MD5 Hash Generator
Generate MD5 hash digests.
🔐 Encoding & Crypto
SHA-256 Hash Generator
Generate SHA-256 hash digests.
🔐 Encoding & Crypto
AES Encrypt/Decrypt
Encrypt and decrypt text using AES with a passphrase.
🔐 Encoding & CryptoFrequently Asked Questions
Q How does the Caesar cipher work?
Q What is ROT13?
Q Can it handle numbers?
Q Is it case-sensitive?
Q How many possible shifts?
About This Tool
Caesar Cipher is a free online tool by FreeToolkit.ai. All processing happens directly in your browser — your data never leaves your device. No registration or installation required.