adiew / tools / ip calc

ip calc

ipv4 & ipv6 subnet calculator


cidr (/24), netmask (255.255.255.0) or wildcard (0.0.0.255). ipv6 works too. no mask means a single host.



how it works

an address and a netmask are just numbers. the network address is the address with all host bits set to zero (address and netmask). the last address is the address with all host bits set to one. in the binary rows, bright bits belong to the network, dim bits to the host, and highlighted bits are the ones a split borrows.

classful networks (class a, b, c) were retired by cidr in 1993, so there is no default mask here. no mask simply means a single host. a /31 is a valid two-host link (RFC 3021) and a /32 is one host. in ipv6 there is no broadcast, every address in the block is usable, and a /64 is the normal size for a lan.

cloud providers hold back addresses in every subnet: aws and azure reserve 5, google cloud reserves 4. the smallest subnet is /28 on aws and /29 on azure and google cloud. the vlsm planner and the calc tab use these numbers.

everything runs in your browser. nothing you type is sent anywhere. your inputs live in the page link, so you can copy the link to share a result.

inspired by the classic ipcalc by krischan jodies (jodies.de/ipcalc), rebuilt from the public rfcs with ipv6, vlsm and cloud rules added. results are for planning, double check before you change a production network. see also: dca calc, break even calc.