IPv4 Address conversion

IPv4 Address Converter

Translate an IPv4 address between dotted decimal, integer, hexadecimal, binary, and reverse DNS notation. You can start with any of the four numeric formats.

Address formats

Enter an IPv4 value

Choose its current format. Every equivalent updates locally in your browser.

Example: 192.168.1.42

Calculated locally. The entered address is not sent anywhere.

Equivalent formats

192.168.1.42

Each result represents the same unsigned 32-bit IPv4 value.

Dotted decimal
192.168.1.42
Unsigned integer
3232235818
Hexadecimal
0xC0A8012A
Binary
11000000.10101000.00000001.00101010
Reverse DNS name
42.1.168.192.in-addr.arpa
32 bits4 octets8 hexadecimal digits

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.