Home › Text Tools › Polybius Square Cipher

Polybius Square Cipher

Convert letters into row-and-column coordinates on a Polybius square (H = 23, E = 15) and decode number pairs back into text. Use the classic 5×5 grid, a 6×6 grid with digits, or scramble it with a keyword, and see every step on the grid.

Last updated:

Your Polybius square

Click a cell to add that letter to your text. Cells used by your message are highlighted.

Advertisement
Advertisement

How to use the Polybius Square Cipher

  1. Choose a direction: Text → numbers to encode, or Numbers → text to decode.
  2. Pick the square: 5×5 (I and J share a cell) is the classic choice; 6×6 also covers digits.
  3. Add a keyword if you want a keyed square. Sender and receiver must use the same keyword.
  4. Type or paste your text. The result, the highlighted grid and the step-by-step lookup update instantly.
  5. Copy the result, or copy the grid to share it as the key.

The standard 5×5 Polybius square

Read the row number first, then the column number. I and J share cell 24.

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

Example: CODE → C is row 1 column 3 (13), O is 34, D is 14 and E is 15, giving 13 34 14 15.

Building a keyed square

  1. Write the keyword in capitals and remove repeated letters: SECRET MESSAGE becomes S E C R T M A G.
  2. Fill the grid row by row with those letters.
  3. Continue with the rest of the alphabet in order, skipping letters already placed (and J, if I/J share a cell).

A keyword changes almost every coordinate, but the grid is still a simple substitution, so long messages can be solved by letter frequency. For puzzles, a short keyword plus a hint is usually enough challenge.

Variants you may meet in puzzles

VariantGridHow it differs
Classic Polybius5×5, I = JRow then column, digits 1–5
Tap code5×5, C = KPairs are sent as two groups of taps
6×6 squareA–Z and 0–9No shared cells; digits can be sent
Lettered coordinates5×5 with A–E labelsPairs look like letters, e.g. H = BC
Nihilist and Bifid ciphersKeyed 5×5Use the square as the first step of a stronger cipher

Frequently asked questions

What is a Polybius square?

A Polybius square is a grid of letters where each letter is identified by its row and column number. The Greek historian Polybius described a signaling system based on such a grid in the 2nd century BC. In the common 5×5 version the first row holds A–E, so A = 11, B = 12, and H (row 2, column 3) = 23.

Why do I and J share a square?

A 5×5 grid has only 25 cells, but the English alphabet has 26 letters, so two letters must share one cell. Combining I and J is the usual convention; some puzzles combine C and K or simply leave out Q instead. When decoding, read the shared cell as whichever letter makes sense in the word. A 6×6 grid avoids the problem and adds digits 0–9.

How do I decode a Polybius cipher?

Split the numbers into pairs. The first digit is the row and the second is the column (unless the puzzle says otherwise), then look up the letter in the grid. For example 32 15 is row 3 column 2 (M) and row 1 column 5 (E): ME. If the result is nonsense, try column-first order, a keyword, or a 6×6 grid.

What is a keyed Polybius square?

In a keyed square, the letters of a keyword are written into the grid first, without repeats, followed by the remaining letters of the alphabet in order. With the keyword ZEBRAS the grid starts Z E B R A S, so the same message gives completely different numbers. Both people need the keyword to read the message.

Is the Polybius square the same as tap code?

Tap code used by prisoners is a Polybius square with C and K sharing a cell: you tap the row number, pause, then tap the column number. Choose the '5×5, C and K share a cell' option here to make tap code sequences, then tap each pair.

Is the Polybius square cipher secure?

No. On its own it is a simple substitution: each letter always gives the same pair, so frequency analysis breaks it quickly, even with a keyword. It is used in puzzles, classrooms and escape rooms, and historically as a building block of stronger ciphers such as ADFGVX and the Bifid cipher.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Bacon CipherEncode and decode Baconian A/B code (24 or 26 letters) and hide messages in letter case.Pigpen Cipher TranslatorTurn text into pigpen cipher symbols, download a PNG, print it, or decode with a symbol keyboard.Playfair CipherEncrypt and decrypt Playfair ciphers from a keyword, with the 5x5 key square and every digraph step.Caesar CipherEncode and decode Caesar shift ciphers and crack unknown shifts with a ranked brute force.Word CounterCount words and characters and clean up text.Character CounterCount characters with and without spaces, words, lines and bytes, with live limit bars.Online Word ProcessorFree browser word processor with headings, lists, tables and images. Autosaves; export DOCX or PDF.Grammar CheckerCheck grammar, spelling and punctuation with clickable suggestions and one-click fixes.Word Count to PagesHow many pages is 1,000 words? Estimate pages by font, size, spacing and margins.Remove Line BreaksStrip line breaks and extra spaces, keep paragraphs if you want.Sort Lines AlphabeticallySort a list A-Z, Z-A, numerically, naturally or by length, or shuffle it.Case ConverterConvert text to UPPERCASE, lowercase, Title Case, camelCase and more.Citation GeneratorCreate APA, MLA and Chicago citations for books, websites and articles.MLA Format GeneratorBuild an MLA 9 heading, title page layout and Works Cited entries.Bibliography GeneratorBuild an alphabetized bibliography in APA 7, MLA 9, Chicago or Harvard style.Essay Length & Reading TimeWords to reading time, speaking time and handwritten or typed pages.Lorem Ipsum GeneratorGenerate placeholder text as paragraphs, words or lists, with HTML.Instagram Caption FormatterKeep line breaks and spacing in Instagram captions and bios.Instagram Bio GeneratorCreate Instagram bios with templates, fancy fonts and emojis.X Post Character CounterCount X (Twitter) post characters and split long text into a thread.TikTok Caption CounterCount TikTok caption characters and hashtags against the 2,200 limit.Speech Length CalculatorPaste a speech to see how long it takes to say at any speaking speed.Text to SpeechTurn text into natural-sounding speech.Fancy Text GeneratorTurn text into cool Unicode fonts for bios.Reverse Text GeneratorWrite text backwards, reverse words or lines, mirror or flip it upside down.Upside Down Text GeneratorFlip text upside down with Unicode characters, or turn it back to normal.Text RepeaterRepeat any text or emoji up to 100,000 times with custom separators.YouTube Title Length CheckerCheck YouTube title length, preview truncation and score it for clicks.YouTube Description & Chapters GeneratorBuild a YouTube description with chapters, links and hashtags from templates.Text CompareFind the differences between two texts.AI Prompt GeneratorBuild better prompts for ChatGPT, Midjourney and more.Email Signature GeneratorBuild HTML email signatures for Gmail and Outlook.Flashcard MakerMake flashcard decks and study them with flip cards and spaced repetition, saved in your browser.Find and Replace TextFind and replace words or regex patterns in any text, with match highlighting and undo.YouTube Tag GeneratorGenerate YouTube tag ideas from your title and keywords and fit them in the 500-character limit.Quiz MakerMake a multiple-choice quiz, take it with instant scoring and share it with a link.Add Line NumbersNumber every line of your text with custom start, step, padding and separator, or remove numbers.Add Prefix and Suffix to LinesAdd text to the start and end of every line: quotes, commas, bullets or SQL lists.GC Content CalculatorDNA/RNA GC %, AT %, base counts, GC skew and a sliding-window GC plot from any sequence or FASTA.Goodwill Letter GeneratorWrite a goodwill letter asking a creditor to remove a late payment from your credit report.Google Ads Character CounterWrite responsive search ads with live 30/90/15 counters, pins, keyword insertion checks and a preview.Gratitude JournalWrite three things you're grateful for each day, keep a streak and search past entries, privately.Recipe Shopping List GeneratorPaste several recipes and get one combined grocery list with merged amounts, by store section.Group Chat Name GeneratorFunny, cute and clever group chat names for family, friends, work and teams, with emoji.Happy Birthday in Different LanguagesSay “Happy birthday” in 115 languages with native script, romanization and audio.Heart SymbolsCopy and paste heart symbols ♥ ❤ ♡ ❥ 💕 and decorative hearts with Alt, Unicode and HTML codes.I Love You in Different LanguagesSay “I love you” in 129 languages with native script, pronunciation guide and audio.IPA KeyboardType International Phonetic Alphabet symbols online with clickable charts and = shortcuts.Journal Prompts GeneratorGet random journaling prompts for self-discovery, gratitude, goals or calm, and save favorites.Text Memorization ToolMemorize speeches, poems and verses by hiding words, using first letters and testing recall.Mnemonic GeneratorTurn a list of terms into a memorable first-letter sentence, acrostic or acronym.Your Name in JapaneseWrite your name in Japanese katakana with romaji reading, spelling options and a name card.One Word Per LineSplit any text into a list with one word per line; strip punctuation, dedupe, lowercase and sort.ORF FinderFind open reading frames in all 6 frames of a DNA sequence, with positions, lengths and protein translations.Invitation Wording GeneratorTurn your event details into polished invitation wording for birthdays, showers, weddings and more.Playlist Name GeneratorAesthetic, funny and simple playlist names by mood, genre and occasion, with emoji.Podcast Episode Title GeneratorEpisode title ideas from your topic and guest, using proven formulas and your numbering style.Podcast Interview Questions GeneratorBuild a podcast interview plan by guest type and topic, from icebreakers to deep-dive questions.Podcast Intro Script GeneratorWrite podcast intro and outro scripts in five tones, with sponsor, call to action and read time.Podcast Show Notes GeneratorFill in a form and get formatted podcast show notes in Markdown, HTML or plain text.Price Increase Letter GeneratorWrite a customer price increase notice with effective date, reason, new prices and tone.Protein Molecular Weight CalculatorProtein MW in Da/kDa from an amino acid sequence, plus pI, extinction coefficient and composition.Raise Request Letter GeneratorWrite a letter or email asking for a raise, built on your achievements, market data and target pay.Recipe FormatterPaste a messy recipe and get clean ingredients, numbered steps, scaling and a printable card.Remove Words from TextDelete a list of words or phrases from any text and see how many times each one was removed.Restriction Enzyme FinderFind cut sites for 180+ restriction enzymes in DNA, with fragment sizes, a site map and a virtual gel.Reverse Line OrderFlip the order of lines, list items or paragraphs so the last becomes first.Review Response GeneratorWrite replies to positive and negative customer reviews in your tone, with your business name.
See all 459 Text Tools →