Skip to content
SubnettingCalculator
IPv4 Detecting…
IPv6 Detecting…

IP Class & Type Detector – Check IPv4 Class and IP Type

Use this free IP class and type detector to find out if an IP address is public or private, and which class it belongs to, from A to E. Paste one address or a whole list of IPv4 and IPv6 addresses, and see the type, the matching block and whether the address is routable on the internet.

IP Address Class and Type Checker

Enter the IP addresses you want to check, one per line.

IP Addresses to Check

Example Input:
8.8.8.8 10.20.30.40 192.168.1.1 127.0.0.1 169.254.10.5 224.0.0.251 2001:4860:4860::8888 fe80::1

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

1Enter your addresses

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.

2Click Detect IP Type

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.

3Read the result

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.

4Choose the columns

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.

5Copy, download or start again

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:

ClassAddress rangeDefault maskUsable hosts per networkUse
A1.0.0.0 – 126.255.255.255255.0.0.0 (/8)16,777,214Very large networks
B128.0.0.0 – 191.255.255.255255.255.0.0 (/16)65,534Medium to large networks
C192.0.0.0 – 223.255.255.255255.255.255.0 (/24)254Small networks
D224.0.0.0 – 239.255.255.255––Multicast
E240.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:

BlockTypeDefined in
10.0.0.0/8PrivateRFC 1918
172.16.0.0/12PrivateRFC 1918
192.168.0.0/16PrivateRFC 1918
100.64.0.0/10Shared (CGNAT)RFC 6598
127.0.0.0/8LoopbackRFC 1122
169.254.0.0/16Link-local (APIPA)RFC 3927
0.0.0.0/8This networkRFC 1122
192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24Documentation (TEST-NET)RFC 5737
198.18.0.0/15BenchmarkingRFC 2544
224.0.0.0/4MulticastRFC 5771
240.0.0.0/4Reserved (Class E)RFC 1112
255.255.255.255/32Limited broadcastRFC 919

IPv6 address types

IPv6 has no classes. The type comes from the first bits of the address:

BlockTypeMeaning
2000::/3Public (Global unicast)Routable on the internet
fc00::/7Private (Unique local)Like private IPv4 space
fe80::/10Link-localOnly valid on the local link
::1/128LoopbackThis device
::/128UnspecifiedNo address yet
ff00::/8MulticastGroup address
2001:db8::/32DocumentationUsed in examples
::ffff:0:0/96IPv4-mappedAn 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.

Frequently asked questions

How do I know if an IP address is private or public?

An IPv4 address is private if it falls in 10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16 (RFC 1918). Most other addresses are public, unless they belong to a special range such as loopback, link-local or multicast. Paste the address into the detector and it tells you which one it is.

What are the IPv4 address classes?

Class A is 1.0.0.0 to 126.255.255.255, class B is 128.0.0.0 to 191.255.255.255, class C is 192.0.0.0 to 223.255.255.255, class D (multicast) is 224.0.0.0 to 239.255.255.255 and class E (reserved) is 240.0.0.0 to 255.255.255.255.

Why does 127.0.0.1 have no class?

The whole 127.0.0.0/8 block is reserved for loopback, so it is not counted in class A. That is why class A stops at 126. The same goes for 0.0.0.0/8, which means "this network".

Are IP classes still used?

Not for routing. Since 1993 the internet uses CIDR, which ignores classes. Classes still show up in exams, in old documentation and in the default masks some systems suggest, so it is useful to know them.

What is the 100.64.0.0/10 range?

It is shared address space for carrier-grade NAT (RFC 6598). Internet providers use it between their own equipment and their customers. It is not private in the RFC 1918 sense, and it is not routed on the public internet.

What is 169.254.x.x?

A link-local address (APIPA). A device gives itself one when it asks for an address by DHCP and gets no answer. If you see it on a computer, the DHCP server was not reachable.

Can it check IPv6 addresses?

Yes. It tells you if an IPv6 address is global unicast (public), unique local (private), link-local, loopback, multicast, documentation, IPv4-mapped and so on. IPv6 has no classes, so the Class column shows a dash.

Which input formats work?

One address per line, or separated by commas, spaces or semicolons. IPv4, IPv6, addresses with a prefix such as 10.0.0.0/8, [2001:db8::1]:443 and 192.0.2.1:8080 are all read. Lines that start with # are ignored.

What does Internet Routable mean?

It tells you whether the address can be reached over the public internet. Only public addresses are routable. Private, loopback, link-local, multicast, documentation and reserved addresses are not.

Is anything I enter sent to your server?

No. The check runs in your browser, so the addresses you enter stay on your device.