IPv4 to IPv6 Address Mapper (Mapped, 6to4, NAT64)
Shows how an IPv4 address looks inside IPv6: the IPv4-mapped form ::ffff:a.b.c.d, the 6to4 prefix (2002::/16) and the NAT64 well-known prefix 64:ff9b::/96. It also reverses these forms.
Use the tool
Why this tool exists
Dual-stack software often logs ::ffff:192.0.2.1 for an IPv4 client, and NAT64 networks hand out 64:ff9b:: addresses for IPv4-only servers. Reading those by eye is slow because the IPv4 part is hidden in hex.
This page converts in both directions with exact integer maths. It covers three documented embeddings only. Other schemes, such as Teredo or network-specific NAT64 prefixes, are reported as not recognised.
How to use it
- Paste IPv4 or IPv6 addresses, one per line.
- For an IPv4 address, copy the form you need.
- For an IPv6 address, read the embedded IPv4 address if it uses one of the known forms.
Frequently asked questions
What is an IPv4-mapped address?
An address in ::ffff:0:0/96 that carries an IPv4 address in the last 32 bits. Sockets use it to let an IPv6 socket talk to IPv4 hosts.
What is 6to4?
A transition method that put the IPv4 address inside 2002::/16. It is deprecated, but the addresses still show up in old logs.
Does the NAT64 result work on my network?
Only if your NAT64 gateway uses the well-known prefix 64:ff9b::/96. Many networks use their own prefix.
Are my addresses sent anywhere?
No. The conversion runs in your browser.