IPv4 subnet calculator

Parse your IPv4 CIDR blocks and get all the info you need about your subnet.

About IPv4 subnet calculator

Enter an IPv4 address with a mask (CIDR such as 192.168.0.1/24, or a netmask) and get the network address, mask, wildcard, first and last usable address, broadcast address and number of addresses. It also shows the address class.

When you would use it

How to use it

  1. Type an address with a mask, for example 10.0.0.0/22.
  2. Read the table: network address, netmask in dotted and binary form, wildcard mask, network size, first and last address, broadcast address and IP class.
  3. Use the previous and next buttons to move to the neighbouring block of the same size.

Things worth knowing

Frequently asked questions

How many hosts fit in a /24?
A /24 holds 256 addresses, of which 254 are usable by hosts. Each step shorter in the prefix doubles the size, so a /23 has 512 addresses.
Does this support IPv6?
No. This calculator is for IPv4 only.

All the tools