IPv4 to IPv6 Converter |
Also accepts a range like 192.0.2.0/24 to get the mapped prefix for firewall rules. Results update as you type.
192.0.2.1
| IPv4-mapped | ::ffff:192.0.2.1 = ::ffff:c000:201Expanded: 0000:0000:0000:0000:0000:ffff:c000:0201How dual-stack software, sockets and logs show an IPv4 client (RFC 4291). |
| NAT64 (well-known prefix) | 64:ff9b::192.0.2.1 = 64:ff9b::c000:201Expanded: 0064:ff9b:0000:0000:0000:0000:c000:0201How an IPv6-only device reaches this IPv4 through a NAT64 gateway (RFC 6052). |
| 6to4 prefix (rarely used) | 2002:c000:201::/48Expanded: 2002:c000:0201:0000:0000:0000:0000:0000/48The /48 that the old 6to4 method gave to this IPv4 (RFC 3056); rarely used now. |
Looking for IPv6 internet? Writing an IPv4 in IPv6 form doesn't give you that: your provider and router do. Test whether you have IPv6 →
Can I Convert My IPv4 to IPv6?
Converting IPv4 to IPv6 writes the same IPv4 address in IPv6 notation, for example 192.0.2.1 → ::ffff:192.0.2.1. It doesn't give your device an IPv6 address or IPv6 internet; only your ISP and router do that.
You can write it in IPv6 form, but it stays the same IPv4 address; real IPv6 comes from your provider. A device on a dual-stack connection has both: an IPv4 (often shared through NAT) and one or more IPv6 addresses, unrelated to each other. The forms on this page are for software, firewalls and translation gateways that need to handle IPv4 inside IPv6.
The IPv6 Forms of an IPv4 Address
Three forms matter: IPv4-mapped (::ffff:) for dual-stack software, NAT64 (64:ff9b::) for IPv6-only networks, and the old 6to4 (2002::).
| Form | 192.0.2.1 becomes | Where you meet it | Standard |
|---|---|---|---|
| IPv4-mapped | ::ffff:192.0.2.1 = ::ffff:c000:201 | Server logs, dual-stack sockets, access lists | RFC 4291 |
| NAT64 (well-known prefix) | 64:ff9b::192.0.2.1 = 64:ff9b::c000:201 | IPv6-only mobile networks reaching IPv4 sites | RFC 6052 |
| 6to4 prefix | 2002:c000:201::/48 | Old tunnels; mostly switched off | RFC 3056 (deprecated for anycast, RFC 7526) |
| IPv4-compatible | ::192.0.2.1 | Nowhere today | Deprecated (RFC 4291) |
To write an IPv4 in hexadecimal, convert each number: 192 = c0, 0 = 00, 2 = 02, 1 = 01, so 192.0.2.1 = c000:0201. Both notations (::ffff:192.0.2.1 and ::ffff:c000:201) are the same address.
Moving From IPv4 to IPv6: Why, and the Transition Methods
IPv4 has 232 addresses, about 4.3 billion. IANA handed out its last free blocks on 3 February 2011, and the RIPE NCC (Europe) ran out on 25 November 2019. IPv6 ends the shortage, but the two protocols can't talk to each other directly, so networks run them side by side or translate.
| Method | How it works | Where you meet it | Standard |
|---|---|---|---|
| Dual stack | Devices have an IPv4 and an IPv6 address and use whichever each website supports. | Home and office connections with IPv6 | RFC 4213 |
| NAT64 + DNS64 | IPv6-only devices reach IPv4 sites through a translator, using the NAT64 form shown above (64:ff9b:: + the IPv4). | IPv6-only networks | RFC 6146, RFC 6147, RFC 6052 |
| 464XLAT | A translator on the device (usually the phone) turns IPv4 traffic into IPv6, and the network's NAT64 turns it back. | Mobile networks | RFC 6877 |
| DS-Lite | IPv4 packets travel inside IPv6 to the ISP, which shares public IPv4 addresses between customers. | ISPs with IPv6-only access networks | RFC 6333 |
| 6to4 | A public IPv4 gets a /48 under 2002::/16 (2002: + the IPv4 in hex), tunnelled over IPv4 (the 6to4 form shown above). | Old tunnels; rarely used: its anycast relays were deprecated in 2015 and 6to4 is off by default | RFC 3056, RFC 7526 |
For a home user there is nothing to convert: once IPv6 is enabled on your ISP's side and your router, your devices get IPv6 addresses automatically and keep IPv4 alongside. How many people have it today: IPv6 adoption in 2026.
IPv4-Mapped Addresses in Firewalls and Logs
Dual-stack servers may log and match IPv4 clients as ::ffff:a.b.c.d; rules must cover both forms.
A program that listens on an IPv6 socket with dual-stack enabled receives IPv4 visitors as mapped addresses: a log line shows ::ffff:203.0.113.7 instead of 203.0.113.7. An allow-list written only for IPv4 then misses them, or the reverse. Enter a range above, like 192.0.2.0/24, to get its mapped prefix (::ffff:192.0.2.0/120): the IPv4 prefix length plus 96.
How This Converter Works
| Item | Detail |
|---|---|
| Where it runs | In your browser; nothing is sent to our server. |
| Input | IPv4 addresses (dotted decimal, no leading zeros) or IPv4 CIDR ranges, up to 500 per list. |
| Output | Mapped, NAT64 and 6to4 forms, short (RFC 5952) and expanded; for ranges, the mapped and NAT64 prefixes. |
| Shareable link | /ipv4-to-ipv6?ip=192.0.2.1 opens with that address. |
| Last verified | 10 November 2026 |
Frequently Asked Questions
Can I convert my IPv4 address to IPv6?
What is ::ffff: in front of an IP address?
::ffff:192.0.2.1 is the ordinary IPv4 address 192.0.2.1 written in IPv6 form, the way dual-stack servers and logs show IPv4 clients.What is the IPv6 version of 192.168.1.1?
::ffff:192.168.1.1 (::ffff:c0a8:101). Your router's real IPv6 address is unrelated: it comes from your provider.What is a 6to4 address?
2002: followed by the IPv4 in hexadecimal gave each public IPv4 a /48 of IPv6, tunnelled over IPv4. It's rarely used now.What is NAT64?
64:ff9b:: followed by the IPv4 in hexadecimal, and the NAT64 gateway turns them into IPv4 connections.Why are we moving from IPv4 to IPv6?
How do I get IPv6?
Next steps