What Is IPv4?

How IPv4 addresses work, with your own address decoded.

IPv4 (Internet Protocol version 4) identifies devices with 32-bit addresses written as four numbers from 0 to 255, like 192.168.1.1. That allows about 4.3 billion addresses, which ran out in 2011, so most homes share one public IPv4 through NAT.

Reading your IP address… Your public IP is also on the homepage.

What Is an IPv4 Address?

Four 8-bit numbers (octets) separated by dots; the first part names the network, the rest the device.

Diagram of the IPv4 address 203.0.113.45: four 8-bit octets in decimal and binary, with the /24 network part and the host part
32 bits in four octets; with a /24 mask the first three octets are the network and the last one the host.

A computer sees an IPv4 address as one 32-bit number; people write it as four octets in decimal, each from 0 (00000000) to 255 (11111111). The subnet mask (or prefix length, like /24) says where the network part ends: in 192.168.1.20/24 the network is 192.168.1.0 and the device is number 20. Routers only look at the network part to forward a packet; the last router delivers it to the device.

IPv4 itself is "best effort": it addresses and routes packets but doesn't promise they arrive. TCP, on top of it, handles order and retransmission. Plan networks and masks with the subnet calculator.

IPv4 Converter: Binary, Hex and More

Try:

Binary11000000.10101000.00000001.00000001
Hexadecimal0xC0A80101 (c0.a8.01.01)
32-bit integer3,232,235,777 (3232235777)
Reverse DNS name1.1.168.192.in-addr.arpa
Old classC · see the deciding bits
RangePrivate (RFC 1918)
Its /24192.168.1.0/24 · open in the subnet calculator

Runs in your browser; what you type is not sent to our server.

How Many IPv4 Addresses Are There?

232 = 4,294,967,296, of which about 593 million are reserved (private, multicast, documentation…), leaving about 3.7 billion public addresses.

RangeAddressesUsed for
224.0.0.0/4268,435,456Multicast (old class D)
240.0.0.0/4268,435,456Reserved (old class E), incl. 255.255.255.255 broadcast
0.0.0.0/816,777,216"This network"
10.0.0.0/816,777,216Private (RFC 1918)
127.0.0.0/816,777,216Loopback (127.0.0.1 = this device)
100.64.0.0/104,194,304Carrier-grade NAT (RFC 6598)
172.16.0.0/121,048,576Private (RFC 1918)
198.18.0.0/15131,072Network benchmarking (RFC 2544)
169.254.0.0/1665,536Link-local (no DHCP)
192.168.0.0/1665,536Private (RFC 1918), most home networks
192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/243 × 256Documentation and examples (RFC 5737)
192.0.0.0/24, 192.88.99.0/242 × 256Protocol assignments, old 6to4 relay
Total reserved592,708,864About 13.8% of the space

The full list is IANA's IPv4 special-purpose address registry (RFC 6890). Check any address with the public or private IP checker or read public vs private IP.

IPv4 Address Classes (A–E)

Classes split addresses by their first bits; they were replaced by CIDR in 1993 but still appear in exams and old docs.

ClassFirst octetLeading bitsDefault maskUse
A1 – 1260/8 (255.0.0.0)Large networks
B128 – 19110/16 (255.255.0.0)Medium networks
C192 – 223110/24 (255.255.255.0)Small networks
D224 – 2391110—Multicast
E240 – 2551111—Reserved

Since CIDR a network can be any size (/22, /27…), whatever its first octet. See the deciding bits for any address, and practise, with the IP address class checker.

Why IPv4 Ran Out, and What NAT Does

IANA handed out its last blocks on 3 February 2011; NAT lets many devices share one public IPv4.

RegistryRegionRan out of its free pool
IANAWorld (gives blocks to the registries)3 February 2011
APNICAsia-PacificApril 2011
RIPE NCCEurope, Middle East, Central AsiaSeptember 2012 (last addresses November 2019)
LACNICLatin America, CaribbeanJune 2014
ARINNorth AmericaSeptember 2015
AFRINICAfricaFinal phase from 2020
Diagram of NAT: a laptop, a phone and a TV with private IPs 192.168.1.10 to .12 share one public IPv4 address, 203.0.113.45
NAT lets every device on a private network share one public IPv4 address. (Documentation and private addresses.)

NAT (network address translation) is what kept IPv4 alive: your router gives private addresses to your devices and rewrites their traffic so it all leaves from one public address. Many providers now add a second layer, carrier-grade NAT, so several customers share one public IPv4 too; that's why some routers show a WAN address in 100.64.0.0/10.

IPv4 in 2026 is an asset with a price. Organizations buy and sell blocks through the registries; the average price was about $20 per address in the first half of 2026 (IPv4.Center market data), and Amazon Web Services has charged $0.005 per public IPv4 address per hour (about $44 a year) since 1 February 2024, while IPv6 addresses stay free. Both push networks toward IPv6.

Every IPv4 packet starts with a 20-byte header: version, length, TTL, protocol, checksum, source and destination addresses (RFC 791).

FieldSizeWhat it does
Version4 bitsAlways 4.
Header length (IHL)4 bitsIn 32-bit words: 5 (20 bytes) without options, up to 15 (60 bytes).
DSCP and ECN8 bitsPriority (quality of service) and congestion signal; once called "type of service".
Total length16 bitsHeader plus data, up to 65,535 bytes.
Identification, flags, fragment offset16 + 3 + 13 bitsSplitting and reassembling packets too big for a link; the "don't fragment" flag.
Time to live (TTL)8 bitsLowered by 1 at each router; at 0 the packet is dropped. Traceroute uses this.
Protocol8 bitsWhat's inside: 6 = TCP, 17 = UDP, 1 = ICMP (ping).
Header checksum16 bitsDetects a damaged header; recomputed at each router because the TTL changes.
Source address32 bitsThe sender's IPv4 (after NAT, your public IP).
Destination address32 bitsWhere the packet goes.
Options0–40 bytesRarely used today.

See TTL at work with traceroute and ping.

IPv4 vs IPv6

IPv4IPv6
Address size32 bits128 bits
Written as192.0.2.12001:db8::1
Number of addressesabout 4.3 billionabout 3.4 × 1038
NATNeeded almost everywhereNot needed: every device can have a public address
Header20–60 bytes, with checksum40 bytes fixed, no checksum
Defined inRFC 791 (1981)RFC 8200 (2017)

Most connections now use both. Test whether you have IPv6 and see the full comparison in What is IPv6?; convert addresses with IPv4 to IPv6.

Frequently Asked Questions

What is my IPv4 address?
It's shown in the box at the top of this page, decoded, and on our homepage. If your connection uses IPv6, the box shows your IPv6 address and asks an IPv4-only server for your IPv4.
What does IPv4 stand for?
Internet Protocol version 4, the addressing system defined in 1981 in RFC 791. Versions 1 to 3 were experiments, and version 5 was used by an experimental streaming protocol, so the successor is IPv6.
How many IPv4 addresses exist?
232 = 4,294,967,296, about 4.3 billion. About 593 million are reserved (private, multicast, loopback…), leaving about 3.7 billion public addresses: not enough for every device, which is why NAT and IPv6 exist.
When did IPv4 addresses run out?
IANA, which hands out addresses to the five regional registries, gave out its last blocks on 3 February 2011. The registries then ran out one by one: APNIC in 2011, RIPE NCC in 2012, LACNIC in 2014, ARIN in 2015 and AFRINIC, the last, entered its final phase in January 2020 with a small pool left. New addresses now come from transfers between organizations.
What is the difference between a public and a private IPv4 address?
Public addresses are unique on the internet and given by your provider. Private ones (10.x, 172.16–31.x, 192.168.x) are reused inside every home and office; your router translates them to the public one (NAT).
Is IPv4 still used?
Yes. Almost every website and network still supports it, usually alongside IPv6 ("dual stack"). In 2026 about half of Google's users reach it over IPv6; the other half still use IPv4, and IPv4 is needed to reach IPv4-only sites.