Subnet Calculator

Derive network, broadcast, host range and masks from CIDR notation — IPv4 and IPv6, all in your browser.

IPv4 CIDR

Subnet details

Network address192.168.1.0
Broadcast address192.168.1.255
Usable host range192.168.1.1 – 192.168.1.254
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
Total addresses256
Usable hosts254
CIDR notation192.168.1.0/24
IP classC
Address typePrivate (RFC 1918)

Bit map

11000000101010000000000100000000
Network (24 bits) Host (8 bits)

About this tool

Subnetting turns a single IP block into the network address, broadcast address, usable host range and masks your routers, firewalls and DHCP scopes actually need. Getting a CIDR prefix wrong by one bit silently changes all of those values, so this calculator does the bit math for you: enter an address in CIDR notation and read every derived value at a glance.

It handles the tricky edge cases correctly — a /31 point-to-point link has two usable addresses per RFC 3021, and a /32 is a single host route — and shows a colour-coded 32-bit map so you can see exactly where the network portion ends and the host portion begins. An IPv6 mode summarizes a prefix's compressed and expanded forms and the total number of addresses in the block. Everything is computed locally; no address you enter is uploaded.

How to use

  1. Enter a CIDR block

    Type an IPv4 address with a prefix, e.g. 192.168.1.0/24, or switch to IPv6 mode for a prefix like 2001:db8::/32.

  2. Read the subnet details

    See the network and broadcast addresses, usable host range, subnet mask, wildcard mask and host counts instantly.

  3. Inspect the bit map

    Use the coloured 32-bit map to see how many bits belong to the network vs. the host portion.

  4. Copy any value

    Copy the network, mask or host range to paste into router configs, ACLs or documentation.

What it derives

ValueMeaning
Network addressThe first address of the block — identifies the subnet
Broadcast addressThe last address — reaches every host on the subnet (IPv4)
Usable host rangeFirst to last assignable host address
Subnet maskDotted-decimal mask for the prefix (e.g. 255.255.255.0)
Wildcard maskInverse mask used by ACLs and OSPF
Usable hostsHost count, with RFC 3021 (/31) and /32 handled correctly

IPv4 and IPv6 supported — all math runs in your browser.

Frequently asked questions