- CIDR
- Network address
- Broadcast
- First usable host
- Last usable host
- Total addresses
- Usable hosts
- Netmask
- Wildcard mask
- Prefix length
- Address type
- Expanded
- As integer
- Reverse DNS zone
| Subnet | First host | Last host | Broadcast | Hosts |
|---|---|---|---|---|
About the CIDR / Subnet Calculator
This calculator takes an IPv4 or IPv6 block and shows its network address, broadcast address, first and last usable host, host counts, netmask, wildcard mask and the bits in binary. It also says what kind of space the block is: private (RFC 1918), carrier-grade NAT (100.64.0.0/10), loopback, link-local, multicast, documentation ranges, unique local IPv6 (fc00::/7) or public.
You can type a block in CIDR notation (10.0.0.0/8), an address with a netmask (192.168.1.10 255.255.255.0, Cisco wildcard masks work too) or a range (10.0.0.1 - 10.0.0.50). A range is converted into the fewest CIDR blocks that cover it exactly.
How to use it
- Type or paste an address, block, netmask or range. Results update as you type.
- If the address has host bits set, the calculator shows the network it belongs to.
- Check whether an IP is inside the block, or split the block into smaller subnets (the table lists up to 256 and gives the total).
Examples
- 192.168.1.10/24: a home network, normalized to 192.168.1.0/24 with 254 usable hosts.
- 10.0.0.1 - 10.0.0.50: a range that needs eight CIDR blocks.
- 2001:db8::/48: an IPv6 documentation prefix, split into /64 subnets.
Common questions
Why does a /24 have 254 usable hosts, not 256?
In IPv4 the first address names the network and the last one is the broadcast address, so neither is given to a host. A /31 is the exception: on point-to-point links both addresses are usable (RFC 3021), and a /32 is a single host.
Does IPv6 have a broadcast address?
No. IPv6 uses multicast instead, so every address in a prefix can be assigned. The all-zero address is the Subnet-Router anycast address, which most networks leave to the router.
What is a wildcard mask?
The inverse of the netmask, used in Cisco ACLs and OSPF: 0.0.0.255 matches the same addresses as 255.255.255.0.
Related tools
- IP Lookup: owner, ASN and reverse DNS of an address.
- Binary, Hex & Decimal Converter: check the bits of an address by hand.
- DNS Lookup: look up the records that point at your addresses.