IP Address Converter

Convert an IPv4 address between dotted-decimal, hex, binary and 32-bit integer. Also IPv6 expand/compress.

What this IP converter does

Enter an IPv4 address to convert it between dotted-decimal, 32-bit integer, hexadecimal and binary at once — handy when a log, database column or API returns an IP as a number. Enter an IPv6 address and it shows the fully expanded and compressed forms side by side. All conversion runs in your browser.

You can also paste a decimal integer (e.g. 3232235521) or a 0x-prefixed hex value and it will expand back to dotted notation. For subnet math use the subnet calculator; for CIDR membership and splitting use the CIDR tools.

Frequently asked questions

When would I store an IP as an integer?

Databases and high-performance lookups often store IPv4 as a 32-bit unsigned integer because integer comparisons and range queries are faster and more compact than string matching. This tool converts back and forth instantly.

Why are there two IPv6 forms?

IPv6 allows zero compression with "::". The expanded form writes all eight 16-bit groups in full, while the compressed form collapses the longest run of zero groups — both represent the same address.

Does it validate the input?

Yes. Out-of-range octets, malformed groups or integers larger than 2³²−1 are rejected, so you get a clear error instead of a wrong conversion.