Live binary boundary
See exactly which of the 32 IPv4 bits belong to the network and which remain for hosts.
A free subnet calculator and CIDR visualizer that turns IPv4 ranges, masks, host counts and binary boundaries into something you can understand at a glance.
Most subnet calculators are technically correct but visually flat: enter an IP address, press a button, then decode a dense table. Clear Subnet Calculator is designed around the idea that subnetting is spatial. A CIDR prefix divides a 32-bit address into a network portion and a host portion, so the interface makes that boundary visible instead of hiding it behind notation.
Drag the prefix from /0 through /32 and the bit field changes with it. The address-space visual contracts as the subnet becomes more specific. Network address, broadcast address, usable range, subnet mask, wildcard mask and host counts update together. This makes the calculator useful both when you already understand subnetting and when you are learning it.
See exactly which of the 32 IPv4 bits belong to the network and which remain for hosts.
Watch the network tighten as the prefix length grows instead of reading CIDR as an abstract suffix.
No form submissions or server round trips. Every calculation happens immediately in your browser.
Calculate ranges, masks and host counts from CIDR notation.
CONVERTConvert /0 through /32 prefixes to dotted-decimal subnet masks.
CONVERTTranslate common IPv4 subnet masks into CIDR prefix notation.
MASKConvert prefix lengths and dotted-decimal subnet masks.
RANGEFind the first, last, network and broadcast addresses in a block.
RANGEFind the aligned IPv4 range containing any IP address and prefix.
NETWORKFind the canonical network address for any IPv4 address and prefix.
BROADCASTCalculate the broadcast address and usable host range.
WILDCARDConvert CIDR and subnet masks to inverse wildcard masks.
SPLITUnderstand how a parent CIDR block divides into smaller networks.
VLSMPlan variable-length subnet allocations from host requirements.
REFERENCEScan CIDR prefixes, masks, wildcard masks and address counts.
IPv6Calculate IPv6 network prefixes, host bits and address-space size from /0 to /128.
If you searched for a subnet calculator, IP subnet calculator, online subnet calculator, subnet calculator CIDR, visual subnet calculator, IPv4 subnet calculator, network subnet calculator or IP address subnet calculator, the core task is the same: turn an IP address and network prefix into an exact, verifiable address block. Clear Subnet Calculator combines that calculation with a live visual model so you can both get the answer and understand why it is correct. For IPv6, use the dedicated IPv6 subnet calculator.
An IPv4 address contains 32 binary bits. CIDR notation tells you how many of those bits identify the network. In 192.168.1.42/24, the “/24” means the first 24 bits describe the network and the remaining 8 bits describe addresses inside that network. Because 8 host bits can represent 2⁸ combinations, the subnet contains 256 total IPv4 addresses.
The network address is the first address in the subnet. For 192.168.1.42/24, that is 192.168.1.0. The broadcast address is traditionally the final address, 192.168.1.255. In a conventional /24 LAN, usable host addresses therefore run from 192.168.1.1 through 192.168.1.254, giving 254 usable hosts.
A subnet mask is another representation of the same prefix boundary. A /24 corresponds to 255.255.255.0, while /25 corresponds to 255.255.255.128 and /26 corresponds to 255.255.255.192. The wildcard mask is the bitwise inverse of the subnet mask, so a /24 has wildcard mask 0.0.0.255.
Smaller CIDR numbers describe larger address blocks. A /16 contains 65,536 addresses, whereas a /28 contains only 16. Increasing the prefix length by one divides an address block in half. Moving from /24 to /25 creates two blocks of 128 addresses; moving from /24 to /26 creates four blocks of 64 addresses.
This visual calculator is useful for network engineers checking address plans, developers configuring cloud networks, cybersecurity professionals reviewing ranges, students learning subnetting, and anyone who needs a quick answer without manually converting addresses to binary. Use the dedicated pages for CIDR conversion, subnet masks, IP ranges, network addresses, broadcast addresses and wildcard masks, or open the subnetting cheat sheet when you want a compact reference.
A subnet calculator takes an IPv4 address and CIDR prefix or subnet mask and calculates the network address, broadcast address, usable host range, subnet mask, wildcard mask, total addresses and usable hosts.
Enter the IPv4 address and prefix length, such as 192.168.1.42/24. A /24 means 24 bits identify the network and 8 bits remain for host addresses.
A traditional IPv4 /24 contains 256 total addresses and 254 usable host addresses because the network and broadcast addresses are normally reserved.
CIDR writes the network prefix as a number such as /24. A subnet mask expresses the same boundary in dotted decimal, such as 255.255.255.0.
The broadcast address is the highest address in a traditional IPv4 subnet. Traffic sent to it is intended for every host on that broadcast domain.
No. The calculations run locally in your browser. The IP address you type into the tool is not sent to a calculation server.
A /32 prefix contains exactly one IPv4 address because all 32 bits identify the address. It is commonly used for a single-host route, loopback address or an exact IP match rather than a multi-host LAN.
255.255.255.0 is the dotted-decimal subnet mask for /24. It means 24 bits identify the network and 8 bits remain for addresses inside that subnet, giving 256 total IPv4 addresses.
An IP subnet is a logical range of IP addresses that share the same network prefix. The prefix or subnet mask determines which bits identify the network and which bits identify addresses inside it.
Start with an IP address and CIDR prefix or subnet mask. Apply the mask to find the network address, set all host bits to one to find the broadcast address, and use the remaining host-bit count to calculate the address capacity.
An IP subnet calculator avoids manual binary arithmetic and quickly verifies network boundaries, masks, broadcast addresses, usable host ranges and address counts. It is useful when planning networks, firewall rules, cloud VPCs and routes.
Subnets divide a larger IP network into smaller address blocks. Increasing the CIDR prefix uses more bits for the network, creating smaller subnets with fewer host addresses.
Yes. The dedicated IPv6 subnet calculator supports IPv6 addresses and prefix lengths from /0 through /128, with canonical network-prefix and host-bit calculations.