IP Subnet Calculator
CIDR subnet calculation and division tool, supporting network address, broadcast address, subnet mask, IP range queries and visualization.
Input Configuration
Usage Guide
Features
A CIDR (Classless Inter-Domain Routing) based IP subnet calculation tool. Enter an IP address and mask prefix to obtain the network address, broadcast address, subnet mask, usable host count, and IP range, with 32-bit binary visualization and equal-length subnet division. All calculations use bignumber.js to avoid large integer precision loss.
Steps
Enter an address like 192.168.1.0/24 in the "IP Address / CIDR" field (a sample is pre-filled); results update in real-time. To divide into subnets, enter a power of 2 (2/4/8/16...) in the "Subnet Division Count" field; each subnet's network address, broadcast address, and usable IP range will be listed below. Click the copy button on the right side of any info row to copy that value.
Notes
Supports IPv4 addresses with prefix range 0-32. /31 networks are handled as point-to-point links per RFC 3021, with 2 usable hosts. /32 is a single-host address with 1 usable host. For other networks, usable hosts = total addresses - 2 (excluding network and broadcast addresses). Subnet division count must be a power of 2, and the new prefix after division cannot exceed 32.