{"uid":"cap_FthBE8Ynq-SRTZNYwwyEq","slug":"a1z26-and-polybius-square-number-ciphers-e4b0d459","name":"A1Z26 and Polybius Square Number Ciphers","description":"A1Z26 (A=1) and Polybius square number ciphers, both ways, with optional keyword square and ADFGX labels.","url":"https://text-ciphers.x402tookit.com/number-ciphers?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"key":{"type":"string","description":"Polybius keyword for the square (default none: A-Z with I=J)"},"mode":{"type":"string","description":"encode (default) or decode"},"text":{"type":"string","description":"Text to encode, or numbers to decode (up to 1000 characters)"},"cipher":{"type":"string","description":"a1z26 (default) or polybius"},"labels":{"type":"string","description":"Polybius row/column labels: 12345 (default) or ADFGX"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"mode":{"type":["null","string"]},"input":{"type":["null","string"]},"cipher":{"type":["null","string"]},"labels":{"type":["null","string"]},"output":{"type":["null","string"]},"secure":{"type":["boolean","null"]},"source":{"type":["null","string"]},"square":{"type":["array","null"],"items":{"type":"string"}},"keyword":{},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"unreadable":{"type":["array","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6mEa3nYRSw7MHJdkCN4zM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes text to numbers or decodes numbers to text using A1Z26 (A=1, B=2…) or Polybius square cipher, with optional keyword square and ADFGX label support.","exampleAgentPrompt":"Encode the message 'HELLO WORLD' using the A1Z26 cipher so each letter becomes its number position, and show me the result.","exampleUseCases":[{"title":"Solve a number cipher puzzle","prompt":"I found this sequence of numbers in a puzzle — 8 5 12 12 15 — can you decode it using the A1Z26 cipher to find the hidden word?"},{"title":"Encode message with Polybius square","prompt":"Encode 'MEET AT DAWN' using the Polybius square cipher with the keyword 'SECRET' and standard 12345 row/column labels."},{"title":"Decode ADFGX Polybius ciphertext","prompt":"I have a Polybius-encoded message that uses ADFGX labels instead of numbers — can you decode 'AF AD GF GF DX' back to plain text?"}],"resultDescription":"Returns the encoded number string or decoded plaintext, the cipher mode and type used, the Polybius square grid (when applicable), the keyword used, a summary of the operation, and metadata fields like source and asOf timestamp.","failureModes":["Text exceeds 1000 character limit — request will fail or be truncated","Invalid cipher parameter value (not 'a1z26' or 'polybius') — returns error","Decode mode given non-numeric or malformed input for A1Z26","Polybius keyword contains non-alphabetic characters — may cause unexpected square layout","Missing required 'text' query parameter — returns validation error","Numbers out of range for A1Z26 (e.g. 0 or 27+) during decode — may produce empty or error output"],"whenToPreferThis":"Choose this endpoint when you need to encode or decode text using classical number-substitution ciphers specifically — A1Z26 (letter-to-number mapping) or Polybius square (coordinate-based substitution). Ideal for puzzle solving, educational demonstrations, escape room design, or historical cryptography exploration. Prefer this over Caesar/ROT endpoints when the cipher output is numbers rather than shifted letters, and over Playfair when you need a simpler number-based scheme.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:19:29.890Z","isFirstParty":false,"canonicalSlug":"a1z26-and-polybius-square-number-ciphers-e4b0d459"}