IPv4 ↔ IPv6

Convert IPv4 to/from IPv4-mapped IPv6 (::ffff:a.b.c.d).

Monitor this automatically

NetTests can run this check on a schedule, preserve historical results, compare changes over time, and alert you the moment something breaks.

Start monitoring free → See all monitoring products

Frequently Asked Questions

What is an IPv4-mapped IPv6 address?

An IPv4-mapped IPv6 address embeds an IPv4 address within IPv6 address space: ::ffff:192.168.1.1 or equivalently ::ffff:c0a8:0101. This allows IPv6-capable systems to represent IPv4 addresses in a unified format. Linux and BSD kernels use this mapping internally when an IPv6 socket receives an IPv4 connection.

When do I need to convert between IPv4 and IPv6?

Common scenarios: configuring dual-stack (IPv4 + IPv6) servers, debugging why an application shows a ::ffff:x.x.x.x client address in logs (it's IPv4 traffic received on an IPv6 socket), writing firewall rules that need to cover both address families, and understanding IPv6 transition mechanisms (6to4, Teredo, NAT64).

Does every IPv4 address have an IPv6 equivalent?

Every IPv4 address has an IPv4-mapped IPv6 representation (::ffff:0:0/96 range). However, not every IPv6 address maps back to IPv4 — only those in the ::ffff:0:0/96 prefix. Trying to extract an IPv4 from a non-mapped IPv6 address (like a native 2001:db8:: address) will fail.