Text Encoder and Decoder
Encode and decode text using ROT13, Caesar cipher with adjustable shift, Atbash, and text reversal.
Text Encoder and Decoder tool
Example
Input: Hello World, Caesar Cipher with shift 3
Result: Khoor Zruog
Each letter moves 3 places forward in the alphabet (H to K, e to h) while spaces, digits and punctuation stay the same.
One Message in Each Cipher
| Method | Encoded |
|---|---|
| ROT13 | Zrrg zr ng 9cz |
| Caesar, shift 1 | Nffu nf bu 9qn |
| Caesar, shift 3 | Phhw ph dw 9sp |
| Caesar, shift 10 | Wood wo kd 9zw |
| Atbash | Nvvg nv zg 9kn |
| Reverse | mp9 ta em teeM |
Input: "Meet me at 9pm". Digits and spaces are never changed by the ciphers.
- Type or paste the text you want to encode or decode.
- Choose a cipher tab: ROT13, Caesar Cipher, Atbash or Reverse.
- For the Caesar cipher, set the shift from 1 to 25 with the slider and read the Encoded and Decoded results.
- Watch the output update as you type or change settings.
- Switch tabs to compare ciphers without retyping your text.
- Click the copy button to copy the result.
ROT13, Caesar and Atbash Ciphers Explained
This tool encodes and decodes text with three classic ciphers, ROT13, Caesar and Atbash, plus a simple reverse. With a Caesar shift of 3, "Hello World" becomes "Khoor Zruog". Only the letters A to Z change. Digits, spaces and punctuation stay put, and capital letters stay capital.
A Caesar cipher moves every letter a fixed number of places along the alphabet, wrapping from Z back to A. Julius Caesar is said to have used a shift of 3. Pick any shift from 1 to 25 with the slider and the tool shows two results. Encoded shifts the letters forward, and Decoded shifts them back, so you can read a message whichever way it was made.
ROT13 is a Caesar cipher with a shift of 13. Since 13 is half of 26, the same step both hides and reveals text: run ROT13 twice and you are back where you started. That is why forums use it for spoilers and puzzle answers. Atbash mirrors the alphabet, so A becomes Z, B becomes Y and M becomes N. It also undoes itself, and it dates back to Hebrew texts. Reverse simply writes the text backwards.
None of these ciphers is secure. There are only 25 Caesar shifts to try, and letter patterns give the answer away even faster, as the Letter Counter shows. They are great for puzzles, escape rooms, lessons and light spoiler hiding. For a code made of sounds and dashes, try the Morse Code Translator.
Frequently Asked Questions
Related Tools
Morse Code Translator
Bidirectional text-to-Morse and Morse-to-text conversion with audio playback via Web Audio API.
Text and WritingBase64 Encode and Decode
Encode text to Base64 and decode Base64 strings back to readable text, with full UTF-8 support.
Developer ToolsURL Encode and Decode
Encode special characters for URLs or decode percent-encoded strings back to readable text.
Developer Tools