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.

Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
IPv4 addressYou can also type 10.0.0.5/8 or 10.0.0.5 255.0.0.0
Prefix length / subnet mask
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 view
Binary (network bits highlighted)
Address11000000.10101000.00001010.00100101
Subnet mask11111111.11111111.11111111.00000000
Network11000000.10101000.00001010.00000000
Broadcast11000000.10101000.00001010.11111111

Split into subnets

Split by
Subnets needed

4 subnets of /26 (255.255.255.192), 62 usable hosts each.

Subnets
#NetworkUsable rangeBroadcastHosts
1192.168.10.0/26192.168.10.1 – 192.168.10.62192.168.10.6362
2192.168.10.64/26192.168.10.65 – 192.168.10.126192.168.10.12762
3192.168.10.128/26192.168.10.129 – 192.168.10.190192.168.10.19162
4192.168.10.192/26192.168.10.193 – 192.168.10.254192.168.10.25562

How to calculate a subnet

  1. Choose IPv4 or IPv6.
  2. Type an address with its prefix or subnet mask.
  3. 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 →