IP & Subnet Calculator
IP & Subnet Calculator shows the netmask, address range and host count for an IPv4 or IPv6 network such as 192.168.1.0/24. It can split a network into subnets, turn an address range into CIDR blocks, check whether an address belongs to a network and merge a list. It runs in your browser.
How to use IP & Subnet Calculator
- Pick what you want to do: look at a network, split it, convert a range, check an address, or merge a list.
- Type the network or addresses. A bare address means a single host.
- Read the result and copy any value with its Copy button.
Frequently asked questions
Is anything I type sent to a server?
No. All the arithmetic runs in your browser, and the addresses are kept out of the page address, so a network plan stays on your device.
Why does a /24 have 254 usable hosts and not 256?
The first address names the network and the last one is the broadcast address, so neither can be given to a host. A /31 is the exception: it has two addresses and both are usable on a point-to-point link (RFC 3021). A /32 is one address.
Does it work with IPv6?
Yes. IPv6 has no broadcast address or netmask, so those lines are left out. Addresses are shown in the short form from RFC 5952, and the full form and the reverse DNS name are given too.
Why is 010.0.0.1 refused?
A leading zero is read as octal by some systems and as decimal by others, so 010 can mean 8 or 10. Write the number without the zero.
How does the range converter pick blocks?
It uses the fewest CIDR blocks that cover exactly the addresses from the start to the end, never more. Merging a list does the same after joining blocks that overlap or touch.
Guides
Next step
Writing firewall rules? Look up common port numbers. Open Common Port Numbers.
Related tools
- 132