IPv4 to IPv6 Converter

Convert an IPv4 address into its IPv6 representations. Enter any IPv4 address and the tool shows the IPv4-mapped (::ffff:a.b.c.d), IPv4-compatible and 6to4 forms, each in both compressed and full eight-group notation. Free and instant in your browser.

Read the guide: How to Convert IPv4 to IPv6
IPv4-mapped IPv6
::ffff:192.0.2.5
The form most systems use to carry an IPv4 address over IPv6.
IPv4-mapped (compressed)::ffff:192.0.2.5
IPv4-compatible (compressed)::c000:205
6to4 (compressed)2002:c000:205::
IPv4-mapped (full)0000:0000:0000:0000:0000:ffff:c000:0205
IPv4-compatible (full)0000:0000:0000:0000:0000:0000:c000:0205
6to4 (full)2002:c000:0205:0000:0000:0000:0000:0000
The IPv4-compatible form is deprecated and shown for reference. The 6to4 form embeds your address into the 2002::/16 prefix.

How it works

  1. 1

    Enter the IPv4 address

    Type a dotted-quad address such as 192.0.2.5 into the field.

  2. 2

    Read the IPv6 forms

    See the IPv4-mapped, IPv4-compatible and 6to4 representations side by side.

  3. 3

    Copy the form you need

    Each result has a copy button, in both the short and full notation.

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

What is an IPv4-mapped IPv6 address?
It is the form ::ffff:a.b.c.d, where the last 32 bits hold the IPv4 address and the prefix is ::ffff:0:0/96. A dual-stack host uses it so a single IPv6 socket can also talk to IPv4 peers. For 192.0.2.5 the mapped address is ::ffff:192.0.2.5, which in pure hex is ::ffff:c000:205.
What is the difference between IPv4-mapped and IPv4-compatible?
Both put the IPv4 address in the low 32 bits, but the compatible form (::a.b.c.d, prefix ::/96) has all-zero upper bits, while the mapped form sets the 16 bits before the address to ffff. The compatible form is deprecated and shown only for reference; the mapped form is what current systems use.
What is a 6to4 address?
A 6to4 address embeds an IPv4 address into the 2002::/16 prefix, giving the IPv4 host an entire IPv6 /48 to use over a 6to4 tunnel. For 192.0.2.5 the 6to4 prefix is 2002:c000:205::, since c000:0205 is 192.0.2.5 in hex.
Does this conversion run on a server?
No. The address is converted entirely in your browser, so the IPv4 address you enter is never sent anywhere. It keeps working once the page has loaded, even offline.