Subnet Calculator
Work out the network, mask, broadcast, host range, and host count for an IPv4 or IPv6 address and prefix, and split a network into subnets.
IPv4 with a /prefix or a dotted mask, and IPv6 with a /prefix. Splitting lists up to the first 256 subnets.
- 1Type an address with a prefix or mask, such as 192.168.1.10/24.
- 2Read the network, mask, broadcast, and usable host range.
- 3Pick a longer prefix to split the network into equal subnets.
Network
192.168.1.0/24
Subnet mask
255.255.255.0
Wildcard
0.0.0.255
Broadcast
192.168.1.255
Usable hosts
192.168.1.1 – 192.168.1.254
Host count
254 usable of 256
Address type
Private (RFC 1918)
| Network | Usable hosts | Broadcast |
|---|---|---|
| 192.168.1.0/26 | 192.168.1.1 – 192.168.1.62 | 192.168.1.63 |
| 192.168.1.64/26 | 192.168.1.65 – 192.168.1.126 | 192.168.1.127 |
| 192.168.1.128/26 | 192.168.1.129 – 192.168.1.190 | 192.168.1.191 |
| 192.168.1.192/26 | 192.168.1.193 – 192.168.1.254 | 192.168.1.255 |
About this tool
Plan a network or check a firewall rule without doing binary maths by hand.
- Network, mask, wildcard, broadcast, and usable host range
- Accepts 10.0.0.0/8 or a dotted mask such as 255.255.255.0
- Splits a network into equal subnets
- IPv6 prefixes with the address count and /64s inside
- Labels private, carrier-grade NAT, link-local, and public ranges
Questions
- How many hosts are in a /24?
- 256 addresses, of which 254 are usable: the first is the network address and the last is the broadcast. A /31 has 2 usable addresses for point-to-point links, and a /32 is a single host.
- What is a wildcard mask?
- The inverse of the subnet mask, used in Cisco access lists and OSPF. For 255.255.255.0 it is 0.0.0.255.
- Does it handle IPv6?
- Yes: it shows the network, the last address, the address count, and how many /64 networks fit inside.
Ratings
No ratings yet. The average shows after 3 ratings.
Ratings come from people using this tool. Nobody is paid or rewarded for them, and written reviews are checked for spam before they appear, not for whether they are positive.
Related tools
What's My IP Address?See your public IP address, internet provider, and approximate location. Tools On Tab does not save the result.- DNS propagation checkerSee whether a DNS change has spread: ask Cloudflare, Google, Quad9, OpenDNS, and AdGuard for the same record at once and compare the answers.
- WebRTC leak testCheck whether your browser's WebRTC reveals your real IP address around a VPN, and whether your local network address is visible.
- Download speed and transfer timeConvert a transfer speed and calculate how long a file of a given size takes at that speed.
JSON formatterPretty-print JSON with a two-space indent, and show the parse error when the text is invalid.
CSV and JSONConvert a CSV table to JSON, or a JSON table to CSV, keeping commas that sit inside quotes.
Base64Encode text or a file up to 8 MB into Base64, or decode Base64 text back into text.
URL encode and decodeEncode text as a URL query value, or decode percent-escapes back into text.