IPv4 Subnet Calculator
Calculate the network, broadcast, mask, wildcard and usable host range for any IPv4 CIDR block.
How to use
Calculate a subnet
Enter an address with a prefix such as 192.168.1.0/24. The tool computes every key value for that block.
- Enter an IPv4 address or CIDR block.
- Read the network and broadcast addresses.
- Copy the JSON result for scripting.
Usable hosts
For prefixes from /1 to /30 the first and last addresses are reserved, so usable hosts equal the total minus two. /31 and /32 are treated as point-to-point and single-host ranges.
Frequently asked questions
What is a wildcard mask?
A wildcard mask is the bitwise inverse of the subnet mask. It is commonly used in access control lists.
How do I know if an address is private?
The tool flags 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 as private networks.
Related tools
URL Parser
Break a URL into protocol, host, port, path, query and fragment, and inspect every query parameter.
Hash Generator
Compute MD5, SHA-1, SHA-256 and SHA-512 digests of any text.
Number Base Converter
Convert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36.
UUID / GUID Generator
Generate random version 4 UUIDs and copy them one by one or in bulk.
Timestamp Converter
Convert between Unix timestamps, ISO 8601 and human readable local dates.
Regex Tester
Test regular expressions against sample text and inspect every match and capture group.