Skip to content
TabKiwiTabKiwi

Subnet / CIDR Calculator

Enter an IPv4 address with a prefix or mask to get its network, broadcast, host range and wildcard.

DeveloperRuns in your browser. Your files never leave this device.
Loading tool…

About this tool

Type something like 192.168.1.130/26 or an address followed by a dotted mask, and the calculator works out the network address, broadcast address, first and last usable hosts, host count, subnet mask and wildcard mask. It also tells you whether the address is private, carrier-grade NAT, loopback, documentation or public space, and shows the binary and reverse-DNS forms. Point-to-point /31 and single-host /32 networks are handled the way RFC 3021 describes. Everything is calculated in your browser.

How to use Subnet / CIDR Calculator

  1. Type an IPv4 address with a /prefix or a subnet mask.
  2. Or pick a prefix length from the list to resize the subnet.
  3. Read the network, broadcast and usable host range.
  4. Copy any value with the button next to it.

Frequently asked questions

Why are there two fewer usable hosts than addresses?

In a normal subnet the first address identifies the network and the last one is the broadcast address, so neither can be given to a host. The exceptions are /31 point-to-point links and /32 single hosts.

What is a wildcard mask?

It is the subnet mask with every bit flipped. Cisco ACLs and OSPF statements use it to say which bits of an address may vary.

Can I enter a mask instead of a prefix?

Yes. 10.0.0.1 255.255.255.0 and 10.0.0.1/255.255.255.0 both work, as long as the mask's 1-bits are contiguous.

More Developer tools

View all 91 →