Subnet Calculator (IPv4 & IPv6 CIDR)

Inputs

Like 192.168.1.10/24, 10.0.0.1 255.255.255.0 or 2001:db8::1/64

Results

Network
—
Broadcast address
—
First host
—
Last host
—
Usable hosts
—
Subnet mask
—
Wildcard mask
—
Prefix
—
Address type
—
Full form
—
Binary (network | host)
—
Reverse DNS name
—

A CIDR block like 192.168.1.0/24 says which part of an address is the network and which part numbers the hosts. This calculator shows the whole block at a glance, so you can plan subnets, set up a router or firewall rule, or check whether two addresses share a network.

How to use it

  1. Type an address with a prefix (192.168.1.10/24) or with a dotted netmask (192.168.1.10 255.255.255.0). IPv6 works the same way.
  2. Tap a prefix length to try a different subnet size.
  3. Read the network, the broadcast address and the range of usable hosts. The binary line shows where the network part ends.

Examples: 192.168.1.10/24 is in network 192.168.1.0 with broadcast 192.168.1.255 and 254 usable hosts. 10.0.0.1 with mask 255.255.255.252 is a /30 with 2 hosts. 2001:db8:abcd:12::1/48 belongs to 2001:db8:abcd::/48.

Questions and answers

Why are there 2 fewer hosts than addresses?

In IPv4 the first address names the network and the last is the broadcast address, so neither can be given to a device. /31 (point-to-point links) and /32 (a single host) are the exceptions. IPv6 has no broadcast, so every address counts.

What is a wildcard mask?

The netmask with its bits flipped (0.0.0.255 for a /24). Cisco access lists and OSPF use it to say which bits of an address may vary.

Which addresses are private?

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 in IPv4 (RFC 1918), and fc00::/7 in IPv6. They work inside a network but aren’t routed on the internet.

Can it tell me my own IP address?

No. Your public address is only visible to a server, and this tool doesn’t contact one.

Link with pre-filled values

Add # and these parameters to the end of this page's address to open the tool with values already filled in.

ParameterWhat it sets
ipAn IPv4 or IPv6 address with a /prefix or a netmask.

Example: https://toolabelle.com/subnet-calculator/#ip=10.20.30.40%2F27

Related tools