Skip to content
D DocNectar

Free Polybius Square Cipher Encoder and Decoder

Encode or decode text with a Polybius square, converting each letter to a pair of grid coordinates.

100% Free No Signup Works on all devices

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

Key Features

Instant Calculation

Get accurate results in real time with our optimized algorithm.

Mobile Friendly

Fully responsive design. Works on all devices & screen sizes.

Privacy Focused

Your data stays on your device. We don't store any inputs.

100% Free

No hidden costs. This tool is completely free forever.

The Polybius square is one of the oldest known ciphers, dating back to ancient Greece. It converts each letter into a pair of numbers based on its position in a 5x5 grid.

This tool encodes text into coordinate pairs, or decodes coordinate pairs back into text.

How it works

The 26 letters of the alphabet are arranged in a 5x5 grid (I and J share one cell, since 26 letters can't fit evenly into 25 cells), giving each letter a row and column number from 1 to 5. To encode, each letter is replaced with its row and column digits (e.g. A becomes 11). To decode, each pair of digits is looked up to find the matching letter.

  1. Enter mode.
  2. Enter text or Coordinates.
  3. Click Calculate to see your results.

Examples

Encoding "HELLO"

"HELLO" becomes "23 15 31 31 34" using the standard 5x5 grid (I/J combined).

Who should use it

  • Puzzle and escape-room style word games.
  • Teaching how classical grid-based ciphers work, as a stepping stone to Bifid or Trifid.

Industry applications

  • Cryptography education
  • Games and puzzles

Advantages

  • Simple, visual, and easy to do by hand with a drawn grid.
  • The foundation for more advanced classical ciphers like Bifid and ADFGVX.

Limitations

  • Offers no real security — a direct, fixed substitution with no key.

Common mistakes to avoid

  • Forgetting to separate coordinate pairs with spaces when decoding, which makes them impossible to split correctly.
  • Expecting J to decode separately from I — in the standard grid, they share one cell.

Best practices

  • Use the Polybius square for puzzles, teaching, or as a building block for more advanced ciphers like Bifid and Trifid, which use it internally.

Tips

  • This tool's Bifid and Trifid ciphers build directly on the Polybius square idea — try them next if you want to see how it can be combined with transposition for extra security.

Frequently asked questions

Yes, with no signup and no limit on how many conversions you run.
They share the same grid cell (a common convention since a 5x5 grid only has 25 cells for 26 letters) — decoding that pair of coordinates always returns "I".
No — it's a simple 1-to-1 substitution with a well-known, fixed grid layout, so it offers no real security. It's used for teaching and puzzles.
Space-separated two-digit pairs, like "23 15 31 31 34" — matching exactly what the encode mode produces.

Get new calculators and guides in your inbox

No spam — just new tools like Polybius Square Cipher Tool and practical guides.

Favorites