IP Address Converter

Convert IPv4 to integer / hex / binary, or expand and compress IPv6.

Free • no sign-up • runs entirely in your browser.

What it converts

For IPv4, this shows the address as a 32-bit integer, hexadecimal, binary, and octal — handy for firewall rules, databases and programming. For IPv6, it shows both the fully expanded form and the compressed (::) form.

Frequently asked questions

Why convert an IP to an integer?

Databases and code often store IPs as integers for efficient range queries and indexing. The integer form is the 32-bit value of the address.

What is the compressed IPv6 form?

IPv6 lets you replace one run of consecutive zero groups with :: and drop leading zeros, so 2001:0db8:0000:0000:0000:0000:0000:0001 becomes 2001:db8::1.

Is ::ffff: notation important?

That's an IPv4-mapped IPv6 address, used when IPv6 systems need to represent an IPv4 address.