Tools
English

Neogie Substitution · Word games

Substitution Cipher and Frequency Analysis

Encrypt with your own alphabet, or rebuild the alphabet of an unknown message letter by letter.

Settings

Everything happens in your browser: nothing you type is sent.

The principle

Each letter of the alphabet is replaced by another one, always the same, according to a shuffled alphabet. You can give all 26 letters in the order you like, or a keyword: with “ZEBRA” the alphabet becomes ZEBRACDFGH…, the word first, then the remaining letters.

There are more than 400 septillion possible alphabets: trying them one by one is out of the question.

Why it breaks anyway

Every language has its habits. In English, E comes up most often, then T, A and O. Substitution does not change these frequencies, it only moves them. By counting the letters of a long enough message, you guess the first matches, and words do the rest.

Using the solving bench

Paste the encrypted message into the second box: the bench shows the frequency of every letter. “Suggest from frequencies” gives a first draft, rarely right at once. Correct letters one by one as you read: look for short words, double letters and endings.

A game, not a protection

Simple substitution is the cryptogram of puzzle pages. It protects nothing serious: that takes encryption such as AES.

Frequently asked questions

How much text is needed to break it?

A few hundred letters are often enough by hand. Below fifty, several solutions remain possible.

The first draft is wrong, is that normal?

Yes. Letters with similar frequencies look alike; swap them as you read.

Do accents count?

Only the letters A to Z are replaced. Tick the box to convert accented letters before encrypting.

Are my message or key sent anywhere?

No. Everything is computed in your browser, and the key is not saved.

How is it different from the Caesar cipher?

Caesar shifts the whole alphabet by the same number of places: it only has 25 keys. Here the alphabet is shuffled freely, so you have to reason about frequencies.

Similar tools

Neogie BrailleBraille Translator: Text to Braille and BackType text to see it in braille, or paste braille signs to read them. Neogie A1Z26Letters to Numbers Converter (A=1, Z=26)Type words to get numbers, or paste numbers to read the words. Neogie SemaphoreSemaphore Flag Alphabet: Encode and DecodeType a message to see the flag positions, or tap the drawings to read it. Neogie AffineAffine Cipher: Encode and Decode OnlineChoose a and b, or paste an unknown message: the most likely keys are suggested. Neogie BaconBacon's Cipher: Encode and Decode (A and B)Five signs per letter: write a message or paste A and B groups to read it. Neogie CaesarCaesar Cipher: Encode and Decode OnlinePick a shift, or paste an unknown message and read all 25 attempts, ranked from the most to the least likely. Neogie PlayfairPlayfair Cipher: Encode and DecodeEnter a keyword: the square is drawn and the message is encrypted two letters at a time. Neogie VigenereVigenère Cipher: Encode, Decode and Find the KeyWith the key, the message reads at once; without it, the tool suggests the most likely keys. Neogie TranspositionRail Fence and Scytale Transposition CipherThe letters do not change, they change places: pick the method and the key. Neogie AtbashAtbash Cipher: the Reversed Alphabet OnlinePaste your text on either side: the same operation encodes and decodes. Neogie MorseMorse Code Translator with SoundType a message to see and hear it in Morse, or paste dots and dashes to read them. Neogie PigpenPigpen (Masonic) Cipher: Encode and DecodeType a message to draw it in symbols, or tap the symbols to decipher it. Neogie SyllablesOnline syllable counter: poems, haiku, textsType or paste a text: syllables are counted as you go, line by line and word by word. Neogie RhymesRhyming Dictionary: Find Words That RhymeType a word and see the words that rhyme with it, for a poem, a song or a game. Neogie AnagramAnagram generator: all the words from a set of lettersType some letters: all the words you can form with them, from longest to shortest. Neogie IdentifyCipher Identifier: Which Code Is This?A mysterious message? Paste it: leads are listed from the most to the least likely. Neogie TilesBest words from letter tiles, with pointsEnter the letters on your rack: the possible words, ranked from most to least profitable. Neogie ROT13ROT13 and ROT47: Encode and Decode OnlineThe same operation encodes and decodes: paste your text on either side. Neogie GuessWord of the Day Solver: right and wrong letter positionsEnter your guesses and their colours: the tool keeps only the words that are still possible. Neogie CrosswordCrossword and arrow puzzle solver by known lettersType the letters you have and one question mark per empty cell: the matching words appear.