HackMyIP

IP Address Converter

Convert an IPv4 address between dotted decimal, integer, hex, and binary

Unrecognized input. Supported: dotted decimal (8.8.8.8), integer (0-4294967295), hex (0x08080808), or 32-bit binary.
Tip: browsers accept the integer form of an IP. http://134744072 resolves to 8.8.8.8 — a trick phishing links use to disguise addresses.

Frequently Asked Questions

How do I convert an IP address to a decimal number?

An IPv4 address is a 32-bit number written as four octets. To convert a.b.c.d to decimal, compute a×16777216 + b×65536 + c×256 + d. For example, 8.8.8.8 = 8×16777216 + 8×65536 + 8×256 + 8 = 134744072. The reverse splits the integer back into four bytes.

Why would an IP address be written as a single number?

Databases and geolocation tables often store IPv4 addresses as 32-bit integers because integer comparison and range lookups are fast. Browsers also accept the integer form in URLs (http://134744072 resolves to 8.8.8.8), which is why attackers sometimes use decimal or hex IPs to obfuscate phishing links — a good reason to be able to decode them.

Does this converter work for IPv6 addresses?

No — this tool is IPv4-only. IPv6 addresses are 128-bit values with their own hexadecimal colon notation (e.g. 2001:4860:4860::8888), so a 32-bit decimal/binary conversion does not apply. The dotted, integer, hex, and binary forms here all describe the same 32-bit IPv4 value.