100% Client-Side — Nothing Leaves Your Browser

IP Calculator

Enter any IPv4 address to instantly see its class, whether it is private or public, network address, broadcast address, subnet mask, usable host range, and binary representation. Adjust the CIDR prefix to explore different subnet sizes.

/0 (all IPs)/32 (single host)

Results for 192.168.1.0/24

Network Address
192.168.1.0
Broadcast Address
192.168.1.255
Subnet Mask
255.255.255.0
Wildcard Mask
0.0.0.255
First Usable Host
192.168.1.1
Last Usable Host
192.168.1.254
Usable Hosts
254
Total Addresses
256
IP Class
Class CPrivate
Binary Subnet Mask
11111111 . 11111111 . 11111111 . 00000000
■ Network bits (24)■ Host bits (8)

CIDR Reference Table

CIDRSubnet MaskTotal IPsUsable
/00.0.0.04.3e+94.3e+9
/1128.0.0.02.1e+92.1e+9
/2192.0.0.01.1e+91.1e+9
/3224.0.0.0536,870,912536,870,910
/4240.0.0.0268,435,456268,435,454
/5248.0.0.0134,217,728134,217,726
/6252.0.0.067,108,86467,108,862
/7254.0.0.033,554,43233,554,430
/8255.0.0.016,777,21616,777,214
/9255.128.0.08,388,6088,388,606
/10255.192.0.04,194,3044,194,302
/11255.224.0.02,097,1522,097,150
/12255.240.0.01,048,5761,048,574
/13255.248.0.0524,288524,286
/14255.252.0.0262,144262,142
/15255.254.0.0131,072131,070
/16255.255.0.065,53665,534
/17255.255.128.032,76832,766
/18255.255.192.016,38416,382
/19255.255.224.08,1928,190
/20255.255.240.04,0964,094
/21255.255.248.02,0482,046
/22255.255.252.01,0241,022
/23255.255.254.0512510
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422
/32255.255.255.25511

Last updated: March 2026

What Is an IP Calculator?

An IP calculator takes an IPv4 address and determines its class (A, B, C, D, or E), whether it is a private or public address, and computes all subnet-related properties including network address, broadcast address, subnet mask, wildcard mask, and usable host range.

IPv4 uses 32-bit addresses, providing 4.3 billion unique addresses. While this seemed enormous when the protocol was designed in 1981, the explosive growth of the internet consumed the entire pool by 2011. Understanding how IP addresses are structured and allocated is fundamental to network engineering, cloud architecture, and cybersecurity.

IPv4 Address Classes Explained

The original IPv4 design divided addresses into five classes based on the leading bits of the first octet. Class A (1.0.0.0 to 126.255.255.255) uses the first 8 bits for the network and the remaining 24 for hosts, allowing 16.7 million hosts per network. Class B (128.0.0.0 to 191.255.255.255) splits evenly with 16 bits each, supporting 65,534 hosts. Class C (192.0.0.0 to 223.255.255.255) uses 24 network bits and 8 host bits, for 254 hosts per network.

Class D (224.0.0.0 to 239.255.255.255) is reserved for multicast traffic, and Class E (240.0.0.0 to 255.255.255.255) is reserved for experimental use. While CIDR has replaced classful routing for practical purposes, the class system still defines the three private IP ranges and helps network engineers quickly recognize address types.

Private vs. Public IP Addresses

RFC 1918 reserves three blocks for private use: 10.0.0.0/8 (16.7 million addresses), 172.16.0.0/12 (1 million addresses), and 192.168.0.0/16 (65,536 addresses). These addresses are not routed on the public internet, so any organization can use them internally without coordination.

NAT (Network Address Translation) bridges private and public networks by mapping internal private IPs to a shared public IP for outbound traffic. This is how billions of devices share the limited IPv4 address space. This calculator flags every address as private or public so you can immediately see which category it falls into.

How IP Addresses Are Calculated

Every subnet calculation comes down to bitwise operations. The network address is the IP ANDed with the subnet mask. The broadcast address is the network address ORed with the inverted mask (wildcard). The first usable host is network + 1, and the last usable host is broadcast - 1. This calculator performs all of these operations in real time and displays the binary mask with color-coded network and host bits.

Related Tools

Frequently Asked Questions

What are IPv4 address classes?+
IPv4 addresses are divided into five classes based on the first octet: Class A (1-126, /8 default mask, 16.7M hosts), Class B (128-191, /16 default mask, 65K hosts), Class C (192-223, /24 default mask, 254 hosts), Class D (224-239, multicast), and Class E (240-255, experimental). While CIDR has replaced classful routing, understanding classes helps with recognizing private ranges and default masks.
What is the difference between private and public IP addresses?+
Private IP addresses are reserved for internal networks and cannot be routed on the public internet. The three private ranges are 10.0.0.0/8 (Class A), 172.16.0.0/12 (Class B), and 192.168.0.0/16 (Class C). Public IP addresses are globally unique and routable on the internet. NAT (Network Address Translation) allows devices with private IPs to access the internet through a shared public IP.
How do I find the network address from an IP and subnet mask?+
Perform a bitwise AND between the IP address and the subnet mask. For example, 192.168.1.100 AND 255.255.255.0 = 192.168.1.0. In binary: every bit position where the mask is 1 keeps the IP bit, and where the mask is 0 the result is 0. The network address always has all host bits set to 0.
What is 127.0.0.1?+
127.0.0.1 is the loopback address. The entire 127.0.0.0/8 block is reserved for loopback — packets sent to any address in this range never leave the host. 127.0.0.1 (often called 'localhost') is the most commonly used loopback address. It is used for testing network software on the local machine without needing actual network hardware.
What happens when IPv4 addresses run out?+
IPv4 addresses have already been exhausted — IANA allocated the last blocks in 2011, and most regional registries have depleted their pools. The long-term solution is IPv6, which has 340 undecillion addresses. In the meantime, techniques like NAT, CGNAT (Carrier-Grade NAT), and IPv4 address trading help manage the scarcity.
What is the difference between a subnet mask and a default gateway?+
A subnet mask defines which part of an IP address is the network portion and which is the host portion. It determines which other IPs are on the same local subnet. A default gateway is the IP address of the router that forwards traffic to destinations outside the local subnet. Both are required for a device to communicate on a network.