WMW

Caesar Cipher Tool

Free

Encrypt or decrypt text with a classic Caesar cipher, with an A-Z mapping table, brute-force list, letter-frequency chart, and ROT13 shortcut.

Letter Frequency

Recent Activity

Visible to everyone. Last 20 uses across all visitors, newest first.

No activity yet. Be the first.

Comments (0)

Found this tool useful? Leave a comment, share a tip, or tell us how we can make it better.

Guest comments are reviewed before publishing. Sign in to post instantly.

No comments yet. Be the first to share your thoughts!

What this tool does

Encrypts or decrypts text using the classic Caesar cipher, directly in your browser. Pick a shift from 1 to 25 (or use the ROT13 shortcut for shift 13), see the full A-Z letter mapping, try every possible shift at once with the brute-force list, and check the letter-frequency chart used to crack this kind of cipher.

How It Works

Every letter in your text is looked up by its position in the alphabet (A=0 through Z=25), that position has the Shift value added to it (or subtracted, in Decrypt mode), and the result is taken modulo 26 so it wraps back around instead of running past Z or before A; numbers, spaces, and punctuation are left completely untouched, and the original letter's uppercase or lowercase case is preserved. The A-Z Mapping table simply runs this same shift once for every letter of the alphabet in order. The brute-force list runs the decrypt operation 26 separate times, once for every possible shift from 0 to 25, so the correct one is guaranteed to appear somewhere in the list even if you don't know it in advance. The frequency chart counts, letter by letter, how many times A through Z each appear anywhere in your text, ignoring everything else.

Problems it solves

Frequently asked questions

What is a Caesar cipher?

It is one of the oldest known encryption methods, named after Julius Caesar who reportedly used it in his private letters. Every letter in the message is replaced by the letter a fixed number of positions further along the alphabet (wrapping back to A after Z), and that fixed number is called the shift.

What is ROT13, and why is shift 13 special?

ROT13 is just a Caesar cipher with the shift fixed at 13. Since the alphabet has 26 letters, shifting by 13 twice lands you back exactly where you started, which makes ROT13 self-inverse: the same operation both encrypts and decrypts. That property made it a popular, simple way to hide spoilers or punchlines in old forum posts, since running the same "cipher" again reveals the text.

How does the brute-force list help if I don't know the shift?

Since there are only 25 possible non-zero shifts, the brute-force list simply tries every single one and decodes your text with each, so the correct shift's result is always sitting somewhere in that list as readable text; you just scan down and recognize it.

What does the letter frequency chart show, and why does it matter?

It counts how often each letter A through Z appears in your text. A Caesar cipher only shifts letters, it never changes how often each one appears relative to the others, so the shape of the frequency chart for an encrypted message is identical to the shape for the original message, just relabeled. In English, the tallest bars almost always end up on E and T, which is exactly the classic weakness that lets someone crack a Caesar cipher without ever knowing the shift.

Is this cipher actually secure?

No, not by modern standards. With only 25 possible shifts to try, it offers no real protection against anyone who bothers to check; it is included here purely as a classic educational cipher and a fun way to obscure text casually, not as a way to protect sensitive information.

Related Tools