IPv4 to IPv6 converter
Enter an IPv4 address to see how it is written in IPv6: the IPv4-mapped form ::ffff:192.0.2.33 that dual-stack servers log, the NAT64 address 64:ff9b::192.0.2.33 used by IPv6-only networks, the 6to4 prefix 2002:c000:0221::/48 and the old compatible form. Switch direction to paste an IPv6 address and find out whether it carries an IPv4 address and which mechanism put it there, including Teredo. These are notations, not a way to give an IPv4-only server IPv6 connectivity, and the tool says so for each form.
Direction
A /96 IPv6 prefix, for example 2001:db8:64::/96.
Enter an IPv4 address to see its IPv6 forms.
These are notations. Writing an IPv4 address in IPv6 form doesn't give a host IPv6 connectivity.
How to use the IPv4 to IPv6 Converter
- 1
Pick a direction
IPv4 to IPv6, or IPv6 to IPv4 to find an embedded address.
- 2
Enter the address
Type an IPv4 address such as 192.0.2.33, or an IPv6 address such as ::ffff:c000:221.
- 3
Add a NAT64 prefix if your network uses one
Optional: a /96 prefix such as 2001:db8:64::/96 builds the address your own NAT64 gateway uses.
- 4
Read what each form is for
Every result has a short note on where it is used and whether it is still current.
How IPv4 fits into IPv6
An IPv4 address is 32 bits; IPv6 is 128 bits. Every form here places those 32 bits inside an IPv6 address. IPv4-mapped puts them after ::ffff: (RFC 4291). NAT64 puts them after a /96 prefix, by default 64:ff9b:: (RFC 6052). 6to4 puts them right after 2002: to form a /48 network (RFC 3056).
Teredo (RFC 4380) stores the client's public IPv4 address in the last 32 bits with every bit inverted, so reading it back means flipping the bits again.
- 192.0.2.33 → ::ffff:192.0.2.33 = ::ffff:c000:221
- 192.0.2.33 → 64:ff9b::192.0.2.33 (NAT64)
- 192.0.2.33 → 2002:c000:0221::/48 (6to4)
When to use it
- Read server or firewall logs that show IPv4 visitors as ::ffff: addresses.
- Work out the NAT64 address an IPv6-only network uses to reach an IPv4 service.
- Identify the IPv4 address hidden in a 6to4 or Teredo address in old logs.
Limits
- This is address arithmetic only; it does not test connectivity. Use the IPv6 test to see whether your own connection has IPv6.
- 6to4 and the IPv4-compatible form are deprecated (RFC 7526, RFC 4291) and shown for reading old configurations.
Privacy
Everything is calculated in your browser; no address is sent anywhere.
Frequently asked questions
Can I convert an IPv4 address to IPv6 to get IPv6 access?
No. Writing an IPv4 address in IPv6 notation doesn't give a host an IPv6 connection. A server needs its own IPv6 address from its provider, or the network needs a translator such as NAT64.
What is an IPv4-mapped IPv6 address?
An address of the form ::ffff:a.b.c.d. Dual-stack programs use it internally to represent an IPv4 peer on an IPv6 socket, which is why web server logs sometimes show visitors as ::ffff:203.0.113.5.
What is 64:ff9b::/96?
The well-known NAT64 prefix from RFC 6052. On an IPv6-only network with DNS64 and NAT64, a request to 64:ff9b::192.0.2.33 is translated into an IPv4 connection to 192.0.2.33.
Is 6to4 still used?
Rarely. RFC 7526 deprecated the anycast 6to4 relays in 2015 because they were unreliable. You may still see 2002:: addresses in old configurations and logs.
How do I get the IPv4 address from a Teredo address?
Teredo addresses start with 2001:0::. The last 32 bits are the client's public IPv4 address with every bit inverted. Switch to IPv6 to IPv4 and the tool flips them for you.
Why is ::1 not treated as an IPv4-compatible address?
::1 is the IPv6 loopback address and :: is the unspecified address. The deprecated compatible form never applied to them.
Related tools
People also use
- Internet Speed TestMeasure your download and upload speed, ping and jitter in a few seconds, with no app or sign-up.
- What Is My IP AddressSee the public IP address your connection uses, with IPv4, IPv6, approximate location and internet provider.
- Ping TestMeasure latency, jitter and packet loss over a run, with a live chart and a verdict for games and calls.
- WHOIS Lookup (RDAP)See who a domain is registered with, when it was created and expires, its name servers and abuse contact.
Last updated November 29, 2026 · How we build and test our tools