IPv4 to IPv6 Converter
Embed IPv4 in a mapped or NAT64 address, or extract it from a matching IPv6 address. Convert one address or a whole list locally.
An IPv4 address has no universal native IPv6 equivalent. These representations do not assign an IPv6 address or create connectivity.
Enter addresses and choose Convert addresses.
Conversion results
Exports include every row and its warnings or error. Copy includes only successful main results.
| Line | Input | Result | Validation |
|---|
Inspect the conversion
128-bit address layout
Which representation should I use?
IPv4-mapped: 80 zero bits, 16 one bits (ffff), then the 32 IPv4 bits. Dotted and hexadecimal outputs describe the same 128-bit value. A mapped address in an application log usually represents an IPv4 peer.
NAT64: an IPv4-embedded address built for a translator’s prefix. The configured prefix determines where the IPv4 bytes go. A /96 puts them at the end; shorter supported prefixes skip the reserved u octet at bits 64–71. Generated suffix bytes are zero. Extraction reports a nonzero suffix and ignores it, as RFC 6052 recommends.
The well-known 64:ff9b::/96 prefix must not be used for non-global IPv4 addresses. This calculator still shows their arithmetic with a warning. The local-use example 64:ff9b:1::/96 is one possible subnet of the RFC 8215 allocation; an operator must configure its actual use. Documentation prefixes are examples only.
Reverse conversion requires the selected representation and, for NAT64, a matching configured prefix. A match alone does not prove that an address is used by a translator. Arbitrary native IPv6, 6to4, Teredo, ISATAP and deprecated IPv4-compatible formats are outside this tool’s scope.
Validation, CIDR and limits
Input addresses are single hosts. CIDR entries are rejected rather than converted into misleading networks: NAT64’s inserted reserved octet and suffix make address-set mapping different from a simple prefix-length addition. Only the NAT64 prefix field accepts CIDR notation.
Compressed, expanded, uppercase and IPv4-tail IPv6 syntax are accepted. Output hex uses lowercase, the longest zero run (first on ties), and never compresses one zero group. Whitespace around a line and empty lines are ignored; errors stay attached to their original line numbers.
Prefix validation checks supported length, alignment, the reserved octet, and obvious incompatible ranges. It cannot verify ownership, translator configuration, current routing, or reachability. Common non-global IPv4 ranges are flagged using the IANA registry snapshot checked on 2026-10-21; an unflagged address is not a reachability guarantee.
All calculations stay in this page. No DNS queries, packet translation, network probes or persistent browser storage are used. Editing any input clears previous results.
Standards and references
- RFC 4291 §2.5.5.2 — IPv4-mapped address format.
- RFC 6052 §§2–3 — translation layouts, prefix lengths, reserved bits and well-known prefix restrictions.
- RFC 5952 — IPv6 text formatting.
- RFC 8215 — local-use IPv4/IPv6 translation prefix.
- IANA IPv4 Special-Purpose Address Registry — non-global address checks; reachability still depends on context.