IT Tool

IPv4 to IPv6 Converter - Mapped, 6to4 & Mixed

Convert an IPv4 address into its IPv6-mapped form (::ffff:), 6to4 prefix, and mixed notation, in RFC 5952 canonical hex. Runs entirely in your browser.

Instant 100% Client-Side No Login
PROCESSINGLOCAL
LIMITNONE
PRIVACYBROWSER-ONLY

IPv4 Address

IPv4-Mapped IPv6

The standard way to represent an IPv4 address inside IPv6 (RFC 4291). Dual-stack sockets use this form.

::ffff:c0a8:101
::ffff:192.168.1.1mixed notation

6to4 Prefix

legacy

The /48 prefix assigned to this address under the 6to4 mechanism (RFC 3056). 6to4 is largely historical — RFC 7526 deprecated it.

2002:c0a8:101::/48

IPv4-Compatible IPv6

legacy

A legacy format removed from the standard by RFC 4291. Shown for reference only — do not use it in new configurations.

::c0a8:101
::192.168.1.1mixed notation

“Converting” IPv4 to IPv6 is really three different things

There is no single “the IPv6 version” of an IPv4 address, and that is the confusion this tool exists to clear up. An IPv4 address is 32 bits; an IPv6 address is 128. The extra 96 bits have to be filled with something, and the three formats here fill them differently for three different purposes. Picking the wrong one is the usual mistake — so it helps to know what each is actually for before you copy it.

The only one you will meet day to day is the IPv4-mapped address. When a program opens a dual-stack socket and an IPv4 client connects, the operating system hands the code an address like ::ffff:192.168.1.1. The ::ffff:prefix is a flag that says “the last 32 bits are really an IPv4 address”, letting one code path handle both protocols. You see these in server logs and access-control lists far more often than you generate them by hand.

The hex you get is the address, byte for byte

The conversion itself is not a lookup or an approximation — it is a direct rewrite of the same 32 bits. Each octet becomes two hex digits: 192 is c0, 168 is a8, 1 is 01, and 1 is 01. Group those into two 16-bit blocks and you get c0a8 and 0101, which is why 192.168.1.1 maps to ::ffff:c0a8:101. Nothing is invented; the dotted-decimal and the hex are the same number in two scripts.

The one subtlety is formatting. RFC 5952, the standard for writing IPv6 addresses, says leading zeros inside each group must be dropped: 0101 is written 101, 0808becomes 808, and a zero group is just 0. This tool applies that rule, so the output matches what a router, a log parser, or another engineer’s tooling will produce. It matters because a naive converter that emits ::ffff:c0a8:0101creates a string that is equal in value but unequal as text — and text comparisons are exactly how addresses get matched in config files and firewall rules.

What each format is for

  • IPv4-mapped (::ffff:) — current and standard (RFC 4291). How dual-stack software represents an IPv4 peer. This is the one you will actually see.
  • 6to4 (2002:) — a /48 prefix from a transition scheme that let IPv6 tunnel over IPv4. RFC 7526 deprecated the anycast relay in 2015; treat it as historical.
  • IPv4-compatible (::a.b.c.d) — removed from the standard by RFC 4291 in 2006. Recognise it in old docs; never write it.

What this tool will not accept or do

  • It rejects malformed input rather than guessing: a blank octet (1..2.3), a trailing dot (192.168.1.), or a value above 255 all produce an error, not a silent wrong answer.
  • It does not resolve hostnames or look up which IPv6 address a server actually runs — that is a DNS AAAA-record question, not an arithmetic one.
  • It does not assign, route, or tunnel anything. The strings are representations for planning and reference.
  • It converts one address at a time; it is not a bulk range or CIDR-block translator.

Where these actually help

The most common real use is reading logs. A dual-stack web server will record an IPv4 visitor as ::ffff:203.0.113.5, and if you are grepping access logs or writing a rule to match that client, you need to recognise that the ::ffff: form and the plain 203.0.113.5are the same host. The second use is sanity-checking a firewall or ACL entry: paste the IPv4 address, confirm the mapped form matches what your rule expects, and move on. Both are quick lookups, which is why the whole thing runs locally with no network round trip — the address you type never leaves the page.

Note: These outputs are representations of an address, not interface configuration. The mapped form is how software refers to an IPv4 peer; the 6to4 and IPv4-compatible forms are historical. Verify against your own routing and DNS before relying on any of them in a live system.

How to Use

1

Enter an IPv4 address in dotted-decimal notation, such as 192.168.1.1.

2

The tool validates the four octets and converts on every keystroke — no button, no reload.

3

Read the IPv4-mapped address (::ffff:), the 6to4 /48 prefix, and the legacy IPv4-compatible form, each in canonical hex.

4

Copy the exact string you need; the mapped address also offers the mixed ::ffff:192.168.1.1 notation.

Features

IPv4-mapped IPv6 (::ffff:) in both canonical hex and mixed dotted-quad notation
6to4 /48 prefix (2002:) for the address
Output follows RFC 5952: leading zeros in each hex group are suppressed
Legacy IPv4-compatible form shown for reference and clearly marked as removed from the standard
Strict validation: rejects blank octets, trailing dots, and values above 255
Runs entirely in your browser — no IP address is sent to a server

Common Questions

About IPv4 to IPv6 Converter

Enter an IPv4 address and get its IPv4-mapped IPv6 form (::ffff:), the 6to4 /48 prefix (2002:), and the legacy IPv4-compatible form, each written in canonical RFC 5952 hex with leading zeros suppressed — so 192.168.1.1 becomes ::ffff:c0a8:101, not ::ffff:c0a8:0101. The mapped address is also shown in the readable mixed ::ffff:192.168.1.1 notation. The conversion is a direct bit-for-bit rewrite of the same 32 bits, not a lookup, and it validates strictly: blank octets, trailing dots, and values above 255 are rejected rather than silently miscalculated. The 6to4 and IPv4-compatible forms are clearly marked as historical (deprecated by RFC 7526 and RFC 4291). Everything runs in the browser with no IP data leaving the page.

Also known as: convert ipv4 to ipv6, ip version converter, ipv4 mapped ipv6, ffff ipv6 address, ipv4 to ipv6 hex, 6to4 prefix, ipv6 canonical form, ip address to hex, dual stack address, ipv6 transition format.

Processing Note

IPv4 to IPv6 Converter runs in your browser, so the input you enter is processed locally on this page and is not uploaded to a ToolMintX account.

Tool Limits

IT tools provide quick diagnostics and transformations. They cannot see every private network, deployment setting, proxy, firewall, or production edge case.

Explore More