Skip to content
UniKit

IPv4 to IPv6

Convert an IPv4 address to an IPv4-mapped IPv6 representation in dotted or hexadecimal form.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

IPv4 address

IPv6 result

IPv4-mapped form.

Enter an IPv4 address to see the result

Value: 0 · Style: 0

What this tool does

  • Write IPv4 addresses as ::ffff: mappings so they line up with what ss or netstat prints in a dual-stack host.
  • Debug "the same host shows up in two formats" problems by confirming that 192.0.2.1 and ::ffff:c000:201 are the same address.
  • Produce mapped-address text for test fixtures: dotted form by default, hex form when the target format needs it.

Example

Input

192.0.2.1

Output

::ffff:192.0.2.1

This is the fixed IPv4-mapped prefix ::ffff:0:0/96 plus the address, not an allocation tool. Switching the output style to hex yields ::ffff:c000:201; both spell the same 32-bit value 3221225985.

Frequently asked questions

Why is the hex style ::ffff:c000:201 and not one long c0000201 group?

In IPv6 text notation every colon-separated group holds at most four hex digits, so a final group with eight digits (::ffff:c0000201) is not a valid address and common parsers reject it. This tool therefore emits two 16-bit groups with leading zeros stripped: 1.2.3.4 becomes ::ffff:102:304.

Is a mapped address the same as a routable IPv6 address?

No. ::ffff:0:0/96 is only the convention for embedding an IPv4 address in IPv6 notation (RFC 4291 IPv4-mapped). It is not something you can use as a general public IPv6 address, and this tool only converts text — it performs no NAT64-style translation.

How strict is the input validation?

Strict: exactly four decimal octets, each 0–255, with no leading zeros (1.2.3.01 is rejected because systems disagree about how to read leading zeros). 1.2.3, 1.2.3.256 and inputs containing letters all raise errors.

Can it read IPv6 or convert back?

No. The direction here is IPv4 to its IPv4-mapped IPv6 text. To expand or compress IPv6 notation, use the IPv6 compressor tool on this site.

Keywords:IPv4IPv6mappednetwork

Related tools