1001Ferramentas
🔢 Converters

IPv4 Format Converter

Convert IPv4 addresses between formats: dotted decimal (192.168.1.1), integer (3232235777), hexadecimal (0xC0A80101) and binary. Everything in your browser.

One address, four ways to write it

The access log shows 3232235777. An old firewall rule uses 0xC0A80101. A database column stores an unsigned integer and nobody remembers why. They all point at 192.168.1.1, but you need to confirm that right now, in the middle of an investigation, and turning a 32 bit number into four octets in your head is not a good use of the next five minutes.

Every IPv4 address is a 32 bit number, and dotted decimal is just a friendly way of printing four bytes. 192.168.1.1 works out to 192 times 2^24, plus 168 times 2^16, plus 1 times 256, plus 1, which is 3232235777. Paste dotted decimal, an integer between 0 and 4294967295, or hexadecimal carrying the 0x prefix, and all four fields fill in. Dotted binary is an output field.

The 0x prefix is required, so C0A80101 on its own is not recognized. Keep the hex to eight digits at most, since anything longer no longer fits in an IPv4 address. CIDR notation is not accepted, so strip the /24 before pasting. IPv6 is out of scope. The integer shown matches what MySQL INET_ATON returns, which is handy when checking a query. It all runs in your browser.

Frequently asked questions

Which address is the number 3232235777?
It is 192.168.1.1. That 32 bit value is the four octets concatenated together.
Does it handle IPv6?
No. This converter is IPv4 only, covering 0.0.0.0 through 255.255.255.255.
Can I paste binary into the input box?
Dotted binary shows up as output. To start from binary, convert each octet to decimal first and paste the dotted decimal form.

Related Tools