IP Address Class Checker

See which class an IPv4 address belongs to, and why.
Try:
C

192.168.1.10 is a Class C address: its first octet 192 is 11000000 in binary, which starts with 110.

Small networks

11000000192101010001680000000110000101010

Class bits Network (default mask) Host First 3 bits 110 → class C · default mask /24: 24 network bits, 8 host bits

Private range 192.168.0.0/16 (RFC 1918): 256 class C blocks, the usual home network.

ClassC (first octet 192 – 223)
Leading bits110
Default subnet mask255.255.255.0 (/24)
Classful network192.168.1.0/24
Networks in the class2,097,152
Hosts per network254
Class range192.0.0.0 – 223.255.255.255

Classes are history: since CIDR (1993) this address can sit in a network of any size, not just a /24. Open 192.168.1.10/24 in the subnet calculator →

Runs in your browser: nothing is sent to our server.

Practice: IP Class Quiz

Ten addresses, one at a time: pick the class, see why. Includes the traps exams like (127, 0, 255.255.255.255 and the edges 126/128, 191/192, 223/224). Nothing is saved.

Check a List of Addresses

IP Address Classes: The Table

IPv4 addresses were divided into five classes by their first bits: Class A starts with 0 (1–126), B with 10 (128–191), C with 110 (192–223), D with 1110 (multicast, 224–239) and E with 1111 (240–255). Classes were replaced by CIDR in 1993, but exams and old docs still use them.

Each class has a first-octet range, a default mask and a size.

ClassFirst octetLeading bitsDefault maskNetworksHosts per networkUse
A1 – 1260255.0.0.0 (/8)12616,777,214Large networks
B128 – 19110255.255.0.0 (/16)16,38465,534Medium networks
C192 – 223110255.255.255.0 (/24)2,097,152254Small networks
D224 – 2391110none——Multicast
E240 – 2551111none——Reserved (experimental)

Hosts per network = 2host bits − 2 (the network and broadcast addresses). Class A counts 126 networks because 0 and 127 are reserved.

IPv4 classes by their leading bits: 0 for A, 10 for B, 110 for C, 1110 for D and 1111 for E, with first-octet ranges; 192.0.2.1 starts with 110, so it is class C
The class is written in the first bits of the first byte.

Class A IP address

First octet 1 to 126, default mask 255.0.0.0 (/8): the first octet is the network, the other three the host. Only 126 such networks exist, each with 16.7 million addresses; they went to early internet players (for example 17.0.0.0/8 to Apple). Private block: 10.0.0.0/8, widely used in companies and clouds.

Class B IP address

First octet 128 to 191, default mask 255.255.0.0 (/16): 16,384 networks of 65,534 hosts, given to universities and large companies. Private block: 172.16.0.0/12 (172.16 to 172.31), the default in Docker and many corporate networks. 169.254.0.0/16, the link-local range, also sits in class B.

Class C IP address

First octet 192 to 223, default mask 255.255.255.0 (/24): over 2 million networks of 254 hosts, the classic small-office size. Private block: 192.168.0.0/16, the range almost every home router uses (192.168.0.1, 192.168.1.1).

How to Find the Class of an IP Address

Look at the first octet, or its first bits: 0 → A, 10 → B, 110 → C, 1110 → D, 1111 → E.

  1. Take the first octet: in 172.20.5.9 it's 172.
  2. Compare with the ranges: 172 is between 128 and 191, so class B. Or write it in binary: 172 = 10101100, which starts with 10, so class B.
  3. Apply the default mask: class B → 255.255.0.0, so the classful network is 172.20.0.0/16.
  4. Check the special cases: 172.20 is inside 172.16.0.0/12, so it's also a private address.

Why the bits? Each class adds one more leading 1: A = 0…, B = 10…, C = 110…. A router in 1981 could read the class from the first few bits without a table. Converting octets to binary is easy with the IP to binary converter.

What Is Classful Addressing (and Why CIDR Replaced It)?

Classful addressing gave out only /8, /16 or /24 networks, wasting addresses; CIDR (1993) allows any prefix length.

An organization needing about 2,000 addresses: classful addressing gives it a whole class B of 65,534 hosts, wasting about 63,500; CIDR gives it a /21 of 2,046 hosts that fits
Three sizes only: most networks got far too many or far too few addresses.

Classful addressing (RFC 791, 1981) fixed the network size by the first bits. A company needing 2,000 addresses was too big for a class C and got a class B, leaving 63,000 addresses unused, while routing tables filled with thousands of class C entries. CIDR (RFC 1518 and 1519, 1993; today RFC 4632) dropped the classes: a network is written with its prefix length, like 198.51.100.0/22, and can have any size. Subnet masks and private ranges still follow the old class boundaries in many places, which is why classes are still taught. Plan real networks with the subnet calculator.

Special Addresses: 0, 127 and 255

0.x and 127.x are reserved (127 is loopback) and 255.255.255.255 is broadcast; they belong to no usable class.

Address or rangeBits sayWhat it really is
0.0.0.0/8Class A"This network"; 0.0.0.0 means "any address" on a server or "no address yet" during DHCP
127.0.0.0/8Class ALoopback: your own device (127.0.0.1 = localhost)
169.254.0.0/16Class BLink-local: self-assigned when DHCP fails
224.0.0.0/24Class DLocal multicast for routing protocols (224.0.0.5 OSPF, 224.0.0.9 RIP)
255.255.255.255Class ELimited broadcast: every device on the local network

How This Tool Works

ItemDetail
Where it runsIn your browser; addresses are not sent to our server or stored.
ClassFrom the first octet's leading bits (RFC 791).
Special ranges noted0/8, 127/8, private (RFC 1918), 169.254/16, 100.64/10 (RFC 6598), 224.0.0/24, 255.255.255.255.
InputDotted decimal only; numbers with leading zeros (like 010) are refused because some systems read them as octal.
Shareable link/ip-class-checker?ip=172.16.0.1 opens with that address.
Last verified10 November 2026

Frequently Asked Questions

What are the 5 classes of IP addresses?
Class A (first octet 1–126), class B (128–191), class C (192–223), class D (224–239, multicast) and class E (240–255, reserved). 0 and 127 have class A bits but are special: "this network" and loopback.
How do I know which class an IP address belongs to?
Look at the first octet, or at its first bits in binary: 0 is class A, 10 is B, 110 is C, 1110 is D and 1111 is E. Type the address above to see the deciding bits highlighted.
Is 192.168.1.1 a class C address?
Yes. Its first octet, 192, is 11000000 in binary and starts with 110, so it's class C. It's also in the private range 192.168.0.0/16, used for home networks.
Why is 127 not in class A?
By its bits (01111111) it is class A, but 127.0.0.0/8 is reserved for loopback: an address that always means your own device. That's why class A's usable range is usually given as 1–126.
Are IP address classes still used?
Not for routing: CIDR replaced them in 1993, and a network can now be any size (/21, /27…). Classes remain in exams (CCNA, CompTIA Network+), old documentation and some default masks that devices suggest.
What is a "C-class IP" in SEO hosting?
SEO slang, not the real class C. Hosting sellers call two sites "same C-class" when their addresses share the first three numbers, that is the same /24 block (203.0.113.5 and 203.0.113.80). Real class C is set by the first number alone (192 to 223), so a "C-class" in the SEO sense can be in class A, B or C. Buying separate /24 blocks to help rankings is an old SEO idea that network engineers were already calling a rumour in 2009.
What is the default subnet mask of class C?
255.255.255.0 (/24), for 254 hosts. Class A's is 255.0.0.0 (/8) and class B's 255.255.0.0 (/16). Classes D and E have no default mask.

Next steps

Related Tools

Subnet Calculator
Network, broadcast, mask and host range of any IPv4 subnet.
IP to Binary Converter
An IP address in binary, bit by bit, and back.
Public or Private IP Checker
Public, private or special-use: many addresses at once.
IP CIDR Checker
Check a list of IPs against CIDR blocks.
IP Address Validator
Is it a valid IPv4 or IPv6 address? Many at once.

Related Guides

Guide What is IPv4?
how 32-bit addresses, masks and NAT work, and where classes fit.
Guide Public vs private IP
the private ranges inside classes A, B and C, and why your router uses them.