Quick example
192.168.1.42 in decimal, hex, and binary
The address 192.168.1.42 is the unsigned integer 3,232,235,818, hexadecimal 0xC0A8012A, and binary 11000000.10101000.00000001.00101010. These are different ways to write the same 32 bits.
One value, several notations
What each IPv4 format means
Dotted decimal
Four base-10 octets from 0 through 255, separated by dots. This is the format people use most often in network settings.
Unsigned integer
One base-10 number from 0 through 4,294,967,295. Databases and APIs sometimes store IPv4 addresses this way.
Hexadecimal
Up to eight base-16 digits, commonly prefixed with 0x. Every pair of digits represents one octet.
Binary
Exactly 32 zeroes and ones. This view makes network bits, host bits, and subnet boundaries easier to inspect.
Reverse lookup notation
Why the octets reverse for in-addr.arpa
IPv4 reverse DNS names place the octets in reverse order beneath in-addr.arpa. For example, 192.168.1.42 becomes 42.1.168.192.in-addr.arpa. This converter shows the lookup name but does not perform a DNS query.
Common questions
IPv4 address conversion FAQ
How do I convert an IPv4 address to an integer?
Multiply the first octet by 256 cubed, the second by 256 squared, and the third by 256, then add the fourth octet.
How many hexadecimal digits are in an IPv4 address?
A complete IPv4 address uses eight hexadecimal digits. Each pair represents one 8-bit octet.
Does this converter perform a network lookup?
No. It only changes how the same 32-bit value is written. It does not check ownership, location, reachability, or DNS records.