Playfair Cipher (Encode & Decode)

Security Tools

Encrypt letter pairs with a 5×5 keyword square

FreePrivateInstant
Add a file · .txt .md .csv .json … · up to 2.00 MB
Keyword

Similar tools you may like

History

All history →

Playfair Cipher (Encode & Decode) — at a glance

Lock or unlock a message with the classic Playfair square.

You paste
HIDE THE GOLD IN THE TREE STUMP
Run Playfair
Result
BM OD ZB XD NA BE KU DM UI XM MO UV IF

How to use it — step by step

Your text and a keyword. Letters are paired up and swapped using a 5×5 grid built from the keyword.

1

Add your text

Paste or type your input into the box. The Sample button fills in an example.

2

Choose the options

Pick the mode and settings you need. Results update when you run the tool again.

3

Press Run Playfair

The result is made instantly inside your browser.

4

Copy the result

Use the Copy button, or send it to another tool.

Pro tips

Small things that make the result better.

✦Both sides must use the same keyword.
✦Decoded text may keep extra X letters that were added as padding.
✦I and J are treated as the same letter.

Quick facts

Freeno signup
Privateruns in your browser
Instantresult in a second
No limituse it as often as you like

Frequently Asked Questions

How does Playfair work?+

The keyword fills a 5×5 grid. Each pair of letters is replaced by the letters in the same row, same column or the opposite corners of a rectangle.

Is Playfair secure?+

No. It was used in the field long ago but is easy to break today. Use it for puzzles and learning.

Is my data safe?+

Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.

Is this tool really free?+

Yes — completely free, no signup, no watermark and no usage limit.

More Free Tools