Web & Network

IP Subnet Calculator

Calculate IPv4 subnet details from CIDR notation. Network address, broadcast, host range, and more.

How to use this tool

  1. Type an IPv4 address in CIDR notation into the IP Address with CIDR field — for example 192.168.1.0/24.
  2. The results appear instantly below the input as you type; there is no button or submit step.
  3. Read Subnet Details for the network address, broadcast address, subnet mask, wildcard mask, usable host range, total hosts, and IP class.
  4. Use Usable IP Range to see the first and last 10 assignable addresses in the subnet.
  5. Check Binary Representations to view the address, mask, network, and broadcast as 32-bit binary.

Why this tool is helpful

Design & split networks

Plan subnets before allocating ranges. See exactly how many hosts a prefix supports and where each network begins and ends.

Verify routing & firewall rules

Confirm that a route, ACL, or firewall entry covers the right range by checking the network address, mask, and broadcast it actually describes.

Size networks correctly

Match a prefix to your device count. A /24 fits 254 hosts, a /28 fits 14 — avoid over- or under-sizing a subnet.

Understand IP classes

The tool reports the address class (AE) so you can see how legacy classful ranges relate to modern CIDR.

Learn subnetting & binary

Compare the dotted-decimal and 32-bit binary forms side by side to build an intuition for how masks separate network from host bits.

Stay private

Every calculation runs in your browser. Nothing is uploaded, logged, or sent to a server — safe for internal IPs and real network data.

FAQ

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) combines an IP address with a prefix length, written as 192.168.1.0/24. The /24 means the first 24 bits are the network portion, leaving 8 bits for hosts.

What details does this calculator show?

It shows the network address, broadcast address, usable host range, total hosts, subnet mask, wildcard mask, CIDR prefix, and IP class — plus the first and last 10 usable IPs and the 32-bit binary form of each key value.

What is the difference between the network, broadcast, and usable host range?

The network address is the first address in the subnet and identifies it. The broadcast address is the last address and reaches every host at once. The usable range is everything in between, which devices can actually be assigned.

Why is the usable host count two less than the subnet size?

The first address is reserved as the network address and the last as the broadcast address, so neither can be assigned to a device. A /24 has 256 addresses but only 254 usable hosts. /31 and /32 are special: this tool reports a single usable address for /32 and none for /31.

What are /31 and /32 prefixes used for?

A /31 is used for point-to-point links (per RFC 3021), where only two devices talk to each other. A /32 identifies a single host, commonly used for a specific route or a loopback-style address.

Does it support IPv6?

No. This calculator is IPv4-only. IPv6 uses 128-bit addresses with a different notation and subnetting model, so it is not handled here.

Does any of my data leave my browser?

Never. All calculations happen locally in JavaScript. Your input is not sent to, stored on, or logged by any server.