Playfair Cipher

Encrypt or decrypt using a 5×5 digraph cipher square generated from a keyword.

Client-side only. Data never leaves your device.
5×5 Key Square
I/J combined
M
O
N
A
R
C
H
Y
B
D
E
F
G
I
K
L
P
Q
S
T
U
V
W
X
Z
Tip: try keyword MONARCHY and input INSTRUMENTS.
Input is normalized (A–Z, J→I). Repeated letters in a pair are split with X; odd length is padded with X.

How to use Playfair Cipher

1

Enter a keyword to generate the 5×5 key square.

2

Choose Encrypt or Decrypt mode.

3

Type or paste your text input.

4

Copy the resulting output.

Frequently Asked Questions

What happens to the letter J?

Playfair usually combines I/J. This tool converts J→I.

Why do you insert X?

To avoid double letters in a pair (e.g. 'LL') and to pad an odd final letter.

Is Playfair secure?

No. It’s for education and classic cryptography demonstrations.

Why use Kitbase Playfair Cipher?

Key square visualized

See the generated 5×5 square instantly.

Classic digraph cipher

Transforms text in letter pairs with simple geometric rules.

Demo included

Load a canonical Playfair example to learn quickly.

Privacy-first

Runs locally in your browser.

ToolsPDFImageDevText