IPv6 to IPv4 Converter
Pull the embedded IPv4 address out of an IPv6 address. Paste an IPv4-mapped, IPv4-compatible or 6to4 IPv6 address and the tool extracts the IPv4 it carries and explains which type it is. Free and instant in your browser.
When you need to convert an IPv6 address back to the IPv4 it carries, this tool extracts the embedded IPv4 and tells you which kind of address it is. Paste an IPv4-mapped address like ::ffff:192.0.2.5, an old IPv4-compatible address, or a 6to4 address like 2002:c000:205::, and it reads out the dotted-quad IPv4 held inside. Admins reach for it to decode an ::ffff: address from a server log, to confirm which IPv4 host a mapped address points to on a dual-stack service, or to recover the IPv4 gateway behind a 6to4 prefix. The extraction happens entirely in your browser and works offline.
192.0.2.5IPv4-mappedHow it works
- 1
Enter the IPv6 address
Paste an address such as ::ffff:192.0.2.5 or 2002:c000:205::.
- 2
Read the embedded IPv4
The tool extracts the dotted-quad IPv4 address held inside it.
- 3
Check the type
See whether the address is IPv4-mapped, IPv4-compatible or 6to4, with a short explanation.
Instant & 100% private — nothing is uploaded
Everything runs locally in your browser. Your code, text and files are processed on your own device and are never sent to a server — so there are no upload waits, no size limits from us, and nothing is ever stored or logged.
Frequently asked questions
- Which IPv6 addresses contain an IPv4 address?
- Three types: IPv4-mapped (::ffff:0:0/96), IPv4-compatible (::/96, deprecated) and 6to4 (2002::/16). In the first two the IPv4 address sits in the last 32 bits; in 6to4 it sits in the two groups right after the 2002 prefix. Other IPv6 addresses, like a normal 2001:db8:: address, do not embed an IPv4 address.
- How is the IPv4 extracted from a 6to4 address?
- A 6to4 address looks like 2002:WWXX:YYZZ::, where WWXX:YYZZ is the IPv4 address in hexadecimal. The tool reads those two groups and converts them back to dotted-quad. For 2002:c000:205::, c000:0205 decodes to 192.0.2.5.
- Why does ::1 not return an IPv4 address?
- The loopback address ::1 falls inside the old IPv4-compatible ::/96 range numerically, but it is reserved as IPv6 loopback, not an embedded IPv4. The tool treats :: and ::1 as special and does not extract an address from them.
- Is anything sent to a server?
- No. The extraction runs entirely in your browser, so the address you paste stays on your device and the tool keeps working offline.
More tools
More from the Hivly network
Free sister tools on our other sites.