Beaufort Cipher Decoder
Decode a message written in the Beaufort cipher right in your browser, or switch to any other classical cipher.
Input
Output
Guide
How do you decode the Beaufort cipher?
Decoding a Beaufort message takes the same steps as encoding it: each cipher letter is subtracted from its keyword letter, counting around the alphabet, which gives back the original letter. The keyword repeats along the letters and skips everything else, as it did while encoding. Take Pnah and the keyword BREAD: P (15) sits under B (1), and 1 + 26 − 15 = 12 gives M. So all you need is the keyword. Get it wrong, and the tool still decodes, just into nonsense.
Tool description
Put the Beaufort cipher text in the Cipher text box and its keyword in the Keyword field, and the decoded message shows in the Plain text box while you type. As long as the Keyword has no letter, which is how it starts, pasted text gets "Enter a keyword." in place of a result. Letters keep their case, and spaces, digits and punctuation pass through unchanged. Insert sample brings in Xey pui pp jge nprs np pbup and sets the keyword to PICNIC, which decodes to See you at the park at noon. For a reply, the swap button between the boxes switches to encoding. The Beaufort Cipher Encoder works too, and it even decodes, since the cipher is its own inverse. Nothing you paste leaves your browser.
Examples
| Cipher text | Keyword | Plain text |
|---|---|---|
Pnah rx qg hwx okyt mdrx |
BREAD |
Meet me by the duck pond |
Qvcgnahm ney ybj iaeaa arrum |
SPRINKLES |
Cupcakes for the class party |
Zin ptvkaz iwc redubyfj |
SPRING |
The tulips are blooming |
Aaw utk ls zxw rdeje sl 2 |
SEASHELL |
See you at the beach at 2 |
How to recognize Beaufort cipher text
- Spaces and punctuation sit where they were, but one letter can stand for many others, so double letters rarely stay double:
MeetbecamePnah. - In a long message, the letters turn up much more evenly than in English, where E, T and A stand out.
- Vigenère messages look the same. For a message of a few sentences, the Cipher Identifier lists both ciphers with a guess at the keyword's length, such as Key length 6 or a multiple of it. It can't decode them without the keyword, and a short message gives it too little to go on.
How to find the keyword
- Start with words the puzzle itself suggests, such as its title or a hint.
- If you can guess a word of the message, add each cipher letter to the letter you guessed, counting around the alphabet, to get the keyword letter above it. Guessing
MeetforPnahgives P (15) + M (12) = 27, which counts around to 1, B, and then R, E and A, so the keyword starts withBREA.
When the result looks wrong
- "Enter a keyword." means the Keyword field is empty or has no letters, such as a keyword of digits only.
- When only some letters come out wrong, evenly spaced, one keyword letter is mistyped, and the spacing equals the keyword's length. With
BREEDinstead ofBREAD, the first example decodes toMeex me by xhe dugk ponh. - Some puzzles use the variant Beaufort cipher, which subtracts the keyword letter from the message letter instead. Its messages decode on the Vigenere Cipher Encoder with the same keyword.