CIDR Calculator
Expand a CIDR block into its network, mask, wildcard and host range.
100% private — everything runs in your browser
How to Use
- 1
Type an IPv4 CIDR block, for example 10.0.0.0/16.
- 2
Review the mask, broadcast and host range.
- 3
Optionally test an address to see whether it belongs to the block.
Examples
Typical home subnet
Input
192.168.1.0/24Output
Mask 255.255.255.0, usable hosts 192.168.1.1 – 192.168.1.254 (254 hosts).Large private block
Input
10.0.0.0/8Output
Mask 255.0.0.0, 16,777,214 usable hosts across 10.0.0.0 – 10.255.255.255.FAQ
Why is the host count not the total addresses?
The network and broadcast addresses cannot be assigned to hosts, so /24 has 254 usable addresses, not 256.
Does it support IPv6?
No. This calculator is IPv4 only, where subnetting arithmetic is most commonly needed.
How is the address class determined?
Class A starts at 1, class B at 128, class C at 192, class D at 224 and class E at 240.
Related Tools
cURL to CodeTurn a curl command into JavaScript, Python, Go or PHP code.URL Encoder / DecoderEncode text for URLs with encodeURIComponent or encodeURI, and decode percent-encoded strings.Hash GeneratorCompute MD5, SHA-1, SHA-256 and SHA-512 hashes of any text, entirely in your browser.What Is My IP?Show the public IP address your device presents to the internet, plus country, the Cloudflare data centre serving you, TLS version, protocol and VPN indicators.JSON FormatterFormat, beautify, minify and validate JSON instantly — right in your browser.JSON ValidatorValidate JSON instantly and find syntax errors with the exact line, column and position — right in your browser.