Sign up free

IP Subnet Calculator

Work out network, broadcast, host range and masks for an IPv4 range and split it into subnets, or see the size of an IPv6 prefix.

About IP Subnet Calculator

An IP subnet calculator saves doing binary in your head when you plan a network, whether you're carving a cloud VPC into subnets, sizing an office LAN, writing a firewall rule for a whole range, or checking whether two addresses sit in the same subnet. Enter an address with a prefix length, like 192.168.1.10/24, or with a dotted mask such as 255.255.255.0. For a firewall rule covering a whole hosting company, the ASN Lookup lists every range it announces.

For IPv4 you get the network and broadcast address, the first and last usable host, the number of hosts, the netmask and wildcard mask, a binary view that shows where the network part ends, the old address class, and whether the range is private or public. IPv6 prefixes such as 2001:db8::/48 work too. To plan smaller networks, split the range by a longer prefix, say a /24 into /26 blocks, and read every subnet from the table. To turn an address into its integer, hex or reverse DNS form, use the IP Address Converter. The calculator runs in your browser, is free and unlimited, and keeps working offline once the page has loaded.

How to use IP Subnet Calculator

  1. 1
    Enter an address

    Type an IPv4 or IPv6 address in CIDR form, such as 10.0.0.0/16, or an IPv4 address with a dotted mask.

  2. 2
    Read the results

    See the network, broadcast, usable host range, host count, masks, class and type.

  3. 3
    Split into subnets

    Choose a longer prefix to divide the range into equal smaller subnets, listed in a table.

Why use Cubfile for this

  • CIDR or dotted mask

    Both 192.168.1.10/24 and 192.168.1.10 with 255.255.255.0 are understood.

  • Wildcard mask

    The inverted mask used in Cisco ACLs and OSPF, next to the normal netmask.

  • Binary view

    See exactly which bits belong to the network and which to the hosts.

  • Subnet splitting

    Divide a range into smaller subnets, one table row each.

FAQ

IP Subnet Calculator: questions and answers

How many usable hosts are in a /24 subnet?
A /24 has 256 addresses. The first is the network address and the last is the broadcast address, which leaves 254 for hosts.
What is a wildcard mask, and how is it worked out from a subnet mask?
The netmask with every bit flipped, so 255.255.255.0 becomes 0.0.0.255. Cisco access lists and OSPF use it to say which bits of an address must match.
How do I convert a subnet mask to CIDR?
Count the 1 bits in the mask. 255.255.255.0 has 24, so it's /24, and 255.255.255.192 has 26, so it's /26. The calculator accepts either form.
Which IP ranges are private?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are set aside for private networks and aren't routed on the internet. The calculator labels each range private or public. To see the public address your own network uses, open What Is My IP.
Does the IP subnet calculator upload anything to a server?
No. The subnet calculator runs entirely in your browser, doesn't count toward any limit and works offline once the page has loaded.
Share IP Subnet Calculator with a friendIt runs in any browser, and they can try it without signing up.

Related tools

IP Ping TestMeasure how fast our server can connect to a host, several times in a row.
IP What Is My IPSee the public IP address websites see, plus your browser and system details.
IP IP WHOIS LookupSee which organization owns an IP address, its network range and ASN.
IP Open Port CheckerCheck whether common ports on your server are open to the internet.
IP User Agent ParserTurn a user agent string into browser, engine, system and device.
IP ASN LookupLook up an autonomous system number: its owner, country and registry.
IP IP Address ConverterConvert IP addresses between dotted, decimal, hex and binary, and expand IPv6.
v6IP IPv6 Support CheckerCheck whether a website has IPv6 addresses and answers over IPv6.