About IPv4 Subnet Calculator
A subnet calculation is a short sequence of bit operations, but a small mistake is expensive: an off-by-one prefix, a host range that quietly includes the broadcast address, or a mask whose bits are not contiguous. This calculator takes the address and prefix you type and shows the network, broadcast, mask, wildcard and the first and last usable host on one screen.
The arithmetic uses 32-bit unsigned integers, and a binary boundary line shows exactly which bits belong to the network and which to the host. Prefix length and dotted-decimal mask are both accepted, and the special /31 and /32 cases are explained instead of being allowed to produce a negative host count.
What this tool does
Network and broadcast
See the network address, broadcast address and wildcard mask for the prefix you enter.
Usable host range
The first and last usable address and the usable host count, with /31 and /32 handled by their special rules.
Prefix or dotted mask
Accept /0 to /32 as a prefix or type a dotted-decimal mask; a non-contiguous mask is rejected with a clear message.
Binary boundary
A bit view splits the 32 bits at the prefix boundary so the network and host parts are easy to check.
Copy every value
Each result row has its own copy button with inline feedback for tickets, runbooks and change notes.
Local and offline
The bit maths runs in the browser; the address never leaves the tab and no network connection is used.
How to use IPv4 Subnet Calculator
- 01
Enter the IPv4 address
Type an address such as 192.168.10.42 in dotted decimal; all four octets are required.
- 02
Choose the prefix or mask
Pick a prefix length from /0 to /32, or switch the input mode and type the dotted-decimal subnet mask.
- 03
Read the subnet details
The result card shows the network, broadcast, mask, wildcard, usable hosts and the binary boundary.
- 04
Check the special cases
A /31 is treated as a point-to-point link with two usable addresses, and a /32 as a single host address.
- 05
Copy what you need
Use the copy button on any row and paste the value into your configuration, ticket or runbook.
How this tool works
- Works with
- IPv4 / CIDR
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- Chrome, Edge, Firefox or Safari · JavaScript enabled
Limitations worth knowing
- IPv4 only; IPv6 prefixes use the separate IPv6 subnet calculator.
- A /31 is reported as two usable point-to-point addresses and a /32 as one; confirm that the convention matches your platform.
- No routing, VLAN, NAT or overlap validation; the tool only computes the addressing maths.
- Input accepts dotted-decimal IPv4 only, not shorthand such as 10/8 or octal and hexadecimal octets.
Privacy and file handling
The address and prefix you type are processed in your browser with plain JavaScript. Nothing is uploaded, no request is made, and no value is stored; closing the page clears the form.
Read the full privacy policy
