All tools Developer

Subnet Calculator

Calculate network, broadcast, host range and host count from an IPv4 address and CIDR prefix.

CIDR (192.168.1.10/24) or IP + netmask (10.0.0.5 255.255.0.0). Click any result to copy it.

Runs in your browser. Nothing you open or type here is uploaded.

How to use

  1. Enter an IPv4 address with a CIDR prefix, such as 192.168.1.10/24.
  2. Read the results: network, broadcast, netmask, wildcard, first and last usable addresses, totals and IP class.
  3. Click any result to copy it.
  4. Check the binary view to see the address and mask bit by bit.

Details

A CIDR prefix splits an IPv4 address into a network part and a host part. From one address and prefix, this calculator derives the rest of the subnet: the network and broadcast addresses, the dotted netmask and its wildcard inverse, the first and last usable host addresses, the total number of addresses and the count of usable hosts. It also accepts an address followed by a dotted netmask instead of a prefix. The binary view shows the address and netmask as bits.

  • Usable hosts are the total addresses minus the network and broadcast addresses — with two exceptions: a /31 has 2 usable addresses for point-to-point links, and a /32 is a single host route.
  • Every step up in prefix length halves the subnet: a /25 has half the addresses of a /24.

Common questions

What formats can I enter?

CIDR like 192.168.1.10/24, or an IP with a dotted netmask like 10.0.0.5 255.255.0.0.

How are usable hosts counted?

Total addresses minus network and broadcast — except /31 with 2 usable (point-to-point) and /32 with 1 (host route).

Is my input sent anywhere?

No. All calculation happens locally in your browser.