{"uid":"cap_aFIU5yEU-aJgNkjElEd0H","slug":"punycode-domain-converter-encode-decode-a39f256f","name":"Punycode Domain Converter (Encode/Decode)","description":"Convert an internationalized domain name to Punycode (ASCII-compatible encoding, RFC 3492) or decode Punycode back to Unicode. Uses Node.js built-in IDNA support. Deterministic, pure CPU.","url":"https://agent402.tools/api/punycode-convert","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"decode":{"type":"boolean","description":"If true, decode from Punycode to Unicode (default: false)"},"domain":{"type":"string","description":"Domain name to encode (Unicode) or decode (Punycode)"}}},"responseSchema":{"type":"json","example":{"mode":"encode","labels":["xn--mnchen-3ya","de"],"result":"xn--mnchen-3ya.de","original":"münchen.de"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5T8tq5rigjLl_Yyenh3mz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts internationalized domain names (IDN) to Punycode/ASCII-compatible encoding (RFC 3492) or decodes Punycode back to Unicode, using Node.js built-in IDNA support.","exampleAgentPrompt":"Convert the domain münchen.de to its Punycode ASCII-compatible encoding so I can use it in DNS records.","exampleUseCases":null,"resultDescription":"Returns the converted domain name — either the Punycode/ACE (xn--) encoded ASCII version of a Unicode domain, or the decoded Unicode version of a Punycode domain, depending on the decode flag.","failureModes":["Invalid domain name format returns an error","Passing an already-ASCII domain for encoding may return it unchanged or error","Passing a non-Punycode string for decoding may produce unexpected results","Empty or missing domain field returns a validation error","Payment failure (402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need a deterministic, RFC 3492-compliant conversion between internationalized Unicode domain names and their Punycode ASCII-compatible encoding — especially useful for DNS configuration, email routing, or validating IDN domains without setting up a local IDNA library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.982Z","isFirstParty":false}