Skip to main content

Polybius Square Cipher: Encoder, Decoder & Live 5x5 Grid

Turn letters into 5x5 grid coordinates and back, with a keyword square, origin switch and a live grid, browser-only

  • Runs locally
  • Category Encoding & Crypto
  • Best for Checking small payloads, tokens, hashes, and encoded values quickly.
Polybius square cipher. The alphabet sits in a 5×5 grid (I and J share a cell) and each letter becomes its row-and-column coordinate: with the standard grid A is 11, B is 12, M is 32, Z is 55. Decode reads the digits back in pairs. A keyword reshuffles the grid; the origin switches between 11-55 and 00-44. Built for puzzles and CTF, not real encryption.
Start at
Separator
Input0 chars
Output0 chars
Result appears here.
Current 5×5 square

Read a coordinate as row then column. Click feeds the alphabet through this exact grid.

12345
1ABCDE
2FGHI/JK
3LMNOP
4QRSTU
5VWXYZ

What this tool does

Free online Polybius square cipher tool that encodes letters into two-digit grid coordinates and decodes them back, right in your browser. The alphabet sits in a 5x5 square where I and J share a cell, and every letter becomes its row-then-column number. With the standard grid A is 11, B is 12, H is 23 and Z is 55, so HELLO encodes to 23 15 31 31 34. Decode reads any stream of digits back in pairs and is forgiving about separators, so 23 15 31 31 34, 2315313134 and 23-15-31-31-34 all return HELLO. A keyword front-loads the grid with its unique letters before the rest of the alphabet, which reshuffles every coordinate, and the origin switch moves the numbering between the classic 11-55 and the 00-44 form. Choose your separator, keep or drop spaces and punctuation, and read the live 5x5 square that shows exactly where each coordinate points. The whole tool is 100% client-side with one-click copy and a shareable link that reopens your text, direction and keyword. No upload, no server round-trip.

Tool details

Input
Files + Text
The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
Output
Live result + Copy
The result area focuses on usable output, with copy, download, or preview actions when supported.
Privacy
Browser-side processing
The main tool logic does not call an external API, so inputs normally stay in the current tab.
Save / share
Shareable URL state
Key settings are encoded in the URL so another person can reopen the same setup.
Performance budget
Initial JS <= 9 KB
No WASM budget is declared, keeping the tool quick to open on mobile.
Best fit
Encoding & Crypto · Student
Category and role tags drive related tools, internal links, and quick fit checks.

How to use

  1. 1. Input

    Paste or drop your content into the tool panel.

  2. 2. Process

    Click the button. All processing is local in your browser.

  3. 3. Copy / Download

    Copy the result or download to disk in one click.

How Polybius Square Cipher Encoder & Decoder fits into your work

Use it for quick browser-side encoding, decoding, hashing, token checks, and share-safe transformations.

Encoding jobs

  • Checking small payloads, tokens, hashes, and encoded values quickly.
  • Preparing values for APIs, URLs, docs, or support tickets.
  • Avoiding account-based tools when the input might be sensitive.

Encoding checks

  • Do not paste live secrets unless you are comfortable with local browser handling.
  • Confirm whether the operation is reversible before sharing the result.
  • For hashes, compare the exact algorithm and casing expected by the receiver.

Good next steps

These links move the current task into a more complete workflow.

  1. 1 Caesar Cipher Encoder & Decoder Encrypt, decrypt and brute-force a Caesar shift cipher — all 25 shifts at once, ROT13 shortcut, browser-only Open
  2. 2 Vigenère Cipher Encoder / Decoder Encrypt and decrypt with a keyword, polyalphabetic shift, case kept, non-letters passed through, browser-only Open
  3. 3 Morse Code Translator Text to Morse code and back — encode, decode, audio playback, ITU standard. Open

Real-world use cases

  • Crack a Polybius CTF challenge

    A crypto task hands you a wall of two-digit numbers like "33 15 31 51 11 24 31 34" and the hint "5x5 grid". Paste the stream in, switch to Decode, and the pairs resolve to PLAYFAIR (or whatever the flag is). If the numbers do not read as words, try a keyword you spotted in the challenge text or flip the origin to 0; the live grid shows exactly which letter each coordinate points at, so you can sanity check a single pair by hand instead of decoding the whole thing blind.

  • Build a coordinate puzzle for an escape room

    You want a clue that looks like a lock combination. Type the secret word, read off the coordinate pairs, and print them on a prop next to a drawn 5x5 grid. Players who find the grid can look each pair up by row and column. Set a keyword to reshuffle the letters so a player who knows the plain A=11 layout still cannot shortcut it, and share the link so a co-organizer reopens the exact same square.

  • Teach the row-column idea before Playfair or ADFGVX

    Polybius is the gateway cipher: it is the first time students meet the 5x5 grid that Playfair, Bifid and ADFGVX all reuse. Type a word, watch each letter turn into its row-then-column pair, and the class sees why I and J have to share a cell to make 26 letters fit in 25 slots. Decode a few pairs back and the reversibility clicks, which sets up the harder grid ciphers later.

  • Encode a short tap-code style message

    The Polybius square is the basis of the prisoner tap code: row taps, pause, column taps. Encode a word here to get the coordinate pairs, then translate each digit into that many knocks. WATER becomes 52 11 44 15 43, which is five-then-two, one-then-one, and so on. It is a neat demo of how a 5x5 grid carries a message through nothing but counts.

Common pitfalls

  • Forgetting that I and J share one cell. A 5x5 grid only holds 25 letters, so the standard square merges I and J. Encoding INJURE and IIURE both round-trip to a word spelled with I, and decoding 24 always returns I, never J. If your decoded text reads INURE where you expected a J, that is the merge at work, not a bug. Restore the J by reading for sense.

  • Mismatching the coordinate origin. The classic square runs 11 to 55, but some sources start at 0, so the same letter is 11 in one and 00 in the other. If you decode 11-55 numbers with the origin set to 0 the rows and columns shift by one and the whole message turns to gibberish. Match the origin to whatever produced the digits.

  • Using a different keyword to decode than to encode. A keyword reshuffles the entire grid, so the coordinate for every letter changes. Encoding with keyword SECRET and decoding with no keyword (or a different one) gives a clean-looking but wrong string of letters. The square shown on screen must be identical on both ends, so share the link, which carries the keyword.

Privacy

Every encode and decode runs as plain JavaScript inside your browser tab. The text you type, the keyword you pick and the resulting coordinates never leave the page, and nothing is logged or uploaded. One thing worth saying plainly: the Polybius square is not real encryption. With no keyword the grid is public knowledge, and even a keyword only reshuffles 25 letters, so anyone can recover the message by hand. Use it for puzzles, CTF practice and teaching, never to protect a password or a private note. The shareable link encodes your text, direction and keyword in the query string, so a link pasted into chat lands those characters in the recipient server's access log. Fine for a puzzle, not for anything you truly need kept private.

FAQ

Tool combos

Folks in your role tend to reach for these alongside this tool.

Made by Toolora · 100% client-side · Updated 2026-05-29