IPv4 Subnet Calculator

Enter an IPv4 address with a prefix, such as 192.168.1.10/24, or with a subnet mask like 10.0.0.1 255.255.0.0. Results update in real time as you type and are computed entirely in your browser.

Network address
192.168.1.0/24
Broadcast address
192.168.1.255
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Usable host range
192.168.1.1 – 192.168.1.254
Usable hosts
254
Total addresses
256
Class
C
Type
Private (RFC 1918)
Binary mask
11111111.11111111.11111111.00000000

Split into smaller subnets

SubnetFirst hostLast hostBroadcast
192.168.1.0/26192.168.1.1192.168.1.62192.168.1.63
192.168.1.64/26192.168.1.65192.168.1.126192.168.1.127
192.168.1.128/26192.168.1.129192.168.1.190192.168.1.191
192.168.1.192/26192.168.1.193192.168.1.254192.168.1.255

What are prefix, subnet mask, network, and broadcast?

These parameters describe an IPv4 range: prefix and subnet mask specify the network portion, while network and broadcast are the first and last addresses of the range.

TermExplanation
Prefix (/24)The number of leading bits used for the network portion. /24 means 24 network bits, with the remaining 8 bits for hosts.
Subnet maskAn alternative notation for prefix: /24 corresponds to 255.255.255.0.
NetworkThe first address of the range, representing the entire network; cannot be assigned to devices.
BroadcastThe last address of the range, used to send traffic to all devices on the network.
WildcardThe inverted mask, commonly used in Cisco router ACLs and firewalls.

Common Subnet Table

PrefixSubnet maskUsable hosts
/30255.255.255.2522
/29255.255.255.2486
/28255.255.255.24014
/27255.255.255.22430
/26255.255.255.19262
/24255.255.255.0254
/22255.255.252.01.022
/16255.255.0.065.534

Need more dedicated IPv4 addresses for your project?

ONET's dedicated IPv4 proxies are available in 9 countries; each IP is dedicated to a single customer and remains unchanged throughout the rental period. HTTP(S) and SOCKS5 (SOCKS5 for IPs outside Vietnam), username and password authentication, automatic activation.

Dedicated IPv4 proxies in 9 countries from 20.000 ₫/IP/month

View dedicated IPv4 proxy pricing

Frequently Asked Questions

Why does a /24 have 256 addresses but only 254 usable hosts?+

The first address is the network address and the last is the broadcast address; neither can be assigned to devices. /31 and /32 are exceptions and do not exclude these two addresses.

How do you check if two IPs are on the same subnet?+

Enter each IP with the same prefix one by one: if their network addresses match, they are on the same subnet.

Does this tool support IPv6?+

Currently, only IPv4 is supported, which remains the most widely used address type for servers, internal networks, and proxies.