IPv4 to IPv6 Converter
IPv4-mapped, 6to4, and NAT64 forms of an IPv4 address.
Convert an IPv4 address between dotted decimal, a single integer, hex, octal, and binary. The IP address converter reads any of these forms and fills in all the others.
Dotted (192.168.1.1), integer (3232235777), hex (0xC0A80101), binary, dotted octal, or ::ffff:192.168.1.1.
192.168.1.1, 3232235777, 0xC0A80101, a binary string, or ::ffff:192.168.1.1.An IPv4 address is one 32-bit number written as four octets a.b.c.d. The converter turns it into that number and back:
integer = a × 16,777,216 + b × 65,536 + c × 256 + d
::ffff:, which is how dual-stack software shows IPv4 clients.in-addr.arpa, the name a PTR lookup uses.192.168.1.1 = 3232235777 = 0xC0A80101 = 11000000.10101000.00000001.00000001.10.0.0.1 = 167772161, dotted octal 0012.0000.0000.0001.0x08080808 = 8.8.8.8, reverse DNS 8.8.8.8.in-addr.arpa.::ffff:c0a8:101 = 192.168.1.1.010.0.0.1, is only read as octal when every octet starts with 0. Otherwise it is rejected, because tools disagree on what it means.Multiply the first octet by 16,777,216, the second by 65,536, the third by 256, and add the fourth. For 192.168.1.1 that gives 3,232,235,777.
A 32-bit integer takes 4 bytes instead of up to 15 characters, and range checks become simple comparisons, which makes geo-IP and firewall lookups fast.
Most browsers accept http://3232235777/ and treat it as 192.168.1.1. Many other programs don't, so the dotted form is safer to share.
Often used together with the IP Address Converter.
IPv4-mapped, 6to4, and NAT64 forms of an IPv4 address.
Network, broadcast, host range, and masks for any IPv4 block.
Any base from 2 to 36, with binary, octal, decimal, and hex.