Playfair Cipher
Encrypt and decrypt text with the 5×5 Playfair digraph substitution cipher.
Key square (I = J):
P
L
A
Y
F
I
R
B
C
D
E
G
H
K
M
N
O
Q
S
T
U
V
W
X
Z
EBIMQMGHVRCZ
How the Playfair cipher works
The Playfair cipher encrypts pairs of letters (digraphs) using a 5×5 key square built from a keyword. I and J share a cell. Pairs in the same row shift right; same column shifts down; otherwise each letter moves to the opposite corner of the rectangle they form. It was used by the British and Australians in World War I and World War II.
Private & free — this tool runs entirely in your browser.
Recommended: IndieKit — Ship your Next.js startup in days.affiliate
Related Encoders & Decoders tools
Base64 Encoder
Encode or decode Base64 strings.
URL Encoder
Safely encode or decode URL parameters.
Base Converter
Convert numbers between binary, octal, decimal, hex, and base 2-36.
ROT13 Encoder / Decoder
Apply the reversible ROT13 letter-substitution cipher.
HTML Entity Encoder / Decoder
Escape or unescape HTML entities like & and <.
Punycode Converter
Convert internationalized domains to and from Punycode.
Text to Morse Code
Translate text into Morse code dots and dashes.
Morse Code to Text
Decode Morse code dots and dashes back into text.