IP subnet calculator (CIDR)

Enter an IPv4 address with a prefix or mask (192.168.1.10/24) or an IPv6 address (2001:db8::1/64): see network, broadcast, hosts, mask, type and binary, split it into subnets with VLSM and check whether an address belongs to the network.

Your data stays on your computer. Files are processed in your browser and are never uploaded.

Accepted formats

Address/prefix (192.168.1.10/24), address and mask (192.168.1.10 255.255.255.0) or the address alone, treated as /32 or /128. IPv6 is assumed as soon as there is a colon.

/31 and /32

With /31 (RFC 3021) both addresses are usable on point-to-point links; with /32 the network is a single address. In VLSM splits the smallest block is /30, with 2 hosts.

Privacy

Everything is computed in your browser. No address is sent to a server: the tool does no lookups or checks on the network.

Keyboard shortcuts

In this tool

This tool has no keyboard actions.

Everywhere

Open this panel (outside text fields)
?
Closes panels and menus, never clears data
Esc
Search for a tool
/ or CtrlK

How to use it

  1. Enter an address with a prefix (192.168.1.10/24) or a mask (192.168.1.10 255.255.255.0); for IPv6 for example 2001:db8::1/64.
  2. Read network, broadcast, first and last host, host count, mask, wildcard, class, type and the binary form with the network boundary.
  3. To split the network, choose the number of subnets, the hosts needed in each, or a list of different needs (VLSM).
  4. To find out whether an address is in the network, type it in the check field.

Frequently asked questions

Why does a /24 have 254 usable hosts and not 256?

The first address identifies the network and the last one is the broadcast, so neither is assigned to hosts. The exceptions are /31 (RFC 3021, two hosts on a point-to-point link) and /32 (a single address).

What is the difference between mask and wildcard?

The wildcard is the mask with its bits inverted (0.0.0.255 for /24). It is used, for instance, in the ACLs of some routers, where 0 bits must match and 1 bits are ignored.

How does the VLSM split work?

Requests are sorted from the largest to the smallest and each gets the smallest block that holds the requested hosts, one after the other and aligned. This leaves no gaps and the subnets never overlap.

How is an IPv6 address abbreviated?

According to RFC 5952: lowercase letters, no leading zeros in groups and :: in place of the longest run of zero groups (at least two, the first one on a tie). The tool shows both the expanded and the compressed form.

Are the addresses sent to a server?

No: everything is computed in your browser.

Tool chains

Link several tools into a path: after using a tool, “Send to…” offers the next step first. Saved chains keep only a name and the tools, never your data.

Saved chains

No saved chains.

New chain