IPv4 to IPv6, Binary & Hex Converter
Convert any IP address between Dotted Decimal, 32-bit Integer, Hexadecimal, Binary, Octal, and IPv6 formats instantly.
32-Bit Binary Decomposition
Why convert an IP address to Decimal, Hex, or Binary?
An IPv4 address is fundamentally a 32-bit unsigned integer. While human beings write it as four decimal numbers separated by dots (dotted-decimal notation), computers and routers process IP packets purely as raw 32 binary bits.
Database Storage Optimization
Storing IP addresses as a 4-byte INT UNSIGNED instead of a 15-byte VARCHAR(15) saves up to 70% disk space and speeds up B-Tree range queries by 10x.
Cybersecurity & URL Obfuscation
Web browsers recognize decimal (e.g., http://3232235777) and hex IPs. Security analysts use IP converters to deobfuscate malicious redirect URLs.
IPv6 Transition & Dual-Stack
IPv4-mapped IPv6 addresses (::ffff:192.168.1.1) allow modern dual-stack socket applications to communicate seamlessly with IPv4 endpoints.
Frequently Asked Questions
How do you calculate an IP address as a 32-bit Integer?
To convert IPv4 A.B.C.D into an integer: (A × 256³) + (B × 256²) + (C × 256) + D. For example, 192.168.1.1 = (192 × 16,777,216) + (168 × 65,536) + (1 × 256) + 1 = 3,232,235,777.
Can you type an integer or decimal IP into a web browser address bar?
Yes! Operating systems and web browsers resolve integer IPs natively. Typing http://3232235777 into Chrome or Firefox navigates directly to http://192.168.1.1.
What is an IPv4-mapped IPv6 address?
Defined in RFC 4291, an IPv4-mapped IPv6 address has 80 leading zeros, followed by 16 ones (represented as ::ffff:), followed by the 32 bits of the IPv4 address. It allows IPv6 software to communicate with legacy IPv4 hosts.
How many bits are in an IPv4 vs IPv6 address?
An IPv4 address has 32 bits (4.3 billion possible addresses). An IPv6 address has 128 bits (approximately 340 undecillion addresses), solving the global address exhaustion crisis.