Kadben

IPv4 and IPv6 subnet calculator

Type an address with its prefix length or netmask. The page shows the network, the broadcast or last address, the usable hosts and how many there are, the masks, the subnets it splits into and whether another address belongs to it.

Runs in your browser. Nothing is uploaded.

Subnet calculator

For example 192.168.1.10/24, 10.0.0.0 255.255.255.0, 172.16.5.4/0.0.15.255 (wildcard mask) or 2001:db8::1/64.

    Subnets

    #NetworkUsable hostsHosts

    How to use it

    1. Type a network or an address with its prefix, for example 192.168.1.10/24 or 2001:db8::/48; for IPv4 a netmask or a wildcard mask works too.
    2. Read the network, the host range and the number of hosts; they change as you type.
    3. To check an address, type it under “Is this address in the network?”.
    4. Choose a longer prefix to split the network into subnets, and download the list as CSV if you need it.

    Rules and limits

    How the network is worked out

    Tested limits

    Questions and answers

    Why does a /31 have two usable hosts and not zero?

    A link between two routers needs only two addresses, and no device on such a link sends to a broadcast address. Using a /31 there saves half of the addresses a /30 would take.

    Why is there no broadcast address for IPv6?

    IPv6 does not use broadcast at all: it reaches groups of devices with multicast. So the last address of an IPv6 network is an ordinary address.

    What is a wildcard mask for?

    Cisco access lists and OSPF network statements take the inverted mask, where a 1 bit means “any value”. 0.0.0.255 matches the same addresses as 255.255.255.0.

    Is anything sent over the network?

    No. The calculation runs in your browser; the page does not look anything up and sends nothing.

    Related tools