IP Subnet Calculator
CIDR, netmask and host rangeRuns locally · nothing uploaded
- CIDR notation192.168.1.0/24
- Network address192.168.1.0
- Broadcast address192.168.1.255
- First usable host192.168.1.1
- Last usable host192.168.1.254
- Usable hosts254
- Total addresses256
- Subnet mask255.255.255.0
- Wildcard mask0.0.0.255
- Address typePrivate (RFC 1918)
- ClassC
- IP in binary11000000.10101000.00000001.00001010
- Mask in binary11111111.11111111.11111111.00000000
Prefix length reference
| Prefix | Subnet mask | Usable hosts |
|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 |
| /16 | 255.255.0.0 | 65,534 |
| /20 | 255.255.240.0 | 4,094 |
| /22 | 255.255.252.0 | 1,022 |
| /23 | 255.255.254.0 | 510 |
| /24 | 255.255.255.0 | 254 |
| /25 | 255.255.255.128 | 126 |
| /26 | 255.255.255.192 | 62 |
| /27 | 255.255.255.224 | 30 |
| /28 | 255.255.255.240 | 14 |
| /29 | 255.255.255.248 | 6 |
| /30 | 255.255.255.252 | 2 |
Also works as:subnet calculatorcidr calculatoripv4 subnet mask
How to use
- 1Enter an IP with prefix, e.g. 10.0.0.1/16, or choose a mask.
- 2Read the network, broadcast and host range.
- 3Copy what you need.
FAQ
How many usable IPs in a /24?
256 addresses, 254 usable after the network and broadcast addresses; mask 255.255.255.0.
Which ranges are private?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918).
Related tools
Number Base ConverterBinary, octal, decimal, hexURL Parser & BuilderSplit URLs, parse and build query stringsRandom IP & MAC GeneratorRandom IPv4, IPv6 and MAC addressesJSON FormatterValidate, beautify, minify JSONJSON to CSV ConverterConvert JSON and CSV both waysBase64 Encode / DecodeEncode and decode Base64