IP Address Converter
Convert an IPv4 address between dotted-decimal, hex, binary and 32-bit integer. Also IPv6 expand/compress.
Convert an IPv4 address between dotted-decimal, hex, binary and 32-bit integer. Also IPv6 expand/compress.
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.
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.
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.
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.