New: draw a network as text and trace a packet through it hop by hop.Open the routing simulator

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

What does this tool run, and where?

The short answer before the FAQ: what the calculation needs, what leaves this page (nothing), and what you can take away from it.

What this tool runs, whether it uses the network, and what it produces
PropertyValue
Where it runsIn this browser tab — there is no NetKit server.
Network requestNo — and the build fails if this tool’s code and that declaration disagree.
Your inputNever uploaded. The calculation happens in the tab.
Bulk inputYes — one item per line.
ExportsCSV, JSON, Markdown, Plain text
Vendor detailNo vendor-specific detail to verify.

What do people ask about this calculator?

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 tool itself makes no network request.