ITEngineeringTools

CIDR Calculator

Expand IPv4 CIDR notation into its normalized block, address range and host capacity.

Input

Result

How it works

Classless Inter-Domain Routing (CIDR) expresses an address and prefix as address/length. Host bits in the input are cleared to find the start of the block. The calculator uses point-to-point semantics for /31 and single-host semantics for /32.

Formula

Block size = 2^(32 − prefix). First address = floor(IP integer / block size) × block size.

Example

10.10.15.4/20

10.10.0.0/20 through 10.10.15.255