Kharabeesh
On-device ع

IPv4 Subnet Calculator

Get the network, broadcast, first and last host, host count and mask for any IPv4, split networks by count, hosts or VLSM, turn an address range into CIDR blocks, and convert IP formats.

Free, no sign-up Your data stays on your device Works offline after first open

The tool

Loading the tool…

How to use

  1. Under “Calculator”, type an address with a prefix (192.168.1.10/24) or a mask (192.168.1.10 255.255.255.0), or pick the prefix from the list.
  2. Under “Split”, enter the parent network and choose equal subnets by count, hosts per subnet, or VLSM with different sizes (one line each).
  3. Under “Range → CIDR”, enter the first and last address to get the fewest blocks covering it exactly. The “Converter” reads an IP in any format.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: lightweight in-page code, no external libraries.
  • Works offline after you open it once.

Frequently asked questions

Why are there two fewer hosts than addresses?

The first address is the network address and the last is the broadcast; neither goes to a device. The exception is /31 (a point-to-point link per RFC 3021), where both are usable, and /32 is a single address.

What is a wildcard mask?

The inverse of the subnet mask: 0 for fixed bits, 1 for free bits. Cisco uses it in ACLs and OSPF. For 255.255.255.0 it is 0.0.0.255.

Are classes A, B and C still used?

Not for routing; the internet has used CIDR since 1993. The class is shown only because courses and exams still mention it.

How does VLSM work here?

Subnets are sorted largest first and each gets the smallest block that fits its hosts plus two addresses (network and broadcast), allocated in order from the start of the parent network. This is the method taught in Cisco courses.

Formulas & sources

Related tools