IPv4 To IPv6 Converter
FreeGenerates IPv4-mapped, IPv4-compatible, 6to4, and NAT64 IPv6 representations of an IPv4 address, and extracts the IPv4 address back out of any of those IPv6 forms.
Runs entirely in your browser. Your IP addresses are never uploaded anywhere.
IPv4 to IPv6
IPv6 back to IPv4
Recent Activity
Visible to everyone. Last 20 uses across all visitors, newest first.
192.0.2.1 converted to IPv6
1 hour ago
What this tool does
Enter an IPv4 address and this tool generates every standard IPv6 representation of it at once: IPv4-mapped (both dotted and hex notation), IPv4-compatible (deprecated), 6to4, and NAT64. It also works in reverse, paste any of these IPv6 forms into the second field to extract the original IPv4 address.
How It Works
An IPv4 address is 32 bits, which maps directly onto the last two 16-bit groups of an IPv6 address once converted to hexadecimal. 192.0.2.1 becomes the hex groups c000:0201, which then gets embedded after the prefix that defines each format: ::ffff: for IPv4-mapped, a bare :: for the deprecated IPv4-compatible form, 2002: for 6to4, and 64:ff9b:: for NAT64. Reversing the process just means recognizing the prefix and converting the trailing hex groups (or dotted decimal) back into four bytes.
Problems it solves
- Recognizing which IPv4 address is embedded in an IPv6-mapped address seen in a server log or socket connection.
- Constructing a 6to4 or NAT64 address by hand for testing or documentation, without doing the hex conversion manually.
- Understanding the difference between the deprecated IPv4-compatible format and the current IPv4-mapped format.
- Quickly checking all four representations of an address side by side.
Frequently asked questions
›Which of these formats should I actually use?
IPv4-mapped is the one you will see in practice, dual-stack operating systems and applications generate it automatically whenever IPv4 traffic needs to be represented on an IPv6-only code path, for example in server logs or socket APIs. The other three (IPv4-compatible, 6to4, NAT64) are specific to particular transition mechanisms and are useful to recognize, but you would rarely construct them by hand.
›Why is IPv4-compatible marked as deprecated?
It was the original 1990s mechanism for embedding IPv4 addresses, defined back when automatic IPv6-over-IPv4 tunneling used this exact format to signal the underlying address. RFC 4291 formally deprecated it in 2006 in favor of IPv4-mapped addresses, which serve the same embedding purpose without the tunneling assumption.
›What is 6to4 actually for?
It is a transition mechanism that lets a host with only a public IPv4 address participate in IPv6 networks without a dedicated tunnel broker, by embedding its IPv4 address directly into the 2002::/16 IPv6 prefix. It has declined in popularity as native IPv6 and NAT64 coverage have grown, but it still appears in older network configurations.
›What is NAT64 doing with 64:ff9b::?
64:ff9b::/96 is IANA's "Well-Known Prefix" for NAT64, a mechanism that lets IPv6-only clients reach IPv4-only destinations. A NAT64 gateway synthesizes an address like 64:ff9b::192.0.2.1 to represent the IPv4 destination 192.0.2.1, translating traffic between the two protocols.
›Can I convert an IPv6 address back to its IPv4 address?
Yes, paste any IPv4-mapped, IPv4-compatible, 6to4, or NAT64 IPv6 address into the second field, and the embedded IPv4 address is extracted automatically, with the detected format shown alongside it.
Related Tools
Text
Bcrypt Hash Generator Checker
Generate and verify bcrypt password hashes entirely in your browser using WebAssembly, with an adjustable cost factor and salt.
FreeText
Bionic Reading Converter
Convert any text into bionic reading format by bolding the first portion of each word to help you read faster and focus better.
FreeText
Blake2b Hash Generator
Compute the BLAKE2b hash of text or a file in your browser, with adjustable output length and optional keyed hashing (MAC).
FreeText
Caesar Cipher Tool
Encrypt or decrypt text with a classic Caesar cipher, with an A-Z mapping table, brute-force list, letter-frequency chart, and ROT13 shortcut.
FreeText
ASCII Art Generator
Turn typed text or an uploaded image into ASCII art. Choose a font style or character ramp, preserve color, and export as plain text or PNG.
FreeText
Secrets/Config Redactor
Paste a .env or config file and automatically mask API keys, passwords, and tokens next to sensitive key names or known secret formats (AWS, GitHub, Stripe, JWT, PEM). Safe to then paste into a chat AI or bug report.
FreeText
Cron Expression Generator
Build and parse cron expressions with a live field editor, plain-English description, and the next 5 actual run times. Supports presets, @ shortcuts, and the optional 6-field seconds variant.
FreeText
DMARC Record Generator
Build a DMARC DNS record from plain-language fields, with staged rollout presets and a live enforcement-level indicator.
Comments (0)
Found this tool useful? Leave a comment, share a tip, or tell us how we can make it better.
No comments yet. Be the first to share your thoughts!