IP Subnet Calculator
Type an IP address with a prefix such as 192.168.10.37/24 to see its network details, a binary view and how to split it into smaller subnets.
- CIDR notation
- 192.168.10.0/24
- Network address
- 192.168.10.0
- Broadcast address
- 192.168.10.255
- Subnet mask
- 255.255.255.0
- Wildcard mask
- 0.0.0.255
- First usable host
- 192.168.10.1
- Last usable host
- 192.168.10.254
- Total addresses
- 256
- Usable hosts
- 254
- IP class
- C
- Address type
- Private (RFC 1918)
- Reverse DNS
- 37.10.168.192.in-addr.arpa
- Decimal / hex
- 3232238117 · 0xC0A80A25
| Binary (network bits highlighted) | |
|---|---|
| Address | 11000000.10101000.00001010.00100101 |
| Subnet mask | 11111111.11111111.11111111.00000000 |
| Network | 11000000.10101000.00001010.00000000 |
| Broadcast | 11000000.10101000.00001010.11111111 |
Split into subnets
4 subnets of /26 (255.255.255.192), 62 usable hosts each.
| # | Network | Usable range | Broadcast | Hosts |
|---|---|---|---|---|
| 1 | 192.168.10.0/26 | 192.168.10.1 – 192.168.10.62 | 192.168.10.63 | 62 |
| 2 | 192.168.10.64/26 | 192.168.10.65 – 192.168.10.126 | 192.168.10.127 | 62 |
| 3 | 192.168.10.128/26 | 192.168.10.129 – 192.168.10.190 | 192.168.10.191 | 62 |
| 4 | 192.168.10.192/26 | 192.168.10.193 – 192.168.10.254 | 192.168.10.255 | 62 |
How to calculate a subnet
- Choose IPv4 or IPv6.
- Type an address with its prefix or subnet mask.
- Read the results, or split the network by subnet count or hosts per subnet.
Features
- Network, broadcast, netmask and wildcard
- First and last host, host counts
- Private, public and special ranges
- Binary view with network bits marked
- Split by subnet count or hosts
- IPv6 expand, compress and prefix size
Frequently asked questions
How many usable hosts does a subnet have?
A block with n host bits has 2ⁿ addresses. Two are reserved for the network and broadcast addresses, so a /24 has 254 usable hosts. A /31 has 2 (used for point-to-point links, RFC 3021) and a /32 is a single host.
What is a wildcard mask?
It is the subnet mask with every bit flipped, for example 0.0.0.255 for a /24. Cisco access lists and OSPF use wildcard masks.
Which addresses are private?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are private (RFC 1918). The calculator also flags carrier-grade NAT (100.64.0.0/10), loopback, link-local and documentation ranges.
How do I shorten an IPv6 address?
Drop leading zeros in each group and replace the longest run of all-zero groups with ::, once. The IPv6 tab does this for you following RFC 5952 and also shows the full expanded form.
Does it look up my IP address?
No. It only does the arithmetic on the address you type, in your browser.
Related tools
All Developer Tools →- Chmod Calculator Work out the right chmod value for files and folders on Linux servers.
- URL Encode / Decode Make text safe for URLs and query strings, or read encoded URLs from logs and analytics.
- HTTP Status Codes Look up what an HTTP status code means and what usually causes it.
- HTML, CSS & JS Playground Try out an idea, teach a concept or debug a snippet without setting up a project.
- String Escape / Unescape Make text safe to paste inside a string literal, query or file format, or turn escaped text from a log back into something readable.
- JSON Formatter Pretty-print messy JSON, find syntax errors fast, or minify it for production.