IPv4 Address Converter
Convert an IP address to decimal, binary, hexadecimal or even IPv6.
Convert IPv4 to Decimal
An IPv4 address consists of four octets (0–255) stored as a 32-bit integer. The decimal representation is useful for database queries and numeric comparisons of IP addresses.
IPv4 to Hexadecimal & Binary
Hexadecimal representation is commonly used in network protocols and packet headers. Binary representation shows which bits contribute to the network mask and is essential for understanding subnetting.
IPv4-Mapped IPv6 Addresses
IPv4-mapped IPv6 addresses (::ffff:x.x.x.x) allow simultaneous use of IPv4 and IPv6 in dual-stack systems. They are standardized in RFC 4291 and supported by modern operating systems.
Frequently Asked Questions
Answers to common questions about the IPv4 Address Converter
An IPv4 address consists of four octets, e.g. 192.168.1.1. To convert to decimal, each octet is multiplied by the corresponding power of 256 and added together: 192 × 16,777,216 + 168 × 65,536 + 1 × 256 + 1 = 3,232,235,777.
Hexadecimal representation is used in network protocols, packet headers and memory dumps. For example, 192.168.1.1 becomes C0A80101 in hex – more compact and machine-friendly than dot notation.
An IPv4-mapped IPv6 address has the form ::ffff:x.x.x.x and allows dual-stack systems to receive IPv4 connections over IPv6 sockets. It is standardized in RFC 4291 and supported by Linux, Windows and macOS.
An IPv4 address has exactly 32 bits, divided into four 8-bit octets (0–255). This theoretically allows around 4.3 billion unique addresses – too few for the modern internet, which is why IPv6 with 128 bits was developed.
The full IPv4-mapped IPv6 address looks like 0000:0000:0000:0000:0000:ffff:c0a8:0101. The short form uses :: notation to abbreviate leading zero groups: ::ffff:c0a8:101. Both refer to the same address.