IPv4 Subnet Calculator

Network and broadcast address, usable host range, netmask and wildcard mask, host counts and the special-purpose classification for any address and prefix.

Input

Mode

Accepts 10.0.0.1/24, 10.0.0.1 255.255.255.0 or a bare address.

Summary

Network
192.168.1.0/26
Broadcast
192.168.1.63
Usable range
192.168.1.1 – 192.168.1.62
Total addresses
64

2^6

Usable hosts
62

Excluding network and broadcast

Prefix length
/26

Masks

Subnet mask
255.255.255.192
Wildcard mask
0.0.0.63

Bitwise inverse — use this in Cisco ACLs and OSPF network statements.

Classification

Scope
Private (RFC 1918)
Address class
Class C
Reverse DNS zone
0.1.168.192.in-addr.arpa
RFC 1918 private

Representations

The same address in every notation

Dotted decimal
192.168.1.10
Network address
192.168.1.0
Hexadecimal
c0a8010a
Decimal (32-bit)
3232235786
Binary
11000000.10101000.00000001.00001010
Pointer record
10.1.168.192.in-addr.arpa

Frequently asked

How many usable hosts does a /26 have?
A /26 contains 64 addresses. The network and broadcast addresses are reserved, so 62 are assignable to hosts.
Why does a /31 show two usable addresses?
RFC 3021 allows both addresses of a /31 to be used on point-to-point links, which removes the need for a /30 and saves address space. The calculator applies this by default.
What is a wildcard mask?
It is the bitwise inverse of the subnet mask. Cisco ACLs and OSPF statements use wildcard masks, so a /24 becomes 0.0.0.255.
Is my input sent anywhere?
No. The calculation runs in your browser and the page makes no network requests at all.

Next