You don't have javascript enabled. Please enable javascript to use this website.

IPv4 to IPv6 Converter

Get the IPv4-mapped IPv6 representation for any IPv4 address — ::ffff: notation per RFC 4291, single or bulk mode.
IPv4 Address:
Convert to IPv6 Clear
More Tools

What Is an IPv4-Mapped IPv6 Address?

IPv4 to IPv6 converter maps any valid IPv4 address to its IPv4-mapped IPv6 representation per RFC 4291 §2.5.5.2. The resulting address embeds the 32-bit IPv4 value within the 128-bit IPv6 space using the ::ffff:0:0/96 prefix — 80 zero bits, followed by 16 all-one bits (0xFFFF), followed by the IPv4 address expressed as two four-digit hexadecimal groups. For example, 8.8.8.8 converts to ::ffff:0808:0808. Dual-stack applications use this format to accept IPv4 connections through a single AF_INET6 socket without maintaining a separate IPv4 socket alongside it.


IPv4 to IPv6 Converter — Convert Any IPv4 Address to Its IPv4-Mapped IPv6 Representation

Enter any valid IPv4 address to receive its IPv4-mapped IPv6 representation in ::ffff:xxxx:xxxx format per RFC 4291 §2.5.5.2.

1

Choose a Conversion Mode

Select Single IP to convert one address, or Bulk List to convert multiple IPv4 addresses at once — one address per line.
2

Enter Your IPv4 Address

Type or paste a valid IPv4 address in dotted-decimal notation — for example, 192.168.1.1 or 8.8.8.8.
3

Click Convert to IPv6

Click the Convert to IPv6 button. The tool converts each octet to two-digit hexadecimal and prepends the ::ffff: prefix.
4

Read the IPv4-Mapped IPv6 Address

Read the result — for example, 192.168.1.1 becomes ::ffff:c0a8:0101, the standard dual-stack representation per RFC 4291.

IPv4-Mapped vs. 6to4 — Two Different Transition Formats

IPv4-to-IPv6 representation is not a single standard — two distinct formats exist for different purposes. This tool produces the IPv4-mapped format only. Understanding the difference is essential before applying the output to any network configuration.

IPv4-Mapped (::ffff:0:0/96) 6to4 (2002::/16)
RFC RFC 4291 §2.5.5.2 RFC 3056
Prefix ::ffff: 2002:
Example (8.8.8.8) ::ffff:0808:0808 2002:0808:0808::
Purpose Dual-stack socket API — AF_INET6 compatibility Tunnel IPv6 packets over IPv4 infrastructure
Globally routable No — internal use only Was routable; deprecated by RFC 7526
Used by Linux, macOS, Windows dual-stack sockets Legacy transition routers — largely retired

How IPv4 to IPv6 Conversion Works

RFC 4291 reserves the ::ffff:0:0/96 range — a /96 block containing 232 addresses, one for every valid IPv4 address — within the 128-bit IPv6 address space specifically for this purpose.

The conversion follows a fixed algorithm: each of the four decimal octets is converted to a two-digit hexadecimal value. The two leftmost octets are concatenated into a four-digit hex group; the two rightmost octets form a second four-digit hex group. The ::ffff: prefix is prepended.

For 192.168.1.1: 192 → c0, 168 → a8, 1 → 01, 1 → 01 → result: ::ffff:c0a8:0101.

The conversion is reversible — strip the ::ffff: prefix, split the remaining address into one-byte hex pairs, and convert each pair back to decimal. All processing runs in the browser using JavaScript — no address data leaves the device.

Common Uses for IPv4 to IPv6 Conversion

Dual-stack application development. A developer building a server that binds to an AF_INET6 socket needs to represent incoming IPv4 client addresses in IPv4-mapped format. Converting the expected source addresses in advance confirms that ACL entries, logging parsers, and rate-limit keys will match the socket's representation of those clients.

Firewall and access-control list migration. A network engineer migrating from a pure-IPv4 perimeter to a dual-stack architecture needs to express existing IPv4 ACL entries in IPv4-mapped notation. Converting the source rules confirms coverage before cutover, reducing the risk of unintended allow or deny mismatches on the new stack.

Log analysis on dual-stack servers. A sysadmin reviewing nginx or Apache access logs on a dual-stack host sees entries in ::ffff:x.x.x.x notation for IPv4 clients. Converting known IPv4 addresses to their mapped equivalent allows grep and log-analysis pipelines to match entries without writing dual-format patterns.


Frequently Asked Questions

What is an IPv4-mapped IPv6 address?
An IPv4-mapped IPv6 address is a 128-bit address that embeds a 32-bit IPv4 address using the ::ffff:0:0/96 prefix, as defined in RFC 4291 §2.5.5.2. The structure is 80 zero bits, followed by 16 all-one bits (0xFFFF), followed by the IPv4 address in hexadecimal. Dual-stack applications use this format to handle IPv4 connections through AF_INET6 sockets without maintaining a separate IPv4 socket.
What does the ::ffff: prefix in the output mean?
The ::ffff: prefix identifies the IPv4-mapped address range (::ffff:0:0/96) reserved within the IPv6 address space per RFC 4291. The :: represents 80 consecutive zero bits; ffff represents 16 all-one bits. Together, they signal to an IPv6 network stack that the remaining 32 bits are an embedded IPv4 address — not a native IPv6 address.
What is the difference between an IPv4-mapped address and a 6to4 address?
An IPv4-mapped address (::ffff:, RFC 4291) is used internally by dual-stack operating systems to allow IPv6-aware applications to communicate with IPv4 hosts through a single socket. A 6to4 address (2002::/16, RFC 3056) is a transition mechanism that embeds an IPv4 address in a globally routable IPv6 prefix for tunneling IPv6 traffic over IPv4 networks. They serve different purposes and are not interchangeable — this tool produces the IPv4-mapped format only.
How accurate is the conversion?
The conversion is mathematically exact. Each of the four IPv4 octets is converted to a two-digit hexadecimal value — the two leftmost octets form the first four-digit hex group, the two rightmost form the second. Any well-formed IPv4 address produces a valid, standards-compliant IPv4-mapped IPv6 address. Octets outside the 0–255 range or non-numeric input return an error.
Do you store or log the IP addresses I convert?
No. All conversion happens locally in the browser using JavaScript — no address data is sent to any server, and nothing is stored or logged.
Can I convert private IPv4 addresses like 192.168.x.x?
Yes. Any valid IPv4 address — public, private (RFC 1918 ranges 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), or loopback (127.0.0.1) — can be expressed as an IPv4-mapped IPv6 address. The mapping is not limited to public addresses. For example, 192.168.1.1 maps to ::ffff:c0a8:0101.

Related Guides

Guide What is IPv4?
the 32-bit addressing model that IPv4-mapped IPv6 addresses embed, including address classes, exhaustion, and the CIDR transition.
Guide What is IPv6?
the 128-bit successor protocol and the address space that the ::ffff:0:0/96 range occupies, including dual-stack deployment and transition mechanisms.