Zero Signup ToolsFree browser tools

Developer Tools

Subnet Calculator

Calculate IPv4 subnets in your browser. Network and broadcast address, host range, mask, wildcard, and binary breakdown from CIDR or IP and mask.

Input

IPv4 subnet from CIDR or IP and mask

Format: address/prefix. The prefix is a number from 0 to 32.

Quick samples

Address details

  • Network address

    192.168.1.0

    First address in the block

  • Broadcast address

    192.168.1.255

    Last address in the block

  • Subnet mask

    255.255.255.0

    /24

  • Wildcard mask

    0.0.0.255

    Inverse of the subnet mask. Used in ACLs.

  • First usable host

    192.168.1.1

  • Last usable host

    192.168.1.254

  • Total addresses

    256

    2^8

  • Usable hosts

    254

    Total minus network and broadcast

  • CIDR

    192.168.1.0/24

    Always normalized to the network address

  • Hex network

    0xC0A80100

    Network address in hexadecimal

  • Range type

    Class C - Private (RFC 1918)

Binary breakdown

  • Network

    192.168.1.0

    11000000.10101000.00000001.00000000

    Network bits/Host bits

  • Subnet mask

    255.255.255.0

    11111111.11111111.11111111.00000000

    Network bits/Host bits

  • Broadcast

    192.168.1.255

    11000000.10101000.00000001.11111111

    Network bits/Host bits

  • Wildcard

    0.0.0.255

    00000000.00000000.00000000.11111111

    Network bits/Host bits

The first 24 bits identify the network. The remaining 8 bits identify the host inside that network.

How to use

  1. Pick CIDR notation (one field like 192.168.1.0/24) or IP and mask (two fields like 192.168.1.10 and 255.255.255.0).
  2. Type or paste your address. The summary, address details, and binary breakdown update as you type.
  3. Click a quick sample (Home / SOHO, Class C, Small office, Class B, /30 link, /31 P2P) to load a typical block in one click.
  4. Read the network and broadcast addresses, first and last usable host, mask, wildcard, total addresses, usable host count, and the Range type label (Class, Private, Loopback, Link-local, Multicast).
  5. Use the binary breakdown to see how many bits identify the network vs the host. Copy any single field with the Copy button.

About this tool

Subnet Calculator is an IPv4 network calculator that runs entirely in your browser. Enter a CIDR like 192.168.1.0/24, or pick the IP and mask mode and enter an address with its dotted subnet mask, and the tool reports the network address, broadcast address, first and last usable host, total addresses, usable host count, subnet mask in dotted decimal, wildcard mask (the inverse used in router ACLs), the prefix length, and a hex view of the network address. Inputs are validated octet by octet so leading-zero or out-of-range values are flagged with a clear error, and the mask mode rejects non-contiguous masks (anything other than N ones followed by 32 minus N zeros). The tool handles the common edge cases correctly: a /32 prefix is treated as a single host route with no broadcast, a /31 link is treated as an RFC 3021 point-to-point pair where both addresses are usable and there is no broadcast, and a /0 prefix labels the result as the default route or every IPv4 address. The Range type line tags the network as Class A, B, C, D (multicast), or E (reserved), and adds Private (RFC 1918) for the 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 ranges, Loopback for 127.0.0.0/8, Link-local for 169.254.0.0/16, and Multicast for the 224.0.0.0/4 block, so you can tell at a glance whether a block is routable on the public internet or reserved for a specific use. Below the address details, a binary breakdown shows the network, mask, broadcast, and wildcard in 32 bits split into four octets, with the first prefix bits highlighted as network bits and the rest as host bits, making it easy to see how many bits identify the subnet versus the host. Useful when you are sizing a VLAN, planning DHCP scopes, writing an ACL or firewall rule, learning subnetting for a CCNA or Network+ exam, or normalizing a CIDR pasted from another tool. Validation, bit math, and rendering all happen on your device, so the addresses you paste here, including production network plans, never leave your browser.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsDeveloper Tools