The complete reference

Types of Ciphers and Codes

Every cipher and code on CipherPad in one list: what type of scheme it is, how many keys it has, when it appeared and what HELLO looks like in it. Below the list are the six types explained, the full charts for Morse, binary, braille, the NATO phonetic alphabet, pigpen and the Polybius square, and a one-line summary of every classic cipher.

Last updated 15 October 2026

All 21 ciphers and codes at a glance

Each name opens its translator. The type says what the scheme does to a letter, the key space says how many keys there are to try, and the era is when its history on this site places it.

Every cipher and code with its type, key space, era and HELLO. Keyed ciphers use each translator's starting key: shift 3, keyword KEY, 3 rails, a = 5 and b = 8.
Cipher or codeTypeKey spaceEraHELLO
Morse CodeEncodingNone1844.... . .-.. .-.. ---
Binary CodeEncodingNone1940s01001000 01000101 01001100 01001100 01001111
Text to BinaryEncodingNone196301001000 01000101 01001100 01001100 01001111
Binary to TextEncodingNone1960s01001000 01000101 01001100 01001100 01001111
BrailleEncodingNone1824⠓⠑⠇⠇⠕
Caesar CipherSubstitution25 keysJulius CaesarKHOOR
ROT13SubstitutionNone (fixed shift of 13)1980sURYYB
Atbash CipherSubstitutionNone (fixed mirror)Hebrew BibleSVOOL
Vigenere CipherPolyalphabetic26^n for a key of n letters, but recoverable from ciphertext alone16th centuryRIJVS
Pig LatinWord gameNoneEarly 20th centuryEllohay
Leetspeak (1337)Word gameNone1980sH3110
A1Z26SubstitutionNone8-5-12-12-15
Tap CodeEncodingNone (fixed 5x5 grid)Vietnam War.. ... . ..... ... . ... . ... ....
NATO Phonetic AlphabetEncodingNone1950sHotel Echo Lima Lima Oscar
Base64 TextEncodingNoneEarly emailSEVMTE8=
Pigpen CipherSubstitutionNone (fixed symbol set)18th century
Playfair CipherDigraphic25! grid arrangements, far fewer in practice from real keywords1854DB NV MI
Rail Fence CipherTranspositionOne key per rail count, typically under 30AntiquityHOELL
Bacon CipherSubstitutionNone (fixed biliteral code)c. 1605AABBB AABAA ABABB ABABB ABBBA
Affine CipherSubstitution312 keysRCLLA
Polybius SquareSubstitutionNone (fixed 5x5 grid)c. 150 BCE23 15 31 31 34

The six types of ciphers and codes

Every scheme on CipherPad does one of a handful of things to a letter: rewrites it in another alphabet, swaps it for something else, swaps it differently each time, swaps it two at a time, moves it, or plays with the word around it.

Encodings (8)

An encoding rewrites each letter in another public alphabet: dots and dashes, raised dots, code words, bits or taps on a grid. There is no key, so anyone who recognises the system can read it straight back.

Substitution ciphers (8)

A substitution cipher replaces every letter with another letter, number or symbol, always the same one for the same letter. The letter frequencies survive the swap, which is why frequency analysis breaks them.

Polyalphabetic ciphers (1)

A polyalphabetic cipher switches between several substitution alphabets as it goes, chosen by a keyword, so the same letter is enciphered differently in different places. That flattens the letter frequencies a simple substitution gives away.

Digraphic ciphers (1)

A digraphic cipher enciphers letters in pairs instead of one at a time, which hides the single-letter frequencies that betray simple substitutions.

Transposition ciphers (1)

A transposition cipher keeps every letter but changes their order. The letter frequencies stay exactly those of the original text, and that is the giveaway.

Word games (2)

A word game reshapes words by a fixed, public rule, for play rather than secrecy: moving sounds around, or swapping letters for lookalike digits.

Morse code alphabet

The full A to Z, built so common letters get the shortest codes. See the alphabet guide or open the Morse translator.

A
.-
B
-...
C
-.-.
D
-..
E
.
F
..-.
G
--.
H
....
I
..
J
.---
K
-.-
L
.-..
M
--
N
-.
O
---
P
.--.
Q
--.-
R
.-.
S
...
T
-
U
..-
V
...-
W
.--
X
-..-
Y
-.--
Z
--..

Morse code numbers

0
-----
1
.----
2
..---
3
...--
4
....-
5
.....
6
-....
7
--...
8
---..
9
----.

Binary alphabet (8-bit ASCII)

Each letter as its 8-bit binary byte. More in the binary guide, or convert your own with the binary translator.

A
01000001
B
01000010
C
01000011
D
01000100
E
01000101
F
01000110
G
01000111
H
01001000
I
01001001
J
01001010
K
01001011
L
01001100
M
01001101
N
01001110
O
01001111
P
01010000
Q
01010001
R
01010010
S
01010011
T
01010100
U
01010101
V
01010110
W
01010111
X
01011000
Y
01011001
Z
01011010

Braille alphabet

Grade 1 braille, one cell per letter, with the dot numbers for each. See the braille guide or the braille translator.

A
⠁
dots 1
B
⠃
dots 1-2
C
⠉
dots 1-4
D
⠙
dots 1-4-5
E
⠑
dots 1-5
F
⠋
dots 1-2-4
G
⠛
dots 1-2-4-5
H
⠓
dots 1-2-5
I
⠊
dots 2-4
J
⠚
dots 2-4-5
K
⠅
dots 1-3
L
⠇
dots 1-2-3
M
⠍
dots 1-3-4
N
⠝
dots 1-3-4-5
O
⠕
dots 1-3-5
P
⠏
dots 1-2-3-4
Q
⠟
dots 1-2-3-4-5
R
⠗
dots 1-2-3-5
S
⠎
dots 2-3-4
T
⠞
dots 2-3-4-5
U
⠥
dots 1-3-6
V
⠧
dots 1-2-3-6
W
⠺
dots 2-4-5-6
X
⠭
dots 1-3-4-6
Y
⠽
dots 1-3-4-5-6
Z
⠵
dots 1-3-5-6

Braille numbers

Digits reuse the letters A to J behind the numeric indicator. Full detail and a 1 to 100 chart in the braille numbers guide.

Braille numbers: the numeric indicator followed by the cell for the matching letter
NumberBrailleReuses letterDots in the digit cell
Numeric indicator⠼none3-4-5-6
1⠼⠁A1
2⠼⠃B1-2
3⠼⠉C1-4
4⠼⠙D1-4-5
5⠼⠑E1-5
6⠼⠋F1-2-4
7⠼⠛G1-2-4-5
8⠼⠓H1-2-5
9⠼⠊I2-4
0⠼⠚J2-4-5

NATO phonetic alphabet

Alfa to Zulu, the words that survive a noisy radio. Full detail in the NATO guide.

A
Alfa
B
Bravo
C
Charlie
D
Delta
E
Echo
F
Foxtrot
G
Golf
H
Hotel
I
India
J
Juliett
K
Kilo
L
Lima
M
Mike
N
November
O
Oscar
P
Papa
Q
Quebec
R
Romeo
S
Sierra
T
Tango
U
Uniform
V
Victor
W
Whiskey
X
Xray
Y
Yankee
Z
Zulu

Pigpen cipher

The Freemason symbol cipher, letter by letter. Learn it in the pigpen guide.

A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z

Polybius square

Every letter as a row and column number on a 5x5 grid. Read the full story in the Polybius square guide or open the Polybius square translator.

A
11
B
12
C
13
D
14
E
15
F
21
G
22
H
23
I/J
24
K
25
L
31
M
32
N
33
O
34
P
35
Q
41
R
42
S
43
T
44
U
45
V
51
W
52
X
53
Y
54
Z
55

Classic ciphers at a glance

Caesar
Shift every letter a fixed number of places.
ROT13
A Caesar shift of 13, its own inverse.
Atbash
Mirror the alphabet, A to Z, B to Y.
Vigenere
Shift each letter by a keyword, polyalphabetic.
A1Z26
Letters to numbers, A is 1 and Z is 26.
Tap code
Two bursts of taps on a 5 by 5 grid.
Leetspeak
Swap letters for lookalike numbers, 3 for E.
Base64
Repackage text into 64 safe characters.
Playfair
Encrypt pairs of letters using a 5x5 keyword grid.
Rail fence
Zigzag letters across rails, a transposition cipher.
Bacon
Spell each letter as five A/B symbols.
Affine
Multiply then shift each letter's position, mod 26.

Read the theory in what is a cipher, the Caesar explainer and the Vigenere explainer.

All translators

Codes

Classic ciphers

Alphabets

For fun

All guides

Frequently asked questions

What are the cipher codes I can use with letters?

Almost every scheme in the list works on letters. Substitution ciphers such as Caesar, Atbash, A1Z26 and pigpen swap each letter for another letter, number or symbol, Vigenere and Playfair add a keyword, and the rail fence reorders the letters instead. Codes such as Morse, braille, the NATO alphabet and binary spell each letter as dots, raised dots, words or bits, and each one has a free translator here.

How many types of ciphers and codes are there?

This reference sorts the 21 schemes on CipherPad into six types: encodings, substitution ciphers, polyalphabetic ciphers, digraphic ciphers, transposition ciphers and word games. Underneath, there are two basic moves: replace the letters (substitution) or rearrange them (transposition). Polyalphabetic and digraphic ciphers are cleverer ways of substituting.

Are any of these ciphers secure?

No. Every scheme in the list is either an encoding with no key at all or a historical cipher that standard cryptanalysis breaks in well under a second on a modern computer. Use them for puzzles, teaching and games, and use modern encryption such as the Web Crypto API for anything that matters.