... LIVE
💻 IPv4 Address Analyzer
Enter any IPv4 address (e.g. 192.168.1.1, 10.0.0.1, 8.8.8.8) Enter a valid IPv4 address (four octets 0–255, e.g. 192.168.1.1).
IP Class
⚠️ Disclaimer: IP class information is based on classful addressing (historical). Modern networks use CIDR. Class information is relevant for CCNA study and legacy system administration.

Sources & Methodology

IP address classification verified against IANA IPv4 Special-Purpose Address Registry and RFC 1918 (private addresses). Binary conversion uses standard 8-bit per octet representation.
📘
IANA IPv4 Special-Purpose Address Registry
Official registry of all special-purpose IPv4 address blocks including loopback, link-local, private, multicast, and reserved ranges used to classify any IP address.
📙
RFC 1918 — Address Allocation for Private Internets (IETF)
Defines the three private IPv4 address blocks (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) that are not routable on the public internet.
📊
RFC 791 — Internet Protocol (IPv4 Specification) — IETF
Original IPv4 specification defining the 32-bit address format, address classes, and the fundamental structure of IP addressing still in use today.
Methodology:
IP Class: determined by first octet value (1-126=A, 128-191=B, 192-223=C, 224-239=D, 240-255=E) Type: matched against IANA special-purpose registry and RFC 1918 private ranges Binary: each octet converted to 8-bit binary, padded with leading zeros Default subnet mask is the classful mask for the detected class. Network range is derived from applying the default class mask. Modern CIDR-based networking ignores classful boundaries, but class remains relevant for exam study and legacy documentation.

Last reviewed: April 2026

IPv4 Address Classes, Types & Ranges: Complete Guide 2026

Every IPv4 address carries information beyond just its four octets. Its value tells you which class it belongs to, whether it is private or public, whether it is a special-purpose address, and what its default subnet mask is. Understanding IP address classification is fundamental for network design, troubleshooting, certification exams, and cloud architecture. This guide covers every IPv4 address type with full range tables and practical use cases.

IPv4 Address Classes: Complete Reference Table

The classful addressing system divides the entire IPv4 address space into five classes based on the value of the first octet. While modern networking uses CIDR and ignores class boundaries, IP classes are still tested on the Cisco CCNA and CompTIA Network+ exams and appear in legacy documentation.

ClassFirst Octet RangeDefault MaskCIDRNetworksHosts/NetworkPurpose
A1 – 126255.0.0.0/812616,777,214Large enterprises, ISPs
B128 – 191255.255.0.0/1616,38465,534Medium enterprises
C192 – 223255.255.255.0/242,097,152254Small networks, home LANs
D224 – 239N/AN/AN/AN/AMulticast groups only
E240 – 255N/AN/AN/AN/AReserved for research

Private vs Public IP Addresses: What the Difference Means

Not all IP addresses are equal. The IANA and RFC 1918 define certain ranges as private — reserved for internal use inside homes, offices, and cloud networks. Private addresses are not routable on the public internet. Devices with private IPs connect to the internet through NAT (Network Address Translation), where a router substitutes the private address with a public one.

RangeCIDRClassTotal AddressesTypical Use
10.0.0.0 – 10.255.255.25510.0.0.0/8A16,777,216Enterprise, AWS VPCs, data centers
172.16.0.0 – 172.31.255.255172.16.0.0/12B1,048,576Medium networks, Docker, Kubernetes
192.168.0.0 – 192.168.255.255192.168.0.0/16C65,536Home routers, small offices

Special-Purpose IPv4 Addresses: Every Reserved Range

Beyond private ranges, IANA defines many other special-purpose address blocks. Understanding these prevents misconfiguration and helps in troubleshooting unexpected network behavior.

Address / RangeTypePurpose
0.0.0.0/8This networkDefault route, source before DHCP assignment
127.0.0.0/8LoopbackLocalhost (127.0.0.1 most common), never leaves host
169.254.0.0/16Link-local / APIPAAuto-assigned when DHCP fails (Windows APIPA)
224.0.0.0/4MulticastMulticast groups, routing protocols (OSPF, RIPv2)
240.0.0.0/4ReservedReserved by IANA, not usable in production
255.255.255.255Limited broadcastBroadcast to all hosts on local segment (DHCP discover)
100.64.0.0/10Shared addressCarrier-grade NAT (RFC 6598), ISP internal use
198.51.100.0/24DocumentationTEST-NET-2, examples in RFCs and documentation only
203.0.113.0/24DocumentationTEST-NET-3, examples in RFCs and documentation only

How to Convert an IP Address to Binary

Every IPv4 address is ultimately a 32-bit binary number. Network operations like subnetting, subnet masking, and route matching happen at the binary level. Converting an IP to binary helps you understand why subnet boundaries fall where they do and how subnet masks work.

Each octet = 8 bits  |  Total = 32 bits
Example: 192.168.10.50
192 = 128+64 = 11000000
168 = 128+32+8 = 10101000
10  = 8+2 = 00001010
50  = 32+16+2 = 00110010
Full binary: 11000000.10101000.00001010.00110010

What Is 127.0.0.1 and Why Is It Called Localhost?

The entire 127.0.0.0/8 range is reserved for loopback. Any packet sent to a loopback address is immediately processed by the local network stack without ever leaving the machine or reaching a physical network interface. The address 127.0.0.1 is the universally recognized localhost address used to connect to services running on the same computer — web servers, databases, APIs during development. You cannot ping a router, another device, or the internet by sending to 127.0.0.1.

Understanding APIPA: Why You See 169.254.x.x

When a Windows or macOS device cannot reach a DHCP server, the operating system automatically assigns an address in the 169.254.0.0/16 range using a process called APIPA (Automatic Private IP Addressing). The OS picks a random address, checks via ARP that no other device is using it, and assigns it. An APIPA address means the device cannot reach a DHCP server and is isolated from the wider network. This usually indicates a failed network cable, a misconfigured switch port, or an unreachable DHCP server.

💡 Troubleshooting tip: If you see a 169.254.x.x address on a device that should have a network connection, the first thing to check is whether the network cable is plugged in, whether the switch port is active, and whether the DHCP server is reachable from that segment. Running ipconfig /release and ipconfig /renew on Windows forces a fresh DHCP request.

Multicast IP Addresses (Class D) Explained

Class D addresses (224.0.0.0 to 239.255.255.255) are used for multicast — delivering a single packet to multiple receivers simultaneously without broadcasting to everyone. Important well-known multicast addresses include 224.0.0.5 for all OSPF routers, 224.0.0.9 for RIPv2 routers, 224.0.0.10 for EIGRP routers, and 239.0.0.0/8 for the organizationally-scoped multicast range used in enterprise applications. Multicast-enabled routers running PIM (Protocol Independent Multicast) are required to forward multicast traffic across subnets.

IPv4 Address Exhaustion and the Transition to IPv6

The IPv4 address space contains approximately 4.3 billion addresses (2^32). IANA distributed the last free IPv4 blocks to regional registries in February 2011. Regional registries exhausted their pools between 2012 and 2020. Today, IPv4 addresses are only available through transfers and lease markets. IPv6 solves this with 128-bit addresses providing approximately 340 undecillion unique addresses, effectively unlimited for any practical purpose. Despite IPv6 availability, IPv4 remains dominant in most enterprise and home networks due to the cost and complexity of migration.

Frequently Asked Questions
An IP address calculator analyzes any IPv4 address and returns its class (A, B, C, D, or E), address type (private, public, loopback, link-local, multicast, or reserved), default classful subnet mask, binary representation, and the network range it belongs to under classful addressing rules.
IPv4 has five address classes based on the first octet. Class A (1 to 126): default mask /8, up to 16.7 million hosts per network. Class B (128 to 191): default mask /16, up to 65,534 hosts. Class C (192 to 223): default mask /24, up to 254 hosts. Class D (224 to 239): reserved for multicast groups. Class E (240 to 255): reserved for research and experimental use. Note that 127.x.x.x is reserved for loopback and falls between Class A and B.
Private IPs (10.x.x.x, 172.16.x.x to 172.31.x.x, 192.168.x.x) are used inside local networks and are not routable on the public internet. They are defined by RFC 1918. Public IPs are globally unique addresses assigned by ISPs and regional registries that are routable across the internet. Devices with private IPs access the internet through NAT on a router or gateway.
The loopback range is 127.0.0.0/8. Packets sent to any address in this range are processed within the local network stack and never sent out on a physical network. The most common loopback address is 127.0.0.1 (localhost), used to connect to services running on the same machine. This is essential for local development and internal software testing.
Link-local addresses (169.254.0.0/16) are automatically assigned by operating systems when DHCP is unavailable, through a process called APIPA (Automatic Private IP Addressing). These addresses only work for communication on the same physical network segment and cannot be routed. Seeing a 169.254.x.x address almost always indicates a DHCP problem that needs troubleshooting.
Look at the first octet value. 1 to 126 is Class A. 128 to 191 is Class B. 192 to 223 is Class C. 224 to 239 is Class D (multicast). 240 to 255 is Class E (reserved). The value 127 is reserved for loopback and is technically in the Class A range but never used for normal networking. Enter any IP above and the calculator identifies the class instantly.
0.0.0.0 is a non-routable meta-address used in specific contexts. In routing tables it represents the default route (match any destination not covered by a more specific route). DHCP clients use it as their source address before receiving an IP assignment. When used in server socket binding it means listen on all network interfaces. It is never assigned as a usable host address.
255.255.255.255 is the limited broadcast address. Packets sent to this address are delivered to all hosts on the local network segment. Routers do not forward limited broadcast packets. It is used by DHCP clients during the discovery phase before they know their assigned IP address or the directed broadcast address of their subnet.
Multicast addresses (Class D, 224.0.0.0 to 239.255.255.255) are used to send packets to a group of hosts simultaneously. Hosts join multicast groups using IGMP (Internet Group Management Protocol). Key multicast addresses include 224.0.0.5 for OSPF, 224.0.0.9 for RIPv2, and 224.0.0.10 for EIGRP. Unlike broadcast, multicast is routable across networks with PIM-enabled routers.
Convert each of the four octets to 8-bit binary independently. For 192.168.1.1: 192 = 11000000, 168 = 10101000, 1 = 00000001, 1 = 00000001. The full 32-bit binary is 11000000.10101000.00000001.00000001. Use the powers of 2 (128, 64, 32, 16, 8, 4, 2, 1) for each bit position. This calculator shows the binary conversion automatically for any entered IP.
The 100.64.0.0/10 range (100.64.0.0 to 100.127.255.255) is defined by RFC 6598 for carrier-grade NAT (CGN). ISPs use this range internally between their CGN devices and customer routers, providing a second layer of NAT before reaching the public internet. Devices with 100.64.x.x addresses are behind ISP-level NAT and typically cannot receive unsolicited inbound connections.
IPv4 uses 32-bit addresses (about 4.3 billion total) written in dotted-decimal. IPv6 uses 128-bit addresses (about 340 undecillion total) written in hexadecimal groups. IPv4 address space is exhausted and new IPv4 addresses require purchasing or leasing from other organizations. IPv6 provides effectively unlimited addresses and adds improvements to routing, security, and auto-configuration, though IPv4 remains dominant due to migration complexity.
Class A uses 255.0.0.0 (/8), Class B uses 255.255.0.0 (/16), and Class C uses 255.255.255.0 (/24). These are the default classful masks, meaning they represent the original boundary between the network and host portions without any subnetting applied. Modern networks use CIDR and can apply any prefix length to any address regardless of its class.
Related Networking Calculators
🧮

Missing a Networking Calculator?

Can’t find the networking tool you need? Tell us — we build new ones every week.