IPv4 to IPv6 Converter — Mapped, NAT64 and 6to4
Convert any IPv4 address into ::ffff:w.x.y.z mapped & 2002::/16 6to4 forms.
| Input | IPv4-mapped | Mapped (hex) | NAT64 (64:ff9b::/96) | 6to4 prefix |
|---|---|---|---|---|
192.168.1.1 | ::ffff:192.168.1.1 | ::ffff:c0a8:101 | 64:ff9b::c0a8:101 | 2002:c0a8:101::/48 |
10.0.0.254 | ::ffff:10.0.0.254 | ::ffff:a00:fe | 64:ff9b::a00:fe | 2002:a00:fe::/48 |
8.8.8.8 | ::ffff:8.8.8.8 | ::ffff:808:808 | 64:ff9b::808:808 | 2002:808:808::/48 |
100.64.12.7 | ::ffff:100.64.12.7 | ::ffff:6440:c07 | 64:ff9b::6440:c07 | 2002:6440:c07::/48 |
203.0.113.45 | ::ffff:203.0.113.45 | ::ffff:cb00:712d | 64:ff9b::cb00:712d | 2002:cb00:712d::/48 |
255.255.255.0 | ::ffff:255.255.255.0 | ::ffff:ffff:ff00 | 64:ff9b::ffff:ff00 | 2002:ffff:ff00::/48 |
When to use the IPv4 to IPv6-Mapped (::ffff:0:0/96) & 6to4 Converter
Four forms at once
Every address is shown as IPv4-mapped (::ffff:), its hex version, the NAT64 address with the 64:ff9b::/96 prefix, and the 6to4 2002::/48 prefix.
Reading dual-stack logs
Servers listening on IPv6 log IPv4 clients as ::ffff:203.0.113.45. This tool helps match those addresses with IPv4 firewall rules.
IPv6-only mobile networks
Mobile carriers using NAT64 map IPv4 sites into 64:ff9b::. The converted address helps test services from such networks.
Written per the RFCs
The mapped form follows RFC 4291, NAT64 follows RFC 6052 and 6to4 follows RFC 3056, with lower-case hex as RFC 5952 recommends.
Frequently asked questions
What is the difference between IPv4-mapped and IPv4-compatible?
The compatible form (::w.x.y.z without ffff) is deprecated. The mapped form ::ffff:w.x.y.z is what operating systems use for dual-stack sockets.
Can a mapped address be pinged?
Not across an IPv6 network; a mapped address only exists inside one host and never goes on the wire. NAT64 is what reaches IPv4 sites from IPv6-only networks.
Why are there two mapped spellings?
::ffff:192.168.1.1 and ::ffff:c0a8:101 are the same address. The first is easier to read; the second is pure hex.
What about private addresses?
Any address can be converted, but public NAT64 does not translate private addresses such as 192.168.0.0/16, per RFC 6052.
Is my data sent to a server?
No. Everything is computed in your browser, so addresses from dual-stack server logs or internal network configs never leave your device.
Similar tools
- 32-Bit Binary Octets to Dotted-Decimal IPv4 ConverterConvert 32-bit binary bitstreams or dotted binary octets back into IPv4.
- IPv4 Address to Hexadecimal (0x) ConverterConvert IPv4 octets into dotted hex and 32-bit hex (for DHCP Options & /proc).
- Hexadecimal (0x) to Dotted-Decimal IPv4 ConverterDecode hex bytes from packet dumps, /proc/net/tcp or DHCP logs back into IPv4.
- IPv4 Address to 32-Bit Unsigned Integer ConverterConvert dotted IPv4 addresses into a single 32-bit unsigned decimal integer.