IPv6 to IPv4 Converter

Find the IPv4 address hidden inside mapped, NAT64, 6to4 and Teredo IPv6 addresses.

Recognises IPv4-mapped, NAT64, 6to4, Teredo, ISATAP and IPv4-compatible addresses. Results update as you type.

::ffff:192.0.2.128

Expanded: 0000:0000:0000:0000:0000:ffff:c000:0280
IPv4-mapped192.0.2.128the IPv4 address itself (RFC 4291)

2002:cb00:7105::1

Expanded: 2002:cb00:7105:0000:0000:0000:0000:0001
6to4203.0.113.5the public IPv4 of the 6to4 gateway (RFC 3056)

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).

FormatPrefixWhere the IPv4 sitsUsed forRFC
IPv4-mapped::ffff:0:0/96Last 32 bitsDual-stack software and logs4291
NAT6464:ff9b::/96Last 32 bitsIPv6-only networks reaching IPv4 sites6052
NAT64 local-use64:ff9b:1::/48Bits 48–63 and 72–87 (for a /48)Operator NAT64 setups8215
6to42002::/16Bits 16–47 (the two groups after 2002)Old automatic tunnels3056
Teredo2001::/32Server: bits 32–63; client: last 32 bits, invertedOld tunnels through NAT4380
ISATAP…:5efe:a.b.c.dLast 32 bits of the interface IDOld enterprise tunnels5214
IPv4-compatible::a.b.c.dLast 32 bitsNothing (deprecated)4291
Diagram: the IPv4-mapped address ::ffff:c000:201, whose last 32 bits c0 00 02 01 read as 192.0.2.1
The last 32 bits of a mapped address are the IPv4, written in hexadecimal.

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

ItemDetail
Where it runsIn your browser; nothing is sent to our server.
RecognisedMapped, compatible, NAT64 (64:ff9b::/96 and 64:ff9b:1::/48), 6to4, Teredo (server, client and port), ISATAP; tested against the RFC examples.
Not recognisedNAT64 with a network-specific prefix of other lengths: the IPv4 position depends on the operator's prefix.
InputCompressed, expanded or mixed notation, brackets and zone IDs accepted; up to 500 per list.
Last verified10 November 2026

Frequently Asked Questions

Can I convert my IPv6 address to IPv4?
No. Your IPv4 and IPv6 addresses are assigned separately; one can't be calculated from the other. Our homepage shows both when your connection has them.
How do I change from IPv6 to IPv4?
There's nothing to convert: a dual-stack device has both addresses and uses IPv6 with sites that support it. Our homepage shows your IPv4 when your connection has one. If an app or game needs IPv4, make your computer prefer IPv4 rather than switching IPv6 off, which is Microsoft's advice for Windows. Our IPv6 guide has the Windows prefer-IPv4 step, and how to turn IPv6 off on macOS, Linux or a router if you must.
What is ::ffff: in an IP address?
It marks an IPv4-mapped IPv6 address: the last part is a normal IPv4 address. You often see it in server logs, for example ::ffff:192.0.2.1.
What is 64:ff9b::?
The well-known NAT64 prefix. The last 32 bits are the IPv4 address of the site being reached through NAT64: 64:ff9b::c000:221 carries 192.0.2.33.
How do I get the IPv4 from a 6to4 address?
The two groups after 2002: are the IPv4 in hexadecimal: 2002:c000:0201:: → c0.00.02.01 → 192.0.2.1.
What is Teredo?
An old tunnelling method (2001::/32) that carried IPv6 over IPv4 UDP. The address contains the Teredo server's IPv4 and the client's public IPv4 and port, inverted bit by bit; this tool reverses that.
Why does my server log show ::ffff: addresses?
Your server listens on IPv6 with a dual-stack socket and receives IPv4 visitors through it, so it shows them as IPv4-mapped. The IPv4 is the part after ::ffff:.

Next steps

Related Tools

IPv4 to IPv6 Converter
Every IPv6 form of an IPv4 address.
IPv6 Expander
Write any IPv6 address out in full.
IPv6 Compressor
Shorten any IPv6 address to its RFC 5952 form.
IPv6 Subnet Calculator
Prefixes, ranges and address counts for any IPv6 network.

Related Guides

Guide What is IPv6?
with a live test of your own connection.