My Tools Garage

CIDR / Subnet Calculator

Work out network, broadcast and host range from a CIDR.

in-browser
Network address 192.168.1.0
Broadcast address 192.168.1.255
First host 192.168.1.1
Last host 192.168.1.254
Usable hosts 254
Subnet mask 255.255.255.0
Prefix /24

How to use

  1. 1 Enter an IPv4 block in CIDR notation, like 10.0.0.0/24.
  2. 2 Read off the network and broadcast addresses.
  3. 3 Check the first and last usable host and the host count.
  4. 4 Copy the subnet mask or any value you need.

About CIDR / Subnet Calculator

The CIDR / Subnet Calculator takes an IPv4 block in CIDR notation — for example 192.168.1.0/24 — and works out everything you need to plan or document a subnet: the network (base) address, the broadcast address, the first and last usable host addresses, the number of usable hosts, the dotted-decimal subnet mask, and the prefix length.

CIDR notation packs a network address and its mask into a compact form, but the arithmetic behind it is binary masking that is tedious and error-prone to do in your head.

Misjudging how many hosts a /26 holds, or where one subnet ends and the next begins, leads to overlapping ranges and addresses that cannot route.

This tool applies the mask precisely, so an address like 192.168.1.130/24 is snapped down to its true network base of 192.168.1.0 and the broadcast and host range follow correctly.

It also handles the special small blocks: a /31 point-to-point link treats both addresses as usable, and a /32 describes a single host.

Every value comes with a copy button for pasting into firewall rules, DHCP scopes or documentation.

Each octet is validated to 0–255 and the prefix to 0–32, and the whole calculation runs locally in your browser.

FAQ

Does it accept a host address, not just the network?

Yes. If you enter 192.168.1.130/24 it applies the mask and snaps the result down to the network base 192.168.1.0.

How are /31 and /32 handled?

A /31 treats both addresses as usable for point-to-point links, and a /32 describes a single host with one usable address.

Does it support IPv6?

Not yet — this calculator covers IPv4 blocks only.