Cipher Table

A workbench for secret writing

Every cipher has a seam.

Paste a message you can't read and watch it come apart, or choose a cipher and write one of your own. Twenty classical ciphers, each one explained, illustrated and breakable.

Try one:

What you can do here

Write it, read it, break it.

01

Encode and decode

Every cipher has two panes that mirror each other. Type plain text in one and the secret appears in the other; paste a secret and it reads itself back.

02

Break it without the key

Eleven of the ciphers can be cracked automatically. The breaker tries keys, scores each attempt for how English it reads, and shows its working.

03

Understand why

Each page explains how the cipher works, where it came from, and the flaw that undid it, with a diagram that moves as you type.

The collection

Twenty ciphers, in four families

From a Spartan rod to the bytes in this page. The red line on each card is a real sample of that cipher.

Substitution

Every letter is swapped for another, always the same one.

Polyalphabetic

The swap changes from letter to letter, steered by a keyword.

Transposition

The letters stay themselves but change places.

Codes & encodings

No secret key: just another way of writing.

How a machine reads a secret

Classical ciphers were designed to be worked with pencil and paper, and they share a weakness: they leave fingerprints of the language underneath. English uses E far more than Z. It is full of THE and ING and TION. A cipher can disguise those habits, but until the twentieth century none could erase them.

The breakers on this site lean on that. They carry a table of how common every four-letter sequence is in English, and use it to give any piece of text a single score for how English it looks. Breaking a cipher then becomes a search: try a key, score the result, adjust, repeat. For a Caesar cipher that means 25 attempts. For a scrambled alphabet it means many thousands of small swaps, each kept only if the score improves.

All of it happens in your browser. Nothing you paste is uploaded, which also means it works offline once the page has loaded.

Identify an unknown cipher →   Count the letters yourself →