Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Free tools / CIDR calculator
Free tool · runs in your browser

CIDR calculator range ⇄ CIDR

Turn an IP range into CIDR blocks for firewall rules and allow-lists, or a CIDR block into its address range.

Why a range becomes several blocks

A CIDR block (RFC 4632) always holds a power of two of addresses and must start on a multiple of its size. A range that doesn't line up, like 10.0.0.5 to 10.0.0.100, has to be split: here into 10.0.0.5/32, 10.0.0.6/31, 10.0.0.8/29, 10.0.0.16/28, 10.0.0.32/27, 10.0.0.64/27, 10.0.0.96/30 and 10.0.0.100/32, together exactly the 96 addresses of the range and nothing else.

Where you need this

  • Cloud firewall and security-group rules, which only accept CIDR blocks.
  • Allow-lists for APIs, databases and admin panels.
  • Turning a provider's published address range into rules.

Need the mask, broadcast address and host count of one block? Use the subnet calculator.

Sources