IPv6 NAT64 Translator

Translate between IPv4 and IPv6 addresses using NAT64 prefix mechanism

NAT64 Translation: Stateless mechanism to embed IPv4 addresses within IPv6 using a /96 prefix.
Well-Known Prefix: 64:ff9b::/96 is the standard prefix defined in RFC 6052 for NAT64 translation.
Bidirectional: Convert IPv4→IPv6 for dual-stack communication or extract IPv4 from NAT64 addresses.

Quick Examples

Conversion Direction

Must be a /96 prefix for proper IPv4 embedding

Translation Result

Input (IPV4)
192.168.1.100
Output (IPv6)
64:ff9b::c0a8:164
Using prefix: 64:ff9b::/96

Technical Details

IPv4 Hex Representation: c0a80164
Prefix Length: /96
Translation Method: NAT64 (RFC 6052)
Address Family: IPv4 → IPv6

Translation Steps

1
1. IPv4 address: 192.168.1.100
2
2. Convert to hex: 192 → c0, 168 → a8, 1 → 01, 100 → 64
3
3. IPv4 as hex: c0a80164 (c0a8:0164)
4
4. NAT64 prefix: 64:ff9b::/96 → first 96 bits
5
5. Combine: 64:ff9b:::c0a8:0164
6
6. Compressed: 64:ff9b::c0a8:164

What is NAT64?

NAT64 is a stateless IP/ICMP translation mechanism that allows IPv6-only clients to communicate with IPv4-only servers. It embeds IPv4 addresses within IPv6 addresses using a /96 prefix.

Well-Known Prefix

RFC 6052 defines 64:ff9b::/96 as the well-known prefix for NAT64 translation. This prefix is reserved for this purpose and should not be routed on the global Internet.

Address Structure

NAT64 addresses use 96 bits for the prefix and embed the 32-bit IPv4 address in the remaining bits: Prefix::/96 + IPv4(32 bits)

Use Cases

Common in IPv6 transition scenarios, dual-stack networks, and environments where IPv6-only clients need to access legacy IPv4 services through translation gateways.