IPv4 Subnet Calculator

Bitwise IPv4 subnetting calculations with full network, broadcast, wildcard, and binary breakdowns.

Network: 192.168.1.0
Broadcast: 192.168.1.255
Netmask: 255.255.255.0
Usable Range: 192.168.1.1192.168.1.254
Usable Hosts: 254

How It Works

  • Converts IPv4 octets into 32-bit unsigned integers.
  • Applies bitwise mask based on CIDR prefix length.
Formula & Technical Standard
Subnet Mask = 0xFFFFFFFF << (32 - CIDR). Usable Hosts = (2^(32 - CIDR)) - 2.

Practical Example

Class C /24
Input: 192.168.1.10 /24
Output: Net: 192.168.1.0, Broadcast: 192.168.1.255, Hosts: 254
Standard local network allocation.

Frequently Asked Questions

How are /31 subnets handled?

Under RFC 3021, /31 subnets provide 2 usable host addresses for point-to-point links.

Related Tools