IPv6 Converter to IPv4 for Embedded Addresses

June 14, 2026

IPv6 Converter to IPv4

Decode embedded IPv4 addresses from IPv6 formats, or generate IPv6 forms such as IPv4-mapped, 6to4, NAT64, ISATAP, and Teredo-style lab examples.

⚙️Named Conversion Presets
🌐Converter Inputs
This tool handles IPv6 formats that intentionally embed an IPv4 address. Ordinary native IPv6 addresses do not convert into IPv4.
Paste compressed, full, or mixed IPv6 notation. Zone IDs are ignored for conversion, so fe80::5efe:192.0.2.45%eth0 can still be parsed.
Use /96 for classic DNS64 extraction. Custom /64 to /96 prefixes are summarized, then the last 32 bits are checked.
Detected Format
-
waiting
IPv4 Result
-
hex bytes
Generated IPv6
-
route context
Host Classification
-
scope
Enter an IPv6 address with an embedded IPv4 pattern or choose an IPv4 encoding mode.

Conversion Breakdown

🖥IPv6 and IPv4 Spec Grid
128
Bits in one IPv6 address
32
Bits in one IPv4 address
8
IPv6 hextets in expanded form
4
Octets used by IPv4 suffix
::ffff
Common IPv4-mapped prefix
2002
6to4 prefix hextet
64:ff9b
Well-known NAT64 prefix
2001
Teredo prefix hextet
📘Reference Tables
Conversion Format IPv6 Pattern Where IPv4 Lives Calculator Treatment
IPv4-mapped IPv6::ffff:w.x.y.z or ::ffff:WWXX:YYZZFinal 32 bitsHigh confidence app compatibility mapping.
IPv4-compatible IPv6::w.x.y.z or ::WWXX:YYZZFinal 32 bitsRecognized as legacy, normally avoid for new designs.
6to42002:WWXX:YYZZ::/48Second and third hextetsDecodes public IPv4 used to build the 6to4 prefix.
NAT64 and DNS6464:ff9b::w.x.y.z or custom /96Final 32 bitsExtracts translated IPv4 when the prefix is plausible.
ISATAP...:0000:5efe:w.x.y.zInterface identifier suffixReads embedded host address after 0000:5efe.
Teredo2001:0000:server:flags:port:clientXORed final 32 bitsDecodes server, flags, port, and obfuscated client IPv4.
Address Class IPv4 Range Expected Conversion Home Server Note
Private LAN10.0.0.0/8, 172.16/12, 192.168/16Often lab-only mappingUseful for reverse proxies, containers, and local logs.
Loopback127.0.0.0/8::ffff:127.0.0.1 commonUsually means local application binding or testing.
Link-local169.254.0.0/16Rare in routed IPv6Check DHCP, static addressing, or interface fallback.
Documentation192.0.2/24, 198.51.100/24, 203.0.113/24Safe example dataGood for diagrams, tutorials, and runbook examples.
Public IPv4Other globally routed IPv4Used by 6to4, NAT64, and TeredoDo not assume it identifies the final user without context.
Multicast224.0.0.0/4Not typical for embedded hostFlag for validation before adding firewall rules.
Byte Math Example Input Hex Bytes IPv4 Output
Mapped suffix::ffff:c0a8:0119c0 a8 01 19192.168.1.25
6to4 prefix2002:c633:6401::c6 33 64 01198.51.100.1
NAT64 suffix64:ff9b::0808:080808 08 08 088.8.8.8
ISATAP suffixfe80::5efe:cb00:7105cb 00 71 05203.0.113.5
Teredo client2001:0:4136:e378:8000:63bf:3fff:fdd2c0 00 02 2d192.0.2.45
Compatible suffix::c000:0201c0 00 02 01192.0.2.1
Home Lab Task Best Mode Primary Result Secondary Check
Read application logsAuto or mappedClient IPv4 addressConfirm ::ffff prefix before blocking.
Audit DNS64 labNAT64Translated IPv4 suffixConfirm the resolver prefix and /96 route.
Decode old tunnel route6to4Public relay source IPv46to4 is legacy and may be filtered.
Review Teredo traceTeredoServer, port, and client IPv4Client IPv4 is XOR-obfuscated in the address.
Build config examplesEncodeIPv6 representationUse documentation IPv4 for public examples.
Firewall cleanupAuto plus strictConfidence and scopeNative IPv6 does not map to IPv4 rules.
💡Conversion Tips
Decode only embedded formats. A normal native IPv6 address cannot be mathematically changed into an IPv4 address. Look for a known prefix or a final 32-bit suffix before trusting a result.
Treat transition output as context. Mapped addresses, NAT64 records, 6to4 routes, and Teredo traces describe a translation or tunnel pattern; they are not always the same as the peer you should block or allow.

When IPv4 addresses was becoming scarce, engineers had to find a way to maintain communication between the older systems that still used IPv4 and the newer systems using IPv6. Engineers used mechanisms to embed IPv4 addresses within IPv6 structures. These embedded addresses has specific patterns to them.

This converter tool is designed to recognize these patterns and convert them to the original IPv4 address when one is present within the IPv6 address. Most IPv6 addresses are “native,” which means that they does not contain an IPv4 component. However, there are address types that contain an embedded IPv4 address.

How the IPv6 to IPv4 Converter Works

For example, mapped addresses use a ::ffff prefix, 6to4 addresses begin with the 2002 prefix with the IPv4 address placed within the next two hextets, NAT64 addresses use the 64:ff9b prefix with the IPv4 address following in the last thirty-two bits of the IPv6 address. Additionally, ISATAP and Teredo also use specific address conventions in which the IPv4 information is stored in specific locations within the IPv6 address or that use specific bitwise manipulation to encode the address. Therefore, recognizing the pattern of an IPv6 address can reveal from which system the address originated, which is helpful information to be aware of when crafting rules for those systems or troubleshooting them.

The toggle button at the top of the tool allows for the user to take the address in two different direction. If the user selects the decode function, the tool will analyze the IPv6 string that is pasted into the string field. If the user selects the encode function, the tool will take the ordinary IPv4 address that is entered into the field and construct the IPv6 address according to the selected format.

The family selector field allows for the user to narrow the range of the type of address that the tool will construct. The notation field determine in what notation the IPv4 address will be displayed and is helpful for comparing results from other tools that may use a different notation for those same addresses. The strictness level for the tool allows for the user to indicate whether the tool should find any type of pattern (even if it may not be a legitimate IPv4 address) or to require that any addresses found are legitimate instances of those types of addresses.

The prefix-length field allows for the user to define which portion of the address is being examined by the tool, though this does not impact the mathematical process that is used to decode the address. The overhead settings control the amount of information that is displayed alongside the converted address, which may be helpful for creating documentation for that system. A common mistake is to assume that every IPv6 address that contains a dotted decimal value within its address contains a usable IPv4 address.

While the converter tool will successfully extract the IPv4 portion of the address, the context behind the address may indicate that these IPv4 addresses are not usable by end users. For instance, private IPv4 address range are common in systems logs for networks that use only private devices, but documentation may use IPv4 address ranges that are not routable on the open internet. Thus, the classification of the address returned from the tool will indicate whether the address is internal or external to the network.

The Teredo address type also contains an inverted value for the client IPv4 address and the UDP port. While the converter tool will recognize and account for this inversion in the address when it is decoding it, the result will still need to be compared to the value of the IPv4 address of the server that is referenced in the address. Additionally, the NAT64 addresses will only decode correctly if the prefix to the address is correct to that defined to the DNS64 resolver.

If the user enters the wrong prefix into the tool, the converter will still correctly produce an IPv4 address, but that address will not contain the real IPv4 address of the intended destination for the data packets. The tables within the reference information for the tool indicate the various bytes within each address type and the treatments of those bytes. These tables are helpful in understanding the different address types and the reasons why certain addresses may appear within the logs of certain systems.

Additionally, the tables include the ranges of IPv4 addresses that are common to each type of address. These tables, therefore, allow the user to determine whether or not an address requires investigation. The examples of the byte notations show the different ways that the same four bytes of an embedded IPv4 address can be displayed.

These different notations are helpful in comparing the same addresses as they will appear in various types of tools. The breakdown field allows for the user and any other individuals to view the individual steps that led to the creation of the converted address. This may be helpful for presenting the information to others.

Additionally, this record allows the individual to confirm which prefix was used in the conversion of the address and whether it was correct. Because the tool can produce the reverse mapping of IPv6 addresses to IPv4 addresses, it allows for the user to create test cases for systems like firewalls. Overall, the embedded IPv4 addresses within IPv6 addresses indicate from which system the addresses were created.

Furthermore, those embedded addresses also indicate from which IPv4 host the addresses were created. Thus, by inputting any IPv6 address that contains an embedded IPv4 address into the converter tool, the user removes the guesswork regarding the prefix and the bit positions of the embedded address. Additionally, by converting the address, the user gains a clearer picture of the original IPv4 address and system from which the IPv6 address originated.

IPv6 Converter to IPv4 for Embedded Addresses

Related posts

Leave a Comment