IP Address Converter
IPv4 to decimal, hex, octal, binary, and IPv4-mapped IPv6.
Convert IPv4 to IPv6 in the three standard ways: IPv4-mapped, 6to4, and NAT64. Paste an IPv6 address instead and the converter finds the IPv4 address inside it.
Enter an IPv4 address to get its IPv6 forms, or an IPv6 address to find the IPv4 address inside it.
IPv6 has no single "converted" address for an IPv4 host. Each mechanism places the 32 IPv4 bits in a different spot:
::ffff: + the 32 bits. Used inside dual-stack software, for example in server logs and socket APIs.2002: + the 32 bits, giving a /48 prefix. A tunnelling method from RFC 3056, now deprecated.64:ff9b:: + the 32 bits. A NAT64 gateway uses it so IPv6-only clients can reach IPv4 servers.To go back, the converter checks which prefix the IPv6 address starts with and reads the 32 bits from that position. For Teredo, the client address is stored with its bits inverted.
192.168.1.1 → IPv4-mapped ::ffff:192.168.1.1 = ::ffff:c0a8:101.192.168.1.1 → 6to4 2002:c0a8:101::/48.192.168.1.1 → NAT64 64:ff9b::c0a8:101.64:ff9b::808:808 → IPv4 8.8.8.8 (NAT64).| Form | Prefix | Where it appears | Status |
|---|---|---|---|
| IPv4-mapped | ::ffff:0:0/96 | Dual-stack sockets, logs, databases | Current |
| NAT64 | 64:ff9b::/96 | IPv6-only networks with a NAT64 gateway | Current |
| 6to4 | 2002::/16 | Old automatic tunnels | Deprecated (RFC 7526) |
| IPv4-compatible | ::/96 | Early transition designs | Deprecated (RFC 4291) |
Yes. As an IPv4-mapped address, 203.0.113.5 becomes ::ffff:203.0.113.5. That notation is for software, though; it doesn't give the host a real IPv6 address.
It marks an IPv4-mapped IPv6 address. A dual-stack server shows IPv4 clients this way, so ::ffff:192.0.2.1 is the IPv4 client 192.0.2.1.
Hardly. RFC 7526 deprecated the anycast relays in 2015 because they were unreliable. Native IPv6 and NAT64 replaced it.
Often used together with the IPv4 to IPv6 Converter.
IPv4 to decimal, hex, octal, binary, and IPv4-mapped IPv6.
Shorten IPv6 addresses (RFC 5952) or expand them in full.
First and last address, size, and type of any IPv6 prefix.