{"uid":"cap_TKhOIfL00iuG7nM8os3Eg","slug":"network-calc-ip-format-converter-2408a7a6","name":"Network Calc IP Format Converter","description":"Convert an IPv4 or IPv6 address between notations: RFC 5952 compressed, expanded, integer, hex, binary, reverse DNS, NAT64.","url":"https://network-calc.x402tookit.com/ip-format?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":["ip"],"properties":{"ip":{"type":"string","description":"IPv4 (192.0.2.1) or IPv6 address, any valid form, for example 2001:0db8:0:0:0:ff00:42:8329"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"hex":{"type":["null","string"]},"asOf":{"type":["null","string"]},"nat64":{},"valid":{"type":["boolean","null"]},"binary":{"type":["null","string"]},"source":{"type":["null","string"]},"integer":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"version":{"type":["null","number"]},"degraded":{"type":["boolean","null"]},"expanded":{"type":["null","string"]},"canonical":{"type":["null","string"]},"compressed":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"ipv4Mapped":{},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"reverseDns":{"type":["null","string"]},"addressType":{"type":["null","string"]},"embeddedIpv4":{},"ipv4MappedHex":{},"sixToFourPrefix":{}}}}}}},"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_H_6OOj1UmAbujLSGMEGC7","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":"Converts an IPv4 or IPv6 address between multiple notations: RFC 5952 compressed, expanded, integer, hex, binary, reverse DNS, and NAT64.","exampleAgentPrompt":"Can you convert 2001:0db8:0000:0000:0000:ff00:0042:8329 into all its different notations — compressed, expanded, hex, binary, integer, and reverse DNS?","exampleUseCases":[{"title":"Normalize IPv6 for config file","prompt":"I need to normalize 2001:0db8:0:0:0:ff00:42:8329 into RFC 5952 compressed form so I can put it in a config file — can you convert it?"},{"title":"Reverse DNS lookup string for an IP","prompt":"What's the reverse DNS notation for the IPv4 address 192.0.2.1? I need it to set up a PTR record."},{"title":"Get integer and hex form of IP","prompt":"Give me the integer and hexadecimal representations of the IPv6 address ::ffff:192.0.2.1 — I need them for a low-level packet parser."}],"resultDescription":"Returns a structured object containing: compressed, expanded, canonical, integer, hex, binary, reverseDns, and NAT64 representations of the input IP address, along with metadata like IP version, address type, validity flag, embedded IPv4, IPv4-mapped forms, and any error reasons or warnings.","failureModes":["Invalid or malformed IP address input returns valid=false with reasons listing parsing errors","Empty or missing 'ip' query parameter causes a 400-level error","Ambiguous or non-standard address strings may return degraded=true with partial results","NAT64 and IPv4-mapped fields may be null for pure IPv4 inputs where not applicable"],"whenToPreferThis":"Use this endpoint when you need to convert or normalize a single IPv4 or IPv6 address across multiple notations in one call. It is especially useful when you need reverse DNS strings for PTR records, NAT64 compatibility checks, or canonical RFC 5952 forms for configuration files and logging. Prefer it over manual calculation or general-purpose networking libraries when operating in an agent pipeline that needs a reliable, paid API with structured JSON output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:11:19.471Z","isFirstParty":false,"canonicalSlug":"network-calc-ip-format-converter-2408a7a6"}