Keyword Cipher
Build the cipher alphabet from the keyword you choose, followed by the remaining letters. Enciphers and deciphers, and shows the generated alphabet next to the plain one.
—
The keyword that scrambles the alphabet
The keyword cipher solves a practical problem with simple substitution: memorising a permutation of 26 letters is impossible, memorising a word is trivial. The cipher alphabet starts with the letters of the key, with repeats dropped, and continues with the remaining letters in normal order. The key SECRET produces S, E, C, R, T and then A, B, D, F and onwards.
Type the key and the text and the page shows both alphabets aligned, plain on top and cipher below — looking at that pair is what makes the cipher click. The reverse direction deciphers using the same pair read the other way. Accents are stripped before enciphering: without that, an accented character would pass through untouched and hand part of the content to anyone trying to break it.
Like every monoalphabetic substitution, it falls to frequency analysis. Each plaintext letter always becomes the same ciphertext letter, so the language's distribution survives: the most common letter in the ciphertext is almost always E or A in disguise. With a paragraph of reasonable size, breaking it takes minutes — the value of the cipher today is educational and recreational.
Frequently asked questions
Can the key contain repeated letters?
Where should the key sit in the alphabet?
How does it differ from a Caesar cipher?
Related Tools
Bifid Cipher with Custom Key
Encrypts text with the Bifid cipher using a 5x5 Polybius square built from your keyword, merging I and J and interleaving row and column coordinates.
Vigenère Cipher
Encrypt and decrypt text with the polyalphabetic Vigenère cipher using a keyword. More robust than Caesar by using multiple shifts. Everything in your browser.
Source Code Secret Scanner
Finds API keys, tokens, passwords and private keys pasted from code or .env files, by known pattern and by high entropy.
Trithemius Cipher
Polyalphabetic cipher where letter n is shifted by n positions (similar to Vigenère with key ABCDEF…). Invented by Johannes Trithemius in the 16th century.
Vigenère Autokey Cipher Encoder and Decoder
Enciphers or deciphers text with the classic autokey variant, where the plaintext extends the keyword instead of repeating it. Letters A to Z only.
Hill Cipher 2×2
Encrypt text with a 2×2 matrix mod 26 (Hill cipher) — algebraic explanation and key invertibility check.