You don't have javascript enabled. Please enable javascript to use this website.

IP Class Checker

Identify the class of any IPv4 address — returns Class A, B, C, D, or E with default subnet mask and CIDR prefix.
IPv4 Address:
Find IP Class Clear

IPv4 Class Checker — Identify Any IPv4 Address Class

IPv4 class checking identifies which of the five classful address categories — A, B, C, D, or E — an IPv4 address belongs to, based on the value of its first octet. The classification system was defined in RFC 791 (1981) and determined the default network boundaries and subnet masks before Classless Inter-Domain Routing (CIDR) replaced it in 1993 (RFC 4632). Classes A, B, and C are unicast and carry default masks of /8, /16, and /24 respectively; Class D is reserved for multicast; Class E is reserved for experimental use.

IPv4 Address Classes Reference — Class A through E

The table below shows the five IPv4 address classes, their first octet ranges, default subnet masks, CIDR prefixes, and maximum unicast host counts, as defined in RFC 791. Class D and Class E have no subnet mask — they are not used for host addressing.

Class First Octet Range IP Range Default Mask CIDR Max Hosts / Network Purpose
A 1 – 126 1.0.0.0 – 126.255.255.255 255.0.0.0 /8 16,777,214 Large unicast networks
A (Loopback) 127 127.0.0.0 – 127.255.255.255 255.0.0.0 /8 — Loopback only — not routed (RFC 1122)
B 128 – 191 128.0.0.0 – 191.255.255.255 255.255.0.0 /16 65,534 Medium unicast networks
C 192 – 223 192.0.0.0 – 223.255.255.255 255.255.255.0 /24 254 Small unicast networks
D 224 – 239 224.0.0.0 – 239.255.255.255 N/A N/A N/A Multicast groups (RFC 1112)
E 240 – 255 240.0.0.0 – 255.255.255.255 N/A N/A N/A Reserved / Experimental (RFC 1112)

How to Identify an IPv4 Class from Binary

Each IPv4 address class is encoded in the leading bits of its first octet. A router or host can determine the class in a single operation by inspecting those bits — no lookup table is required. This binary identification method is the basis of the classful routing logic defined in RFC 791.

Class Leading Bits Binary Pattern (First Octet) First Octet Decimal Range
A 0 0xxxxxxx 1 – 126
B 10 10xxxxxx 128 – 191
C 110 110xxxxx 192 – 223
D 1110 1110xxxx 224 – 239
E 1111 1111xxxx 240 – 255
More Tools

How to Use the IP Class Checker

Enter any IPv4 address to classify it instantly per RFC 791 classful addressing rules.

1

Enter an IPv4 Address

Type or paste a valid IPv4 address into the input field (e.g. 192.168.1.1 or 8.8.8.8). For bulk analysis, switch to Bulk mode and enter one address per line, up to any quantity.
2

Click Find IP Class

Click the Find IP Class button. Classification runs instantly in your browser — no data is sent to any server.
3

Read the Class and Subnet Mask

The result shows the IP class (A, B, C, D, or E), the full class range, default subnet mask, CIDR prefix, and the binary representation of the first octet.
4

Check Purpose and Private Range Context

The Purpose field describes how that class was used — unicast networking, multicast, or experimental. Cross-reference with the Public or Private IP Checker to confirm whether a Class A, B, or C address falls within RFC 1918 private space.

Technical Details — Classful IPv4 Addressing per RFC 791

IPv4 classful addressing, defined in RFC 791 (September 1981), divides the 32-bit address space into five classes by inspecting the leading bits of the first octet. Class A (leading bit 0) allocates 8 bits to the network identifier and 24 bits to host addressing, yielding up to 16,777,214 usable hosts per network. Class B (leading bits 10) allocates 16 bits to each, supporting up to 65,534 hosts. Class C (leading bits 110) allocates 24 network bits and 8 host bits, supporting 254 hosts per network.

The gap at first octet 127 is intentional — RFC 1122 (Section 3.2.1.3) reserves the entire 127.0.0.0/8 block for loopback. Packets addressed to any 127.x.x.x address are processed locally and never forwarded. RFC 1918 reserves three blocks within Classes A, B, and C for private use: 10.0.0.0/8 (Class A), 172.16.0.0/12 (Class B range), and 192.168.0.0/16 (Class C). CIDR (RFC 4632, 1993) replaced classful routing with variable-length prefix lengths, but the class system remains foundational to networking certification exams (CCNA, CompTIA Network+) and is directly referenced in legacy network documentation and routing configurations.

Common Uses for IPv4 Class Identification

Legacy network documentation. A network administrator reviewing a legacy routing table from the early 1990s encounters entries in the 172.20.x.x range and needs to confirm the classful boundary. The IP Class Checker identifies these as Class B addresses (default mask /16, up to 65,534 hosts), confirming they fall within RFC 1918 private space and that the default boundary starts at 172.0.0.0 — not 172.16.0.0, which is a CIDR refinement.

Certification exam study. A student preparing for the CompTIA Network+ exam enters a series of test addresses — 10.0.0.1 (Class A), 172.16.0.1 (Class B), 192.168.1.1 (Class C), 224.0.0.5 (Class D), and 240.0.0.1 (Class E) — to verify the expected class, default mask, and binary leading-bit pattern against the exam material. Bulk mode classifies all five in a single operation, with the subnet mask column confirming the default for each.

Firewall log analysis. A security analyst reviewing firewall logs encounters inbound traffic sourced from 243.0.0.x. The IP Class Checker identifies this as Class E (Reserved/Experimental) — addresses in this range are not publicly assigned to any organization and should never appear as legitimate source addresses on a production network. The result flags the traffic for investigation.


Frequently Asked Questions

What are the five IPv4 address classes?
IPv4 classful addressing defines five categories based on the first octet value. Class A (1–126) supports large networks with default mask /8 and up to 16,777,214 hosts per network. Class B (128–191) supports medium networks with /16 and up to 65,534 hosts. Class C (192–223) supports small networks with /24 and up to 254 hosts. Class D (224–239) is reserved for multicast groups (RFC 1112). Class E (240–255) is reserved for experimental use and is not publicly routed.
How is the class of an IPv4 address determined?
An IPv4 address class is determined entirely by the leading bits of the first octet (the leftmost 8 bits of the 32-bit address), as defined in RFC 791. Class A starts with binary 0 (octet 1–126), Class B with 10 (128–191), Class C with 110 (192–223), Class D with 1110 (224–239), and Class E with 1111 (240–255). No routing table or database lookup is needed — the class is intrinsic to the address value itself.
Why does Class A end at 126 and not 127?
The entire 127.0.0.0/8 block is reserved for loopback per RFC 1122, Section 3.2.1.3. Although 127.x.x.x matches the Class A leading-bit pattern (first octet 0–127), this block is a special reservation — packets addressed to any 127.x.x.x address are handled locally by the host and never forwarded to the network. The most commonly used address in this block is 127.0.0.1, which always refers to the local machine regardless of network configuration.
What is the difference between classful and classless (CIDR) addressing?
Classful addressing assigns a fixed default subnet mask based solely on the address class — /8 for Class A, /16 for Class B, /24 for Class C. CIDR (Classless Inter-Domain Routing), introduced by RFC 1519 in 1993 and updated by RFC 4632, replaced this with variable-length subnet masks (VLSM) that allow any prefix length (e.g., /19 or /27) regardless of the first octet. Modern networks use CIDR exclusively; IPv4 classes remain relevant for certification study (CCNA, CompTIA Network+) and legacy network documentation.
Do Class D and Class E addresses have a default subnet mask?
Class D and Class E addresses have no default subnet mask. Class D (224.0.0.0–239.255.255.255, RFC 1112) is reserved for IP multicast groups and has no network/host boundary division. Class E (240.0.0.0–255.255.255.255) is reserved for experimental use and is not assigned to any public network. Neither class is used for unicast host addressing, so the concept of a default subnet mask does not apply.
Do you store the IP addresses I enter?
No. IPv4 class checking runs entirely in the browser using JavaScript. No address data is transmitted to any server, stored, or logged at any point. The tool has no server-side component for classification — results are computed locally by your browser from the moment you click Find IP Class.

Related Guides

Guide What Is IPv4? Address Structure, Classes, and the Road to Exhaustion
a complete guide to the IPv4 protocol, address format, classful history, and why CIDR was necessary.
Guide What Is an IP Address? How IPv4 and IPv6 Work
covers how IP addresses are assigned, structured, and used by routers and hosts.
Guide Public vs Private IP Addresses — RFC 1918 and Why It Matters
explains the private address ranges within Classes A, B, and C and how NAT uses them.