IPv4 to IPv6 Converter

Your IPv4 written in IPv6 notation, for sockets, firewalls and NAT64.

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

Form192.0.2.1 becomesWhere you meet itStandard
IPv4-mapped::ffff:192.0.2.1 = ::ffff:c000:201Server logs, dual-stack sockets, access listsRFC 4291
NAT64 (well-known prefix)64:ff9b::192.0.2.1 = 64:ff9b::c000:201IPv6-only mobile networks reaching IPv4 sitesRFC 6052
6to4 prefix2002:c000:201::/48Old tunnels; mostly switched offRFC 3056 (deprecated for anycast, RFC 7526)
IPv4-compatible::192.0.2.1Nowhere todayDeprecated (RFC 4291)
Diagram: 8.8.8.8 written as the IPv4-mapped address ::ffff:0808:0808 and as the deprecated 6to4 prefix 2002:0808:0808::
The same IPv4, two ways of writing it inside IPv6.

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.

MethodHow it worksWhere you meet itStandard
Dual stackDevices have an IPv4 and an IPv6 address and use whichever each website supports.Home and office connections with IPv6RFC 4213
NAT64 + DNS64IPv6-only devices reach IPv4 sites through a translator, using the NAT64 form shown above (64:ff9b:: + the IPv4).IPv6-only networksRFC 6146, RFC 6147, RFC 6052
464XLATA translator on the device (usually the phone) turns IPv4 traffic into IPv6, and the network's NAT64 turns it back.Mobile networksRFC 6877
DS-LiteIPv4 packets travel inside IPv6 to the ISP, which shares public IPv4 addresses between customers.ISPs with IPv6-only access networksRFC 6333
6to4A 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 defaultRFC 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

ItemDetail
Where it runsIn your browser; nothing is sent to our server.
InputIPv4 addresses (dotted decimal, no leading zeros) or IPv4 CIDR ranges, up to 500 per list.
OutputMapped, 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 verified10 November 2026

Frequently Asked Questions

Can I convert my IPv4 address to IPv6?
You can write it in IPv6 notation, but that doesn't give you an IPv6 address or IPv6 internet. Your provider assigns IPv6 separately; test whether you have it on our What is IPv6? page.
What is ::ffff: in front of an IP address?
It's the IPv4-mapped prefix: ::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?
In mapped form it's ::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?
An old transition method: 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?
A translator that lets IPv6-only devices reach IPv4 servers. They use addresses like 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?
IPv4 ran out: it has about 4.3 billion addresses, and the central pool (IANA) gave out its last blocks in February 2011. IPv6 has 2128 addresses, enough for every device to have its own, without sharing one public IPv4 address through NAT.
How do I get IPv6?
Your provider and router must support it; on most modern routers it's a setting. Check your connection with the live test on our What is IPv6? page.

Next steps

Related Tools

IPv6 to IPv4 Converter
Find the IPv4 address inside an IPv6 address.
IPv6 Compressor
Shorten any IPv6 address to its RFC 5952 form.
IPv6 Expander
Write any IPv6 address out in full.
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.
Guide What is IPv4?
your IPv4 decoded, and why addresses ran out.