Subnet / CIDR Hosts
Developer
Usable hosts in an IPv4 subnet.
Hosts = 2^(32 − cidr) − 2
Runs locally in your browser
2 calculators
Plan subnets in CIDR notation and convert hex to RGB without leaving your keyboard. Everything computes client-side in your browser, so nothing you type is logged.
Developer
Terse inputs, instant outputs, and the underlying math documented below each tool.
More to explore
Specialized tools across health, construction, school math, engineering, general, developer, cooking, and academic.
Conversions and subnet math run locally in your browser. Nothing you paste is sent anywhere.
CIDR results include network, broadcast, and usable host ranges, with the underlying bit math explained.
Live recalculation with no submit step, so you can iterate on values as fast as you can type.