Playfair Cipher — Free Online Tool

Encrypt and decrypt with the Playfair digraph cipher using a 5×5 keyword square (I/J merged). Playfair Cipher is a free online tool from the ToolsRift Text Encoding Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.

Loading Playfair Cipher

How to use Playfair Cipher

  1. Open the Playfair Cipher above — it loads instantly, no account needed.
  2. Enter or upload your input. Everything is processed locally on your device.
  3. Get your result immediately and copy or download it with one click.

Frequently asked questions

How does the Playfair cipher work?

A keyword fills a 5×5 grid (I and J share a cell). The message is split into letter pairs; each pair is transformed by the row/column rules — same row shifts right, same column shifts down, otherwise the pair forms a rectangle and swaps columns.

Why are X letters inserted?

If a pair contains two identical letters (like the LL in HELLO) an X separates them, and a trailing X pads an odd-length message. This is why decrypted text may contain extra X letters where padding was added.

Does J appear in the output?

No. J is merged into I before encryption, so decrypted text shows I wherever the original had J. This is standard for the classic Playfair square.

More Text Encoding Tools

Columnar Transposition Cipher
Encrypt and decrypt with keyword columnar transposition. Columns are read in alphabetical key order
Scytale Cipher
Encrypt and decrypt with the ancient Spartan scytale rod transposition cipher. Round-trip guaranteed
Keyword Substitution Cipher
Build a mixed cipher alphabet from a keyword and encrypt/decrypt monoalphabetic substitution text
Bifid Cipher
Encrypt and decrypt with the Bifid cipher combining a Polybius square with coordinate fractionation
Four-Square Cipher
Encrypt and decrypt digraphs using two keyword squares and two plain 5×5 squares. Round-trip guaranteed
Morse Code Translator
Convert text to Morse code and decode Morse back to text with audio playback support

← View all Text Encoding Tools