Playfair Cipher
Encrypt or decrypt using a 5×5 digraph cipher square generated from a keyword.
Cryptography
You might also like
Caesar Cipher
Encrypt or decrypt text using a classic shift cipher with adjustable rotation.
Vigenère Cipher
Encrypt or decrypt text using a keyword-based polyalphabetic substitution cipher.
Hill Cipher (2×2)
Encrypt or decrypt text using a 2×2 matrix cipher over the alphabet (mod 26).
How to use Playfair Cipher
Enter a keyword to generate the 5×5 key square.
Choose Encrypt or Decrypt mode.
Type or paste your text input.
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.