Skip to main content

IPv4 subnet calculator.

Enter an address with its prefix length or netmask to see the whole network it belongs to.

Input

For example 178.18.0.1/24 or 10.0.0.1/255.255.0.0

Result

Network (CIDR)
178.18.0.0/24
Usable range
178.18.0.1 - 178.18.0.254
Network address
178.18.0.0
Broadcast address
178.18.0.255
Netmask
255.255.255.0
Wildcard mask
0.0.0.255
Netmask (binary)
11111111.11111111.11111111.00000000
Total addresses
256
Usable hosts
254
Address type
Public

178.18.0.0/24: 254 usable hosts

How it works

A subnet is a block of addresses that share the same first bits. The prefix length (the number after the slash) says how many bits are fixed: a /24 fixes 24 of 32 bits and leaves 8 for hosts, so it holds 256 addresses.

The first address names the network and the last is the broadcast address, so neither can be given to a device. The exceptions are /31 point-to-point links and single /32 addresses, where every address is usable.

Everything is calculated in your browser; nothing you type is sent to us.