HTML to Markdown
Convert HTML back into clean Markdown, keeping lists, tables and code.
Network, broadcast and host range from any CIDR block.
| Property | Value |
|---|
The prefix boundary is where the mask changes from ones to zeros.
| CIDR | Subnet mask | Addresses | Usable hosts |
|---|
Network address
—
—
Address class and scope
A /24 holds 256 addresses but only 254 usable ones, because the first identifies the network and the last is the broadcast address. A /31 is the RFC 3021 point-to-point case where both are usable, and a /32 is a single host route.
The IP Subnet Calculator takes an IPv4 address and prefix length and returns the whole block: network and broadcast addresses, the usable host range, subnet mask, wildcard mask and host counts, with binary shown so the mask boundary is visible.
Enter an IPv4 address and a prefix length and get the whole picture: network address, broadcast address, first and last usable host, subnet mask, wildcard mask and how many hosts the block actually holds.
The usable host count is where the arithmetic surprises people. A /24 holds 256 addresses but only 254 usable ones, because the first is the network address and the last is the broadcast address. A /31 is a special case defined for point-to-point links where both addresses are usable, and a /32 is a single host. Binary representations are shown alongside, since seeing where the mask cuts the address is what makes CIDR click.
Network, broadcast, first and last usable host, subnet mask, wildcard mask and host counts.
The address and mask in binary, so you can see exactly where the prefix cuts — which is what makes CIDR click.
The RFC 3021 point-to-point case and single host routes are treated correctly rather than reported as zero usable hosts.
Enter either a CIDR prefix or a dotted subnet mask, and the other follows.
Whether the block is private, loopback, link-local or public, which is the first thing you check.
Any IPv4 address in dotted decimal form.
From /0 to /32, or pick a subnet mask and the prefix follows.
Network, broadcast, usable range, mask and wildcard.
The address and mask in binary, so you can see exactly where the boundary falls.
The first 24 bits are the network portion, leaving 8 bits for hosts. That is a mask of 255.255.255.0, 256 total addresses and 254 usable ones.
The first address in a block identifies the network itself and the last is the broadcast address. Neither can be assigned to a host, so a /24 gives 254 usable addresses rather than 256.
The bitwise inverse of the subnet mask, used in Cisco access control lists and OSPF. For a /24 the mask is 255.255.255.0 and the wildcard is 0.0.0.255.
RFC 3021 allows both addresses in a /31 to be used on point-to-point links, since a broadcast address serves no purpose there. A /32 is a single host route.
What people who use the IP Subnet Calculator think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the IP Subnet Calculator. It takes half a minute and no account.
Write the first reviewConvert HTML back into clean Markdown, keeping lists, tables and code.
Generate Java POJOs or records with Jackson annotations from JSON.
Convert JSON into a PHP array literal or a typed class you can paste into a project.
Convert a name between camelCase, snake_case, kebab-case and the rest.
Compute a CRC-32 checksum in hex, decimal and signed form.
Validate a JSON document against a draft-07 schema and see every failure by path.
Re-indent HTML without breaking whitespace-sensitive elements.
Encode and decode Base32, including the Crockford and hex variants.