Designing corporate VPC networks, configuring VLANs, or dividing subnets for cloud deployments in AWS and Azure requires exact bitwise math. OmniTool Hub provides instant binary and decimal calculations for any IPv4 address and CIDR prefix, displaying network addresses, usable host ranges, and wildcard masks.
Key Property Parameters & Specifications
| CIDR Notation | Subnet Mask | Total IPs |
|---|---|---|
| /30 | 255.255.255.252 | 4 |
| /28 | 255.255.255.240 | 16 |
| /24 | 255.255.255.0 | 256 |
| /20 | 255.255.240.0 | 4,096 |
| /16 | 255.255.0.0 | 65,536 |
Implementation Guide & Technical Reference
Bitwise Network Address Calculation in JavaScript
function getNetworkAddress(ipInt, maskInt) {
const netInt = (ipInt & maskInt) >>> 0;
return [(netInt >>> 24) & 255, (netInt >>> 16) & 255, (netInt >>> 8) & 255, netInt & 255].join('.');
}
Unsigned 32-bit bitwise math.
Frequently Asked Questions (FAQ)
Why are there 2 fewer usable hosts than total IP addresses?
The first address in any subnet is reserved for the Network ID, and the last address is reserved for the Subnet Broadcast address.
What is a Wildcard Mask and where is it used?
A wildcard mask is the inverse of a subnet mask (e.g. `0.0.0.255` for `/24`). It is used in Cisco IOS Access Control Lists (ACLs) and OSPF routing.
Can I view the binary bitwise representation of the IP and mask?
Yes. The results table displays the 32-bit binary representation showing network bits (1s) and host bits (0s).
Does this calculator support Classless Inter-Domain Routing (CIDR)?
Yes. It supports all CIDR masks from `/1` to `/32`.