IPv6 to IPv4 Converter |
Recognises IPv4-mapped, NAT64, 6to4, Teredo, ISATAP and IPv4-compatible addresses. Results update as you type.
::ffff:192.0.2.128
| IPv4-mapped | 192.0.2.128the IPv4 address itself (RFC 4291) |
2002:cb00:7105::1
| 6to4 | 203.0.113.5the public IPv4 of the 6to4 gateway (RFC 3056) |
You're connected over IPv6 (). Your IPv4, if you have one, is a separate address: our homepage shows it.
You're connected over IPv4: your IPv4 address is . Your IPv6, if you have one, is separate: test it here.
Can You Convert IPv6 to IPv4?
You can't convert any IPv6 address into an IPv4: they're separate addresses. But some IPv6 formats carry an IPv4 inside them (::ffff:192.0.2.1, NAT64 64:ff9b::c000:201, 6to4 2002:c000:201::), and this tool extracts it.
Not in general: your ISP gives you an IPv6 and an IPv4 independently. Only special formats embed an IPv4, and for an ordinary address such as 2606:4700::1111 the honest answer is "there is none". The box above tells you which address this page was loaded from. To make a computer use IPv4 instead of IPv6, see the FAQ below.
IPv6 Formats That Contain an IPv4 Address
Five formats carry an IPv4: mapped, NAT64, 6to4, Teredo and the old compatible form (plus ISATAP interface IDs).
| Format | Prefix | Where the IPv4 sits | Used for | RFC |
|---|---|---|---|---|
| IPv4-mapped | ::ffff:0:0/96 | Last 32 bits | Dual-stack software and logs | 4291 |
| NAT64 | 64:ff9b::/96 | Last 32 bits | IPv6-only networks reaching IPv4 sites | 6052 |
| NAT64 local-use | 64:ff9b:1::/48 | Bits 48–63 and 72–87 (for a /48) | Operator NAT64 setups | 8215 |
| 6to4 | 2002::/16 | Bits 16–47 (the two groups after 2002) | Old automatic tunnels | 3056 |
| Teredo | 2001::/32 | Server: bits 32–63; client: last 32 bits, inverted | Old tunnels through NAT | 4380 |
| ISATAP | …:5efe:a.b.c.d | Last 32 bits of the interface ID | Old enterprise tunnels | 5214 |
| IPv4-compatible | ::a.b.c.d | Last 32 bits | Nothing (deprecated) | 4291 |
What Is NAT64 (64:ff9b::)?
NAT64 lets IPv6-only devices reach IPv4 sites: DNS64 puts the site's IPv4 inside a 64:ff9b:: address and a gateway translates.
Many mobile networks give phones only IPv6. When a phone looks up a site that has only an IPv4 address, the network's DNS64 answers with a made-up IPv6 address: 64:ff9b:: plus the IPv4 in hexadecimal. The phone connects to it, and the NAT64 gateway forwards the traffic to the real IPv4 site. So if you see 64:ff9b:: addresses in a log, the IPv4 at the end is the site that was reached.
What Is an IPv4-Mapped IPv6 Address?
::ffff:a.b.c.d is how dual-stack software represents an IPv4 client on an IPv6 socket; you see it in server logs.
It's not a real IPv6 address on the internet: no packet travels with it. It's a way for one IPv6 socket to accept both kinds of visitors. To turn it back, take the part after ::ffff:; if it's in hexadecimal (::ffff:c000:201), each pair of hex digits is one number of the IPv4 (c0 = 192, 00 = 0, 02 = 2, 01 = 1).
How This Converter Works
| Item | Detail |
|---|---|
| Where it runs | In your browser; nothing is sent to our server. |
| Recognised | Mapped, compatible, NAT64 (64:ff9b::/96 and 64:ff9b:1::/48), 6to4, Teredo (server, client and port), ISATAP; tested against the RFC examples. |
| Not recognised | NAT64 with a network-specific prefix of other lengths: the IPv4 position depends on the operator's prefix. |
| Input | Compressed, expanded or mixed notation, brackets and zone IDs accepted; up to 500 per list. |
| Last verified | 10 November 2026 |
Frequently Asked Questions
Can I convert my IPv6 address to IPv4?
How do I change from IPv6 to IPv4?
What is ::ffff: in an IP address?
::ffff:192.0.2.1.What is 64:ff9b::?
64:ff9b::c000:221 carries 192.0.2.33.How do I get the IPv4 from a 6to4 address?
2002: are the IPv4 in hexadecimal: 2002:c000:0201:: → c0.00.02.01 → 192.0.2.1.What is Teredo?
Why does my server log show ::ffff: addresses?
::ffff:.Next steps