CIDR & Subnet Calculator (IPv4 / IPv6)

Calculate network address, broadcast, subnet mask, wildcard, usable host range and host count for any IPv4 or IPv6 CIDR block. Split subnets and check IP membership.

Runs 100% in your browser. Nothing you paste is uploaded.

Examples:

Network

Binary

Split into subnets

    Check if an IP is in this range

    About the CIDR / Subnet Calculator

    Planning a VPC, writing a firewall rule or reading a Kubernetes pod CIDR? Enter an address with a prefix (10.0.0.0/16) or a dotted mask (192.168.0.1 255.255.252.0) to get the network and broadcast addresses, masks, usable host range and counts. Split the block into smaller subnets and check whether a given IP falls inside.

    Features

    • IPv4 and IPv6
    • Prefix or dotted subnet mask input
    • Network, broadcast, wildcard, host range
    • RFC 1918 / CGNAT / loopback detection
    • Binary view of address and mask
    • Subnet splitting
    • IP-in-range check

    How to use it

    1. Enter an IP with prefix or mask.
    2. Read the computed network details.
    3. Split the network or check an IP against it.

    Frequently asked questions

    How many hosts are in a /24?

    256 addresses, of which 254 are usable hosts (network and broadcast addresses are reserved). Cloud providers often reserve a few more — AWS reserves 5 per subnet.

    What about /31 and /32?

    A /31 has two usable addresses for point-to-point links (RFC 3021); a /32 is a single host.

    Esc