Network ToolsA little help for every day

Search by name or task, such as JSON or percentage.

Network Tools

IPv4 Subnet Calculator

Work out the network and broadcast address, usable host range, host count, subnet mask and wildcard mask for any IPv4 address and prefix, and split subnets.

View all tools
ResultUpdates as you type
Network (CIDR)192.168.1.0/24
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
Network address192.168.1.0
Broadcast address192.168.1.255
Usable host range192.168.1.1 – 192.168.1.254
Total addresses256
Usable hosts254
Address typePrivate (RFC 1918)
Historic classClass C
IP in binary11000000.10101000.00000001.00001010
Mask in binary11111111.11111111.11111111.00000000
IP as an integer3232235786

How to use IPv4 Subnet Calculator

Type an IPv4 address and choose a prefix length, or type both at once as 192.168.1.10/26 or with a dotted mask. Results update as you type; pick a longer prefix under Split into smaller subnets to list the subnets.

  1. Enter an IPv4 addressType an address such as 192.168.1.10, or include the prefix or mask, as in 192.168.1.10/26.
  2. Choose the prefix lengthPick /0 to /32 from the list, which also shows the dotted mask. A prefix typed in the address field takes priority.
  3. Read the results or splitCheck the network, broadcast and host range, or choose a longer prefix to list up to 256 smaller subnets.

Worked example: 192.168.1.10/26

A /26 prefix means the first 26 bits identify the network, giving the mask 255.255.255.192 and the wildcard mask 0.0.0.63. That leaves 6 host bits, so the block holds 2^6 = 64 addresses. ANDing the IP with the mask gives the network address 192.168.1.0, and setting all host bits to 1 gives the broadcast address 192.168.1.63. The usable range is 192.168.1.1 to 192.168.1.62, which is 62 hosts. The calculator also labels 192.168.1.10 as Private (RFC 1918), shows the address and mask in binary and gives the address as the integer 3232235786.

Host counts, /31 and /32, and splitting a network

Usable hosts are normally 2^(32 − prefix) − 2, because the network and broadcast addresses are reserved: 254 for a /24, 30 for a /27 and 2 for a /30. A /31 is the exception, used on point-to-point links under RFC 3021, where both addresses can be assigned, and a /32 is a single host, common in routes and firewall rules. To divide a network, choose a longer prefix under Split into smaller subnets. Splitting 192.168.1.0/26 into /28 lists 192.168.1.0, .16, .32 and .48, each with 16 addresses and 14 usable hosts, along with its usable range and broadcast address. Up to 256 subnets are listed.

Accuracy and data handling

Network and domain data can change; record the lookup time and verify important findings in the authoritative account or service. The calculation runs in your current browser; the tool code does not send the input to a processing API.

Often Used Together

Next step

FAQ

How many hosts are in a /24 subnet?

A /24, mask 255.255.255.0, has 256 addresses. Two are reserved for the network and broadcast addresses, leaving 254 usable hosts, for example 192.168.1.1 to 192.168.1.254.

What is a wildcard mask?

It is the subnet mask with every bit flipped, so 255.255.255.0 becomes 0.0.0.255. Cisco access lists and OSPF network statements use wildcard masks instead of subnet masks.

Can a network or broadcast address be given to a device?

Normally no. The network address identifies the subnet and the broadcast address reaches every host on it, so devices use the addresses in between. /31 point-to-point links are the exception.

Does it support IPv6?

No. It works with 32-bit IPv4 addresses only, and an address containing colons is reported as IPv6. Addresses with leading zeros, such as 192.168.01.1, are rejected because some systems read them as octal.

More Network Tools

Related tools