Free Online Caesar Cipher and ROT13 Encoder and Decoder
Encode and decode a Caesar cipher in your browser with any shift from one to twenty five, or use the ready made ROT13, ROT5, ROT18 and ROT47. When you do not know the shift, the page lists all twenty five possibilities at once so the readable one can be picked out by eye in a second.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Use Caesar Cipher and ROT13
Step by step, start to finish.
Plain text to encode, or a shifted message to decode. A .txt file can be dropped onto the box.
ROT13 needs nothing else set. For a Caesar cipher, drag the slider to the shift you want.
The table lists every possibility. One of them will be readable English and the rest will be nonsense.
The copy button takes the shifted text. The chain button sends the result back to the left box, which is handy for shifting twice.
Key Features
What this tool does, and what it does not do.
One to twenty five on a slider, forwards to encode and backwards to decode.
The table shows every possible shift together, which is how an unknown Caesar is actually cracked.
ROT13 for letters, ROT5 for digits, ROT18 for both and ROT47 for every printable character.
A separate switch shifts digits by the same amount within zero to nine, so numbers in the message can be hidden too.
Spaces, punctuation and line breaks stay exactly where they were, so the result stays readable.
The shifting is arithmetic done in this tab, so nothing you paste is sent anywhere.
About Caesar Cipher and ROT13
The Caesar cipher is the first cipher most people meet, named after Julius Caesar, who is said to have shifted letters by three in his letters. Today it is a puzzle staple, a teaching example that takes thirty seconds to explain, and, as ROT13, a long standing convention for hiding a spoiler or a punchline in plain sight. This page encodes and decodes every common variety in your browser.
How the shift works
Each letter moves a fixed number of places along the alphabet, wrapping round from Z back to A. With a shift of 3, HELLO becomes KHOOR; shifting backwards by 3 turns it back. Pick a shift from 1 to 25 on the slider and choose forwards to encode or backwards to decode. Capitals stay capitals and small letters stay small, unless you ask for the result in capitals.
Cracking an unknown shift
With only twenty five possible keys, an unknown Caesar cipher is a short list to read. Switch on Show me all twenty five shifts and the page shows the opening of the message under every shift side by side. The one that reads as real words is your answer, and the shift used is shown next to it. Most messages are solved in a single glance down the column.
The ROT family
| Preset | What it shifts | By |
|---|---|---|
| ROT13 | Letters A to Z | 13 |
| ROT5 | Digits 0 to 9 | 5 |
| ROT18 | Letters and digits | 13 and 5 |
| ROT47 | All 94 printable ASCII characters | 47 |
Each of these is its own reverse: applying it twice gives back the original, so the same setting both encodes and decodes.
Digits, accents and punctuation
A letter shift works on the twenty six letters, so digits have their own switch that moves them by the same amount within 0 to 9. Accented letters can be turned into plain ones first, so an é is shifted as an e. Spaces, punctuation and line breaks stay exactly where they were, which keeps the shape of the message and makes the decoded result easy to read. The counters show how many letters and digits were shifted, how many characters were left as they were, and the shift used.
A Caesar cipher is for fun and learning rather than security; for anything private, use real encryption.
Frequently Asked Questions
Common questions about this tool.
More Text Tools
Other tools from the same hub, free and in your browser.
Feedback
No feedback on this tool yet. Yours would be the first.