Free Online Tool

Playfair Cipher

Use digraph substitution with the Playfair cipher and its 5x5 letter grid.

How to Use Playfair Cipher

  1. Enter or edit a keyword to build the 5x5 key square.
  2. Letters are uppercased, J is merged with I, repeated letters in a pair are separated with X, and an odd final letter is padded with X.
  3. Encode uses right shifts for a shared row, down shifts for a shared column, and opposite rectangle columns otherwise.
  4. Use Decode with the same keyword to reverse the row and column shifts.

Examples

Keyword:

PLAYFAIR EXAMPLE

Plaintext:

HIDETHEGOLDINTHETREESTUMP

Output:

BMODZBXDNABEKUDMUIXMMOUVIF

Features

Privacy Focused

All processing happens in your browser. No data is sent to servers.

Free Forever

No registration, no limits, completely free to use.