What is an IP class and type detector?
Every IP address has a class and a type. The class (A to E) comes from the first number of an IPv4 address and goes back to the early internet. The type tells you what the address is for: a normal public address, a private address inside a home or office network, a loopback address, a multicast address, and so on.
This tool reads any list of IPv4 and IPv6 addresses and tells you both, so you can tell at a glance if an address is reachable from the internet and which block it belongs to.
How to use the IP Class and Type Detector
Type or paste the addresses into Enter IP Addresses, one per line. IPv4 and IPv6 can be mixed. An address with a prefix, like 10.0.0.0/8, or with a port, like 192.0.2.1:8080, is fine too. Click Copy Example if you want a sample to paste in and try.
The result appears below the form. From then on it follows your changes, so you can add or remove an address and watch the table update. An entry that is not a valid IP address is marked in red instead of stopping the check.
The tiles at the top count your public, private, special and invalid addresses. In the table, IP Type says what each address is, and Class gives the IPv4 class. Internet Routable says if the address can be reached over the public internet, and Block shows the range it belongs to.
Tick or untick boxes in Show Columns to choose what you see. On a phone or tablet that row slides sideways. The IP Address and IP Type columns are always shown.
Copy puts the whole table on your clipboard and Download saves it as a CSV file, using only the columns you ticked. Clear All empties the box and hides the result.
IPv4 address classes
The class is decided by the first number (octet) of the address:
| Class | Address range | Default mask | Usable hosts per network | Use |
|---|---|---|---|---|
| A | 1.0.0.0 – 126.255.255.255 | 255.0.0.0 (/8) | 16,777,214 | Very large networks |
| B | 128.0.0.0 – 191.255.255.255 | 255.255.0.0 (/16) | 65,534 | Medium to large networks |
| C | 192.0.0.0 – 223.255.255.255 | 255.255.255.0 (/24) | 254 | Small networks |
| D | 224.0.0.0 – 239.255.255.255 | – | – | Multicast |
| E | 240.0.0.0 – 255.255.255.255 | – | – | Reserved for future use |
The 127.0.0.0/8 block sits between class A and class B. It is reserved for loopback, so class A stops at 126. Classes are no longer used for routing, because the internet moved to CIDR, but they still appear in exams and in the default masks some systems suggest.
IPv4 address types
Besides the class, an address can belong to a special block. Anything that is not in one of these blocks is a normal public address:
| Block | Type | Defined in |
|---|---|---|
| 10.0.0.0/8 | Private | RFC 1918 |
| 172.16.0.0/12 | Private | RFC 1918 |
| 192.168.0.0/16 | Private | RFC 1918 |
| 100.64.0.0/10 | Shared (CGNAT) | RFC 6598 |
| 127.0.0.0/8 | Loopback | RFC 1122 |
| 169.254.0.0/16 | Link-local (APIPA) | RFC 3927 |
| 0.0.0.0/8 | This network | RFC 1122 |
| 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 | Documentation (TEST-NET) | RFC 5737 |
| 198.18.0.0/15 | Benchmarking | RFC 2544 |
| 224.0.0.0/4 | Multicast | RFC 5771 |
| 240.0.0.0/4 | Reserved (Class E) | RFC 1112 |
| 255.255.255.255/32 | Limited broadcast | RFC 919 |
IPv6 address types
IPv6 has no classes. The type comes from the first bits of the address:
| Block | Type | Meaning |
|---|---|---|
| 2000::/3 | Public (Global unicast) | Routable on the internet |
| fc00::/7 | Private (Unique local) | Like private IPv4 space |
| fe80::/10 | Link-local | Only valid on the local link |
| ::1/128 | Loopback | This device |
| ::/128 | Unspecified | No address yet |
| ff00::/8 | Multicast | Group address |
| 2001:db8::/32 | Documentation | Used in examples |
| ::ffff:0:0/96 | IPv4-mapped | An IPv4 address written as IPv6 |
When it helps
Use it to check whether an address in a log is internal or external, to sort a list of addresses before you write firewall rules, to find private addresses that leaked into a public config, and to check your answers when you study for CCNA or Network+.
To work out the network and broadcast address of an IPv4 subnet, use the IPv4 Subnet Calculator. To pull addresses out of messy text first, use the IP List Cleaner & Refanger.