IP Address Converter

Convert any IPv4 address into its 32-bit integer, binary, hexadecimal and octal forms, or paste an integer and get the dotted address back. Useful for reading firewall logs, database fields and the occasional suspicious link.

Dotted decimal
32-bit integer
Hexadecimal
Dotted hexadecimal
Binary
Dotted binary
Octal
Dotted octal
Reverse DNS name
Type

Why IP addresses have so many forms

Dotted decimal is for people. Under the hood an IPv4 address is a single 32-bit number, and every other form is just that number in a different base. Hexadecimal groups neatly into four bytes, which is why packet captures and firmware show it; binary is what subnet masks operate on; octal survives in a few old Unix tools. Browsers accept all of them, so http://3232235777, http://0xC0A80101 and http://192.168.1.1 all reach the same router.

For working out network boundaries from these numbers, use the subnet calculator. The special and private ranges the Type field reports are explained on the IP addresses page.

Frequently asked questions

What is an IP address as an integer?
The four octets of an IPv4 address are a 32-bit number written in base 256. 192.168.1.1 is 192×256³ + 168×256² + 1×256 + 1 = 3,232,235,777. Databases and firewalls often store addresses this way because integer comparisons are fast.
Why does typing http://3232235777 open my router?
Browsers accept the integer form of an IPv4 address and convert it back. Some phishing links abuse this to hide the real address, which is one reason to know what the number means.
What is dotted hexadecimal?
Each octet written in base 16 with a 0x prefix, such as 0xC0.0xA8.0x01.0x01. Older tools and some network equipment display addresses this way.
Can it convert IPv6?
Not yet. IPv6 addresses are 128 bits and use different shorthand rules; an IPv6 expander and compressor is planned.
Is anything sent to your server?
No. The conversion is done in JavaScript in your browser.
Scroll to Top