Canonical: https://toolipedia.app/ipv4-to-ipv6-mapper

# IPv4 to IPv6 Mapper

Convert an IPv4 address into IPv4-mapped, 6to4 and NAT64 IPv6 forms with any prefix length, or find the IPv4 address hidden inside an IPv6 address.

Breadcrumbs: Toolipedia > Developer tools > Code and developer utilities > IPv4 to IPv6 Mapper

## About IPv4 to IPv6 Mapper

IPv4 addresses live inside IPv6 in several fixed formats. This tool shows all of them for one IPv4 address: the IPv4-mapped form ::ffff:192.0.2.33 used by dual-stack sockets, the IPv4-translated form, the deprecated IPv4-compatible form, the 6to4 prefix 2002:c000:221::/48, and NAT64 addresses built with the well-known prefix 64:ff9b::/96 or any prefix length from /32 to /96 using the byte positions of RFC 6052. Paste an IPv6 address instead and it finds the embedded IPv4 address in each format.

## How to use IPv4 to IPv6 Mapper
1. Type an IPv4 address to see its IPv6 forms, or an IPv6 address to extract the IPv4 address.
2. If you use NAT64 with your own prefix, enter the prefix and its length.
3. Copy the form you need from the table and read the notes about when each form is used.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- ipv4 to ipv6 mapper
- ipv4 mapped ipv6 address
- nat64 address calculator
- 6to4 address from ipv4
- convert ipv4 to ipv6
- ipv6 to ipv4 extractor

## Frequently asked questions

### When is the ::ffff: form used?

Operating systems show IPv4 clients of a dual-stack server as ::ffff:a.b.c.d. These addresses appear in logs and sockets but are never sent on the network.

### Why is the prefix length /96 the common NAT64 choice?

With /96 the IPv4 address sits in the last 32 bits, which is easy to read. Shorter prefixes split the address around a reserved byte, as RFC 6052 defines.

### Can I use 64:ff9b::/96 for private addresses?

No. RFC 6052 forbids the well-known prefix for non-global IPv4 addresses, so the page warns you and you should use a network-specific prefix instead.

### Is IPv4 to IPv6 Mapper free?

Yes. IPv4 to IPv6 Mapper on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with IPv4 to IPv6 Mapper:
- [IP address converter](https://toolipedia.app/ip-address-converter)
- [Random IPv4 and IPv6 Address List](https://toolipedia.app/random-ip-list-generator)
- [Google Maps location share and embed code maker](https://toolipedia.app/google-maps-embed-generator)
- [Webhook tester (mock request endpoint)](https://toolipedia.app/webhook-tester)
- [IPv6 Address Expander and Compressor](https://toolipedia.app/ipv6-expander-compressor)
