Convert any IP address between Dotted Decimal, 32-bit Integer, Hexadecimal, Binary, Octal, and IPv6 formats instantly.
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.
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.
Web browsers recognize decimal (e.g., http://3232235777) and hex IPs. Security analysts use IP converters to deobfuscate malicious redirect URLs.
IPv4-mapped IPv6 addresses (::ffff:192.168.1.1) allow modern dual-stack socket applications to communicate seamlessly with IPv4 endpoints.
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.
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.
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.
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.
At its core (RFC 791), an IPv4 address is simply an unsigned 32-bit binary integer. While dotted-decimal notation (e.g., 192.168.1.1) was designed for human readability, computing engines, database indexes, and network cards process IP addresses as raw 32-bit numbers.
Storing IP addresses as 32-bit integers in SQL databases (such as PostgreSQL inet or MySQL INT UNSIGNED with INET_ATON()) drastically reduces memory footprint, accelerates B-tree indexing, and optimizes geolocation IP range queries.
Type any standard IPv4 address (e.g. 8.8.8.8 or 192.168.1.1), 32-bit decimal integer, or hexadecimal string.
The tool automatically detects input format and converts in real time across Dotted Decimal, Integer, Hexadecimal, Binary, and IPv4-mapped IPv6.
Copy integer decimal for database indexes, hexadecimal for packet captures, or binary for subnet masking.
Inspect the syntax, standards, and practical use cases for alternative IP representations:
| Encoding Format | Base / RFC | Example (8.8.8.8) | Primary Use Case |
|---|---|---|---|
| Dotted Decimal | RFC 791 | 8.8.8.8 | Standard human-readable IPv4 notation |
| 32-bit Integer / Decimal | Base 10 | 134744072 | Ultra-fast database index and range queries |
| Hexadecimal | Base 16 | 0x08080808 | Wireshark packet filters and memory inspection |
| Binary (32-bit) | Base 2 | 00001000.00001000.00001000.00001000 | Subnet masking, bitwise AND routing logic |
| IPv4-Mapped IPv6 | RFC 4291 | ::ffff:8.8.8.8 | Dual-stack network transition & socket migration |
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.
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.
An IPv4-mapped IPv6 address (defined in RFC 4291) embeds a 32-bit IPv4 address into the lower 32 bits of a 128-bit IPv6 address with the prefix ::ffff:0:0/96 (e.g., ::ffff:192.168.1.1 or ::ffff:c0a8:0101). Dual-stack operating systems use this format to handle both IPv4 and IPv6 over a single socket API.
Storing an IP address as a 32-bit unsigned integer requires only 4 bytes of storage compared to up to 15 bytes for a VARCHAR(15) string. Furthermore, numerical indexing and subnet range queries (BETWEEN start_int AND end_int) execute orders of magnitude faster in MySQL, PostgreSQL, and SQLite.