UTILS.
Private by default
/24

IPv4 Subnet Calculator

Calculate netmask, network, broadcast, host range and counts from an IP and CIDR.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →

About this tool

Subnet Calculator takes an IPv4 address in CIDR notation, such as 192.168.1.0/24, and shows eight values: netmask, wildcard mask, network address with prefix, broadcast address, first and last usable host, total addresses and usable hosts. Results update as you type.

The address must be four decimal numbers from 0 to 255 followed by a slash and a prefix from 0 to 32. If you enter a host address with bits outside the prefix (for example 192.168.1.77/24), it is masked down to the network address, so you get the same answer as for 192.168.1.0/24. For ordinary subnets the usable count is the total minus the network and broadcast addresses. The two smallest sizes follow RFC 3021: a /31 has two usable addresses and no broadcast, and a /32 is a single host, so the broadcast cell shows a dash.

This is IPv4 only; IPv6 prefixes are not accepted. Invalid text shows an error and no results. Everything is computed locally in your browser, which makes it safe for internal addressing plans.

Frequently asked questions

What input format is required?
An IPv4 address in dotted decimal followed by /prefix, for example 10.0.0.0/22. The prefix must be 0 to 32 and every octet 0 to 255. A bare address with no prefix is rejected.
What happens if I enter a host address instead of the network address?
The host bits are cleared, so 192.168.1.77/24 reports the network 192.168.1.0/24. The first and last host are calculated from that network.
How are /31 and /32 handled?
Following RFC 3021, a /31 has two usable addresses and no broadcast, and a /32 is a single host address. The broadcast cell shows a dash for both.
Does it support IPv6?
No. Only IPv4 CIDR notation is supported.

More tools