IPv4 Converter

Dotted, binary, hex, integer, IPv6-mapped.

Runs locally in your browser Report an issue
Live conversion No signup · local processing

Edit any field to convert

The five fields on the left are linked. Type an address in any format — dotted-decimal, binary, hex, integer, or IPv6-mapped — and the others update instantly. Each field has its own copy button.

Runs entirely in your browser

Convert an IPv4 address between formats

An IPv4 address is really a single 32-bit number — dotted-decimal like 192.168.1.10 is just the friendly way to write it. This converter shows the same address in five forms at once: dotted-decimal, dotted-binary, hex with a 0x prefix, the plain 32-bit integer, and the IPv6-mapped notation ::ffff:a.b.c.d. Edit any field and the other four update instantly, so you can go in either direction — paste an integer from a database column and read off the dotted address, or convert a dotted address to hex for a config file. Everything is unsigned 32-bit arithmetic done in your browser, so no address is ever uploaded.

Common questions

What is the integer form of an IP address?

Each of the four octets is one byte of a single 32-bit number: 192.168.1.10 is (192×16777216) + (168×65536) + (1×256) + 10 = 3232235786. Databases and APIs sometimes store addresses as this integer because comparing and ranging over numbers is cheaper than over strings.

What is the IPv6-mapped form?

::ffff:a.b.c.d is how an IPv4 address is represented inside an IPv6 socket — the IPv4-mapped IPv6 address range. It lets dual-stack software carry an IPv4 address in an IPv6 field. The tool shows it so you can recognise and produce that notation.

Can I type in any of the formats?

Yes. The converter detects what you typed — dotted-decimal, dotted-binary, 0x hex, a plain integer, or ::ffff:… — parses it to the underlying 32-bit number, and fills in the rest. The field you are editing is left alone while you type.

What happens with an out-of-range value?

An octet above 255, an integer above 4294967295, or a hex value longer than 32 bits is rejected with a short message, and the other fields are left unchanged until the input is valid again.

Is my address uploaded anywhere?

No. All conversion is pure arithmetic in your browser. Nothing you type is sent to a server, so it also works offline.