IP Subnet Calculator

Enter an IPv4 address and a CIDR prefix to see the network, broadcast, mask, usable host range and host count.
Network
Subnet mask
Broadcast
Host range
Usable hosts
✉ Email me this result
</> Embed this calculator

Paste this into any website or blog post. It is free — the small "powered by" link must stay visible.

Frequently Asked Questions

What is CIDR?
CIDR is the /prefix notation, like /24. It says how many leading bits are the network, so /24 is a 255.255.255.0 mask.
Why are usable hosts two fewer?
The network address and the broadcast address cannot be assigned to devices, so usable hosts is the total minus two.