IPv4 to IPv6 converter (mapped notation)

Convert IPv4 addresses to IPv6 notation.

Was this helpful?
Share Tool

Dual-stack stacks often write an IPv4 address inside IPv6 as ::ffff: followed by the same 32 bits. Paste 192.168.1.1 (the default) and this page prints ::ffff:c0a80101 as ::ffff:c0a8:0101. It does not allocate a public IPv6 prefix, does not tunnel packets, and does not look the address up in WHOIS.

The form is one IPv4 field. Output updates as you type. Malformed dotted quads are rejected (four octets, 0–255, no leading zeros). If you need a real IPv6 address for a host, talk to your ISP or use SLAAC/DHCPv6 on the LAN. Pair with the CIDR calculator when the question is “what range does this mask cover?” rather than “how do I spell this IPv4 in IPv6 syntax?” Mapped vs 6to4 vs NAT64, with a 192.0.2.33 walkthrough, is in how to convert IPv4 to IPv6.

How to convert IPv4 to mapped IPv6

  1. Paste a dotted IPv4 (192.168.1.1).
  2. Read the ::ffff: mapped form (hex quartets).
  3. Copy the string you need into a config. Do not publish it as “our IPv6” — it is still IPv4.
  4. Use the CIDR tool if you also need a prefix length. Ask your host for a native prefix if you need to serve AAAA.

Key Features

  • IPv4-mapped IPv6 (::ffff: plus hex quartets)
  • Rejects malformed dotted quads
  • No GeoIP, no WHOIS, no ISP API
  • Complements the CIDR calculator

What the output actually is

  • 192.168.1.1 → ::ffff:c0a8:0101 because 192=c0, 168=a8, 1=01, 1=01 in hex.
  • The same 32 bits can also be written ::ffff:192.168.1.1 on some stacks. This tool prints the hex-quartet form.
  • A native address like 2001:db8::1 has no IPv4 equivalent. This converter does not invent one.
  • Private IPv4 still maps to a mapped form. It does not become globally routable IPv6.

Eight addresses, written as mapped hex

  • Each octet becomes two lowercase hex digits. The first pair and the second pair form one quartet. 8.8.8.8 is ::ffff:0808:0808. 10.0.0.1 is ::ffff:0a00:0001. 127.0.0.1 is ::ffff:7f00:0001. 172.16.0.1 is ::ffff:ac10:0001. 192.0.2.33 is ::ffff:c000:0221. 203.0.113.7 is ::ffff:cb00:7107. 0.0.0.0 is ::ffff:0000:0000. 255.255.255.255 is ::ffff:ffff:ffff.
  • The leading zero in 08 is required by this page. A config that wants the dotted form ::ffff:8.8.8.8 will not match the string character for character, even though it is the same 32 bits. This tool never prints the dotted-IPv4 style.
  • 192.168.1.1, the sample in the box, is ::ffff:c0a8:0101 because 192 is c0, 168 is a8, and each 1 is 01.
IPv4Mapped form
8.8.8.8::ffff:0808:0808
10.0.0.1::ffff:0a00:0001
192.0.2.33::ffff:c000:0221
255.255.255.255::ffff:ffff:ffff

Rejected spellings

  • Four octets are required. 1.2.3 stops with “Must have 4 octets.” 192.168.1.1.5 does the same. Each octet must be an integer from 0 to 255 with no leading zero, so 08.8.8.8 and 192.168.001.1 fail even though a person can see the intended address. 256.1.1.1 fails the range check.
  • Whitespace, a slash prefix, and a port are not stripped. 192.168.1.1/24 is not a mapped address here. IPv6 input is not converted backwards. ::ffff:c0a8:0101 pasted into the IPv4 box is invalid, not decoded to 192.168.1.1.
  • A private address maps just as a public one does. ::ffff:0a00:0001 is still 10.0.0.1. It is not a globally routable IPv6 prefix, and publishing it as an AAAA record does not put the host on the IPv6 Internet.

How to copy the string into a config

  • Type the four decimal octets, read the mapped line, and paste that exact string if the software asks for IPv4-mapped IPv6 notation. If it asks for a real AAAA target, stop. You need a prefix from the network, not this spelling.
  • When the box shows a red error, fix the octets before you copy anything. An empty field clears the output rather than leaving the previous address on screen.

Frequently Asked Questions

Will this give my website IPv6?

No. Enable AAAA records at your DNS/host. Mapped notation is a spelling, not an assignment.

Is ::ffff:192.168.1.1 a public IPv6 address?

No. It is a representation of IPv4 inside IPv6. Hosts on the public Internet still need a real IPv6 prefix.

Can you convert IPv6 back to IPv4?

Only mapped addresses contain an IPv4. A native 2001:db8::1 address has no IPv4 equivalent. This tool maps IPv4 → IPv6 notation only.

Expert Guide for IPv4 to IPv6

View Blog
How to Convert IPv4 to IPv6 (Mapped, 6to4, Examples)

How to Convert IPv4 to IPv6 (Mapped, 6to4, Examples)

IPv4 has no 1:1 IPv6 twin, but 3 standard notations exist. See ::ffff: mapped, 6to4 and NAT64 forms with worked examples and when to use each.

Read Guide

Categories

Browse all FlashKit tools