IPv4 Address Converter

Convert an IPv4 address between dotted-decimal, 32-bit decimal, hexadecimal and binary, and see its in-addr.arpa form.

One address, every representation. Switch between the dotted-decimal, 32-bit integer, hexadecimal and binary forms of any IPv4 address, plus the reverse-DNS in-addr.arpa name. Pure math, runs in your browser.

Decimal (uint32)
Hexadecimal
Binary
in-addr.arpa

One address, four notations

The 32 bits behind the dots

An IPv4 address is a single unsigned 32-bit integer. The familiar dotted-quad form is only a display convention: 192.168.1.1 is four 8-bit chunks written in decimal and joined with dots, which is far easier to read than the 3232235777 it actually is. Every notation on this page is the same number wearing different clothes, so converting between them never loses information.

The decimal form is that integer written out in full. The hexadecimal form groups the 32 bits into 8 hex digits, which is convenient because each pair of digits maps to exactly one octet — 0xC0A80101 splits cleanly into C0, A8, 01, 01. The binary form makes the bit boundaries visible, which is what you want when you are reasoning about netmasks.

Where each notation shows up

Integer form appears wherever an address needs to be stored or compared cheaply. Databases use it because INT UNSIGNED sorts and range-scans faster than a string, so WHERE ip BETWEEN x AND y becomes an index seek. Log pipelines and GeoIP tables ship ranges as integer pairs for the same reason.

Hexadecimal shows up in packet dumps, kernel structures and older config formats. Binary is mostly a teaching and debugging aid: line up an address against its netmask in binary and the network/host split stops being abstract.

Reverse DNS and in-addr.arpa

Forward DNS maps a name to an address. Reverse DNS does the opposite, and because DNS delegates authority left to right while IPv4 gets more specific left to right, the octets have to be reversed. 192.168.1.1 becomes 1.1.168.192.in-addr.arpa, and a PTR record at that name gives the hostname. Mail servers check this routinely — a missing or mismatched PTR is a common reason legitimate mail gets scored as spam.

Open-source note: implemented in vanilla JavaScript with no third-party libraries.

FAQ

What is the decimal form for?
It is the address read as a single unsigned 32-bit integer. Databases, firewalls and geo-IP tables often store addresses this way because integer range comparisons are cheap.
Why does 255.255.255.255 show 4294967295?
Because the conversion is unsigned. Languages that treat the result as a signed 32-bit int report -1 for the same address; this tool always shows the unsigned value.
What is the in-addr.arpa form?
It is the name used for reverse DNS lookups. The octets are reversed and the suffix appended, so 192.168.1.1 becomes 1.1.168.192.in-addr.arpa.
Why is the binary shown in four groups?
Each group is one octet. Splitting on the dots makes it easy to see exactly where a subnet mask cuts the address, which is usually the only reason to read binary at all.
Does this handle IPv6?
No, this converter is IPv4 only. IPv6 addresses are 128 bits and use a different textual notation with hextets and :: compression.
Is anything sent to a server?
No. The conversion is pure arithmetic running in your browser, so the addresses you paste never leave the page.