{"uid":"cap_CyCPBgOWWnNIGyiTqStJV","slug":"ip-range-to-cidr-converter-1684b94d","name":"IP Range to CIDR Converter","description":"IP range to CIDR converter: turns any IPv4 start-end range into the minimal list of CIDR blocks that cover it exactly, with the address count. Firewall and allowlist preparation. $0.01 per range.","url":"https://intel.rallylive.ca/ip/range-to-cidr","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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yfR_A6YP7aSKE4ZhzCuT0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an IPv4 start-end address range into the minimal list of CIDR blocks that exactly cover it, along with the total address count.","exampleAgentPrompt":"Convert the IP range 10.0.0.0 to 10.0.3.255 into the minimal set of CIDR blocks that cover it exactly, and tell me how many addresses that is.","exampleUseCases":[{"title":"Firewall allowlist from IP range","prompt":"I need to add an IP range from 203.0.113.0 to 203.0.113.63 to our firewall allowlist — can you give me the minimal CIDR blocks that cover exactly that range?"},{"title":"Cloud security group rule prep","prompt":"Our vendor gave us an IP range of 198.51.100.16 to 198.51.100.47 and I need to put it into AWS security group rules as CIDR notation. What's the minimal CIDR breakdown?"},{"title":"Network audit CIDR decomposition","prompt":"I'm auditing our network and I have a block from 172.16.5.0 to 172.16.6.255 that I need expressed as CIDR prefixes. What are the exact CIDR blocks and how many addresses does that cover?"}],"resultDescription":"Returns a minimal list of CIDR block strings (e.g. ['10.0.0.0/22']) that together exactly cover the requested IPv4 start-to-end range, along with the total count of IP addresses in that range. No gaps or overlaps are introduced.","failureModes":["Invalid IPv4 address format returns an error","Start address greater than end address returns an error","Non-IPv4 addresses (e.g. IPv6) are not supported","Missing required start or end parameters returns a validation error","Payment failure (x402) prevents the query from being processed"],"whenToPreferThis":"Use this endpoint when you need to programmatically convert arbitrary IPv4 start-end ranges into properly minimized CIDR notation for use in firewall rules, security groups, or access control lists. It guarantees exact coverage with no overlaps and returns the fewest possible CIDR blocks. Prefer it over manual subnet calculators when working in automated workflows or agentic pipelines that require structured output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:13:37.088Z","isFirstParty":false}