Find your IP

IP address classes

Before 1993 every IPv4 address belonged to a class that fixed how big its network was. Classes are obsolete, but their vocabulary and their ranges are everywhere, so here is what they were and where they still show up.

In this guide
Short answer

IPv4 addresses were originally divided into five classes by their leading bits: Class A (0.0.0.0–127.255.255.255, mask 255.0.0.0), Class B (128.0.0.0–191.255.255.255, mask 255.255.0.0), Class C (192.0.0.0–223.255.255.255, mask 255.255.255.0), Class D (224.0.0.0–239.255.255.255, multicast) and Class E (240.0.0.0–255.255.255.255, reserved). CIDR replaced the fixed sizes in 1993, so today the prefix length, not the first number, says how big a network is.

Class A, B and C

The original Internet Protocol specification from 1981 split the 32-bit address into a network part and a host part, and used the first bits of the address to say where the split was. A router could tell a network's size from the address alone, with no mask to carry around.

The five IPv4 classes identified by their leading bits: Class A starts with 0 and uses 8 network bits, Class B starts with 10 and uses 16, Class C starts with 110 and uses 24, Class D starts with 1110 for multicast, Class E starts with 1111 and is reserved.Class A0 + 7 net bits24 host bits (16.7 million hosts)Class B10 + 14 net bits16 host bits (65,534 hosts)Class C110 + 21 net bits8 host bits (254)Class D1110 + 28 bits: multicast groupClass E1111 + 28 bits: reserved
A router only had to look at the first bits of an address to know how much of it was the network. That simplicity is also why the scheme ran out of room.
ClassLeading bitsFirst octetAddress rangeDefault maskNetworksHosts per network
A00–1270.0.0.0 – 127.255.255.255255.0.0.0 (/8)128 (126 usable)16,777,214
B10128–191128.0.0.0 – 191.255.255.255255.255.0.0 (/16)16,38465,534
C110192–223192.0.0.0 – 223.255.255.255255.255.255.0 (/24)2,097,152254

Two Class A networks were never handed out: network 0 is reserved, and 127 is the loopback block that gives every computer 127.0.0.1. The rest went, mostly in the 1980s and early 1990s, to the US government, universities and the large computer companies of the day, each receiving sixteen million addresses whether it needed them or not.

The three sizes had nothing in between. An organization with 300 computers was too big for a Class C (254 hosts) and got a Class B (65,534), wasting more than 99% of it. That mismatch, multiplied across thousands of organizations, is what exhausted the Class B space by the early 1990s and forced the change described below.

The private ranges that every home network uses today were defined in 1996 in classful terms, and the vocabulary stuck: 10.0.0.0/8 is a single Class A, 172.16.0.0/12 is sixteen consecutive Class Bs, and 192.168.0.0/16 is 256 consecutive Class Cs. That is why your router's 192.168.1.0/24 network is so often called "a Class C" even though no class has governed it for thirty years. Public vs private IP addresses covers what those ranges mean in practice.

Class D and E

The 1981 specification left the addresses beginning with 111 undefined, as an "escape to extended addressing mode". They were later split in two.

ClassLeading bitsFirst octetAddress rangePurpose
D1110224–239224.0.0.0 – 239.255.255.255Multicast: one sender, many receivers
E1111240–255240.0.0.0 – 255.255.255.255Reserved for future or experimental use

Class D addresses are not assigned to devices. They name groups: a packet sent to 224.0.0.251 is delivered to every device that has joined that group, which is how Bonjour and Chromecast discovery work on your Wi-Fi (that address is mDNS). Routing protocols use others in the 224.0.0.x range; IPTV systems use blocks higher up. You will see Class D addresses in a packet capture and in your router's IGMP settings, never on an interface.

Class E is the strange one: 268 million addresses, about one sixteenth of the whole space, that have never been usable. The reserved status is hard-coded into operating systems and routers, which refuse to accept a 240.x.x.x address, and proposals to reclaim the block have failed because fixing every device on the internet costs more than the addresses are worth. One address in it is special on its own: 255.255.255.255 is the limited broadcast address, meaning "every device on this local network", which is what a device uses to find a DHCP server before it has an address at all.

Why CIDR replaced classes

By 1992 two things were breaking at once. The Class B space was running out, because it was the only sensible size for most organizations. And the routing table in the internet's core was growing faster than routers' memory, because every Class C handed out to a small organization was a separate entry that every backbone router had to carry.

Classless Inter-Domain Routing, introduced in 1993, fixed both by making the network size explicit instead of implied. An address now travels with a prefix length, written 203.0.113.0/24 or as a subnet mask, and the prefix can be any length from /0 to /32. The organization with 300 computers gets a /23 (510 hosts), not a /16. A provider that holds a large block announces one route for the whole thing, and the core routers never see the individual customers inside it. CIDR notation explained covers how to read and calculate prefixes, and the subnet calculator does the arithmetic.

The change was invisible to most users because the old default masks are still valid prefixes: a former Class C is simply a /24 now. What disappeared is the rule that the first bits decide the size. Today a former Class A block is typically carved into thousands of smaller blocks owned by different networks, and neighboring former Class C ranges are aggregated into something larger. The IP lookup shows the actual prefix an address belongs to, which is the only size that means anything now.

Where classes still matter

Nothing on the public internet routes by class any more, but the concept survives in four places.

  • Exams and textbooks. Networking certifications still ask for the ranges and default masks, partly as history and partly because the multicast and reserved ranges are still real.
  • Software defaults. When you type a static IPv4 address into Windows' adapter settings, it fills in the subnet mask from the first octet: 255.0.0.0 for 10.x.x.x, 255.255.0.0 for 172.x.x.x, 255.255.255.0 for 192.x.x.x. The guess is often wrong for 10.x networks, which are usually subnetted, and typing the right mask is on you. Some routers and older routing protocols (RIP version 1) make the same assumption.
  • Everyday vocabulary. "A Class C" is shorthand for a /24 among people who manage networks, and "a Class B" for a /16. Harmless, as long as nobody configures a mask from it.
  • The ranges that never changed. Class D is still multicast and Class E is still unusable. If a device shows an address starting with 224 or higher, something is misconfigured.

For anything you configure yourself, use the prefix. Find your current address and mask with the local IP tool or your device's network settings, and treat the first octet as a hint about which private range you are in, nothing more.

Test it now

Cloudflare edge
IP websites see216.73.216.52
LocationColumbus, United States
Internet providerAnthropic, PBC

Read at the Cloudflare edge from this request. The homepage adds your provider, network type and the VPN, DNS and WebRTC checks.

Show details

Questions

What are the different classes of IP addresses?

Five: Class A (first octet 0–127, default mask 255.0.0.0), Class B (128–191, mask 255.255.0.0), Class C (192–223, mask 255.255.255.0), Class D (224–239, used for multicast groups rather than devices) and Class E (240–255, reserved and unusable). The first three were for ordinary networks of different sizes. Since 1993 the prefix length has replaced the class as the thing that defines a network's size.

What are the IPv4 address classes used for today?

Mostly as vocabulary and history. Routing uses prefix lengths, not classes, so a block beginning with 12 or 192 can be any size. The two ranges that keep their original role are Class D, which still carries multicast traffic such as local device discovery and IPTV, and Class E, which is still reserved. Some software, Windows included, still guesses a default subnet mask from the class when you type a static address.

Is 192.168 a Class C address?

By the old rules, yes: any first octet from 192 to 223 was Class C, and 192.168.0.0/16 was defined in 1996 as a block of 256 consecutive Class C networks reserved for private use. Under today's rules it is simply a /16 private range, and your router carves one /24 out of it, usually 192.168.0.0/24 or 192.168.1.0/24, which people still call "a Class C" out of habit.

What is a Class C IP address?

An address whose first octet is 192 to 223, which under classful addressing meant a network with a 24-bit network part and 8-bit host part: 254 usable hosts and the default mask 255.255.255.0. In modern terms that is a /24. The term now mostly means "a /24-sized block", and the 192.168.x.x addresses on home networks are the Class C addresses most people meet.

What is the range of public and private IP addresses?

Private addresses come from three blocks: 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255, and 192.168.0.0 to 192.168.255.255. They work only inside a local network and are never routed on the internet. Everything else in the unicast space, apart from loopback (127.x), link-local (169.254.x), the carrier-grade NAT block (100.64.0.0/10) and a few reserved ranges, is public and globally reachable.

Sources and further reading

  1. RFC 791: Internet Protocol, section 3.2 Addressing
  2. RFC 1918: Address Allocation for Private Internets
  3. RFC 4632: Classless Inter-domain Routing (CIDR)
CheckMyIP Team
Network engineers and privacy researchers