Free tool

IPv4 Address Guide

Check any IPv4 address: its class, whether it is public or private, and what it is used for.

Check an address

Try: 10.1.1.1, 172.20.5.9, 8.8.8.8, 169.254.3.4, 100.64.0.1

Result

The five classes

Early IPv4 split addresses into classes by the first number (octet). Today networks use CIDR prefixes instead (see the subnet calculator), but the classes are still taught in every networking course, including Cisco CCNA.

ClassFirst octetDefault maskNetworksHosts per networkTypical use
A1 to 126255.0.0.0 (/8)12616,777,214Very large networks
B128 to 191255.255.0.0 (/16)16,38465,534Medium to large networks
C192 to 223255.255.255.0 (/24)2,097,152254Small networks
D224 to 239Not used--Multicast (one to many)
E240 to 255Not used--Reserved for experiments

The whole 127.0.0.0 block is kept for loopback, which is why Class A stops at 126 in the usual tables.

Private ranges

Private addresses are for use inside your own network. They are not routed on the public internet, so many homes and offices can reuse the same ones. A router with NAT lets private devices reach the internet through one public address. These three blocks are defined in RFC 1918.

RangeCIDRAddressesClass it falls in
10.0.0.0 to 10.255.255.25510.0.0.0/816,777,216A
172.16.0.0 to 172.31.255.255172.16.0.0/121,048,576B
192.168.0.0 to 192.168.255.255192.168.0.0/1665,536C

Other special ranges

RangeNameMeaning
127.0.0.0/8LoopbackThe device talking to itself. 127.0.0.1 is "localhost". (RFC 1122)
169.254.0.0/16Link-local (APIPA)A device gives itself this address when it cannot find a DHCP server. (RFC 3927)
100.64.0.0/10Shared address spaceUsed by internet providers for carrier-grade NAT. (RFC 6598)
0.0.0.0/8This network0.0.0.0 means "any address" or "not yet assigned".
192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24DocumentationSafe examples for books and guides. (RFC 5737)
224.0.0.0/4MulticastOne sender, many receivers.
255.255.255.255Limited broadcastEveryone on the local network.

Public addresses

Everything else is a public address. Public addresses are handed out through regional registries and internet providers, and each one is unique on the internet.

Reference: the IANA registry of special-purpose IPv4 addresses, and RFC 1918 and RFC 1122 at the IETF (rfc-editor.org). Please confirm important designs against those originals.

Use this guide for learning and planning. Always confirm important designs against the original standards linked above.