Browser-local developer utility

Subnet Calculator

Enter an IPv4 address and CIDR prefix to calculate its network, broadcast address, host range, mask, wildcard, and exact address counts locally.

Enter an IPv4 address and prefix to begin.

How it works

The calculator converts the four IPv4 octets to one unsigned 32-bit value, applies the CIDR mask with exact bitwise BigInt operations, and converts the resulting network and host boundaries back to dotted decimal.

Limits and assumptions

This tool calculates IPv4 CIDR networks only. A /31 follows RFC 3021 point-to-point semantics and treats both addresses as usable; a /32 identifies one address. It does not query a network, identify an ISP, scan hosts, or configure equipment.

Related tools