PB
Available
lock
lock Free · Private · In-Browser

Playfair Cipher

Encode and decode Playfair digraphs with a keyed five-by-five square.

 

How Playfair Cipher works

Playfair Cipher handles digraphs through a keyed five-by-five alphabet square, using row shifts, column shifts, and rectangle corners rather than single-letter substitution. The square removes duplicate key letters and merges J with I. Repeated plaintext letters receive an X separator, and an odd final letter receives X padding. The Playfair Cipher exposes its message, square keyword, operation controls so this particular convention stays inspectable instead of hiding behind an unexplained preset.

The classic key PLAYFAIR EXAMPLE transforms HIDETHEGOLDINTHETREESTUMP into BMODZBXDNABEKUDMUIXMMOUVIF, matching the standard worked example. Puzzle solvers can inspect the exact preparation rules that explain why decrypted Playfair text may contain filler X characters. The Playfair Cipher presents a deterministic plain-text result that can be copied and compared with the worked value before it enters another workflow.

Limits and private processing

Decryption retains inserted fillers because removing them automatically could destroy genuine X letters. Playfair is a historical teaching cipher, not secure encryption. The Playfair Cipher performs its complete operation locally in your browser; neither the source text nor its settings are uploaded, stored remotely, or sent through an external request.

Frequently Asked Questions

How does the Playfair Cipher work?

The square removes duplicate key letters and merges J with I. Repeated plaintext letters receive an X separator, and an odd final letter receives X padding.

What does the default Playfair Cipher example return?

The classic key PLAYFAIR EXAMPLE transforms HIDETHEGOLDINTHETREESTUMP into BMODZBXDNABEKUDMUIXMMOUVIF, matching the standard worked example.

What limitation should I know about?

Decryption retains inserted fillers because removing them automatically could destroy genuine X letters. Playfair is a historical teaching cipher, not secure encryption.

Is the Playfair Cipher private?

Yes. This specific playfair cipher operation runs locally in your browser and does not transmit the input or settings.

Take it further
All Free Tools

Browse the full set of free, private, in-browser tools.

Learn More arrow_forward