Subnet Calculator
Developer ToolsIP/CIDR to mask, broadcast and usable hosts
Subnet Calculator: IP/CIDR to mask, broadcast and usable hosts. Mask /n = first n bits set · Network = IP AND mask · Broadcast = network OR wildcard.
Network range
192.168.1.1 ~ 192.168.1.254
254 usable hosts / 256 total
Binary view
- 1IP: 11000000.10101000.00000001.01100100
- 2Mask: 11111111.11111111.11111111.00000000(前 24 位为 1)
- 3Network = IP AND Mask = 192.168.1.0
- 4Broadcast = Network OR Wildcard = 192.168.1.255
Common CIDR reference
| CIDR | Mask | Hosts | Usage |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 | Class A |
| /16 | 255.255.0.0 | 65,534 | Class B / large LAN |
| /24 ← | 255.255.255.0 | 254 | Class C / most common |
| /25 | 255.255.255.128 | 126 | Half C |
| /26 | 255.255.255.192 | 62 | Small department |
| /27 | 255.255.255.224 | 30 | Small team |
| /30 | 255.255.255.252 | 2 | Point-to-point link |
💡 Memorize the /24-/32 boundary table: /24=256, /25=128, /26=64, /27=32, /28=16, /29=8, /30=4 addresses. Private ranges (RFC1918): 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 — never routable on the public internet. /31 links (RFC3021) have no network/broadcast, both addresses usable.
Was this tool helpful?
How to Use
- Paste or type content: drop code/text into the Subnet Calculator or fill the parameters.
- Choose mode/options: switch format, rules or processing as needed.
- Live output: results appear instantly — nothing is submitted, data stays in your browser.
- One-click copy: copy the output straight into your development environment.
Key Points
- Subnet Calculator is a free online developer tool — open and use, no sign-up.
- All calculations run locally in your browser; your data never leaves the device.
- Key capability: IP/CIDR to mask, broadcast and usable hosts.
- Results come with formulas and reference tables so you can verify every number.
Formula & How It Works
IPv4 subnetting
FAQ
How do I use the Subnet Calculator?
Are the results accurate?
Is it free? Do I need to sign up?
Does it work on mobile?
Is my data saved?
Related Tools
CPU Cooler Calculator
TDP headroom to air/AIO tierTapping Drill Size Calculator
Nominal minus pitch by materialIPv6 Formatter
RFC 5952 expand & compressGuitar Capo Transposer
chord sequence · semitone shift per fretBase Converter for Developers
Binary, octal, decimal, hex — batch conversionColor Code Converter
HEX, RGB, HSL and CMYKJSON Formatter
Beautify, minify and validate JSONBase64 Encoder / Decoder
Encode and decode Base64 textRelated Guides
Source & Updates
Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07
Authoritative sources:
Last updated:
Formulas and content on this page are reviewed by the YiJianSuan team. For reference only — official sources prevail.
Maintained and periodically reviewed by the YiJianSuan editorial team — review process in ourEditorial Policy.
Cite this page: YiJianSuan. Subnet Calculator[EB/OL]. https://www.yijiansuan.com/en/c/dev/subnet
Results provided by this tool are for reference only and do not constitute professional advice.