IPv4 CIDR Calculator (subnet, network and broadcast)

Calculate the network address, broadcast address, usable host range, subnet mask, wildcard mask and address count from an IPv4 address and prefix length, including /31 and /32.

  • Runs in your browser (no upload)

Example: 192.168.10.37/26. You can also enter a subnet mask after "/" (such as 255.255.255.0).

Result

Network 192.168.10.0/26, 62 usable hosts

Network address
192.168.10.0
Network (CIDR)
192.168.10.0/26
Broadcast address
192.168.10.63
Usable address range
192.168.10.1 – 192.168.10.62
Subnet mask
255.255.255.192
Wildcard mask
0.0.0.63
Prefix length
/26
Total addresses
64
Usable hosts
62

The address 192.168.10.37 belongs to the network 192.168.10.0/26.

Binary

Address
11000000.10101000.00001010.00100101
Mask
11111111.11111111.11111111.11000000

Bold digits are the network part (26 bits); the rest is the host part (6 bits).

How to use

  1. Enter an IPv4 address with its prefix length, such as 192.168.10.37/26 (a subnet mask after "/" also works).
  2. The network address, broadcast address, usable range, masks and address counts appear instantly.
  3. Press "Copy" to copy all results at once.

FAQ

Why does a /31 have 2 usable addresses?

RFC 3021 allows a /31 on point-to-point links: both addresses are host addresses and there is no broadcast address. So instead of the usual "total minus 2", a /31 has 2 usable hosts.

What does /32 mean?

It is a prefix covering exactly one address (a host route). It has 1 address and no separate network or broadcast address.

Why is "192.168.001.010" rejected?

Some implementations such as inet_addr() read a number with a leading zero as octal (010 becomes 8), which silently gives a different address. To avoid that ambiguity, enter the numbers without leading zeros.

What is a wildcard mask?

It is the subnet mask with every bit inverted (255.255.255.192 becomes 0.0.0.63). Router access lists often use it.

Notes & limitations

  • What you enter is processed only on this page and is not sent to YUCTS servers.
  • IPv4 only; IPv6 is not supported.
  • Only dotted-decimal input such as 192.168.1.10/24 is accepted. Shorthand (127.1), hexadecimal, octal and plain integer forms are not supported.
  • A /31 is calculated as defined in RFC 3021. Whether it works in practice depends on your devices and operating systems.
  • The tool does not tell whether an address is private, reserved or public.

Data sources