IPv6 to IPv4 Converter

Paste an IPv6 address to extract the IPv4 address inside it — when one exists. Works with IPv4-mapped (::ffff:) addresses in both dotted and pure-hex form.

Other Tools

The honest starting point

Most IPv6 addresses cannot be converted to IPv4, and this tool will tell you so plainly when that is the case. IPv6 is not a longer spelling of IPv4 — it is a separate, vastly larger address space. Of the 340 undecillion IPv6 addresses, only a tiny, specially reserved corner actually contains an IPv4 address. Conversion works exactly for that corner:

  • IPv4-mapped addresses — ::ffff:0:0/96, e.g. ::ffff:192.168.1.1 or ::ffff:c0a8:0101
  • IPv4-compatible addresses — ::/96 (deprecated), e.g. ::192.168.1.1
  • 6to4 addresses — 2002::/16, which embed an IPv4 address in the second and third groups

Everything else — the ordinary global addresses starting 2001:, 2600:, 2a00: and so on that real IPv6 connections use — has no IPv4 equivalent, because the host never had an IPv4 identity to embed.

How the extraction works

For a mapped address, take the last 32 bits and split them into four bytes:

::ffff:c0a8:0101 → c0 = 192, a8 = 168, 01 = 1, 01 = 1 → 192.168.1.1

The tool performs exactly this, accepting the address in dotted form (::ffff:192.168.1.1), hex form (::ffff:c0a8:101), fully expanded form (0000:…:ffff:c0a8:0101) or with the zero run written out — all the spellings systems produce in the wild. It also validates the address first: malformed IPv6 gets a clear error instead of a wrong answer.

Where you meet convertible addresses

  • Server logs — the most common source. An IPv6 socket receiving an IPv4 connection logs the peer as ::ffff:203.0.113.7. Converting reveals the ordinary IPv4 address you can then run through the IP Lookup or IP Blacklist Checker.
  • Dual-stack applications — software storing one address format converts back to talk to IPv4-only services.
  • Firewall and analytics work — normalising mixed logs into a single family before analysis.

Special addresses worth knowing

::1 is IPv6 loopback — the equivalent of 127.0.0.1, but it's its own address, not a conversion of one. :: is the unspecified address (like 0.0.0.0). fe80: addresses are link-local, the IPv6 counterpart of 169.254.x.x. The tool identifies these rather than forcing a fake conversion.

Diagram of the eight 16-bit groups of an IPv6 address and how zero runs compress to a double colon

Going the other way

To embed an IPv4 address into IPv6 notation — for dual-stack software, rules or records — use the IPv4 to IPv6 Converter. And if your IPv6 address is simply longer than it needs to be, Compress IPv6 shortens it to the canonical form without changing its meaning.

A word about the transition

Mapped addresses exist because the internet is mid-migration and will be for years. Dual-stack is the pragmatic middle: one machine, both protocols, and notation tricks like ::ffff: to let single sockets and single log formats handle both. Understanding which addresses convert — and why most don't — is really understanding that IPv6 is a new network that runs alongside IPv4, not a re-encoding of it.

Recognising the convertible ranges at a glance

With practice you can spot a convertible address from its first groups, before reaching for any tool. ::ffff: at the start means mapped — whatever follows (dotted or hex) is the IPv4 address. 2002: means 6to4 — read groups two and three as four hex bytes and convert each pair to decimal. Anything starting :: with something other than ffff in the last groups is likely an old compatible form or a special address like ::1. And the giveaway that conversion is impossible: a full-looking global address — 2001:, 2600:, 2a00:, 2400: and their kin — with non-zero groups throughout. Those addresses were born in IPv6 and have no IPv4 ancestor; the honest answer is to use them as they are, and to reach their owners through the IP Lookup and WHOIS records instead.

Frequently asked questions

Can every IPv6 address be converted to IPv4?

No. Only addresses in the reserved transition ranges — IPv4-mapped (::ffff:...), IPv4-compatible, and 6to4 — contain an IPv4 address. Ordinary IPv6 addresses have no IPv4 equivalent, and the tool says so instead of inventing one.

How do I convert ::ffff:c0a8:0101 manually?

Split the last four hex groups' worth of bits into bytes: c0 = 192, a8 = 168, 01 = 1, 01 = 1, giving 192.168.1.1. The converter does this instantly for any valid input format.

Why do my logs show ::ffff: before normal IPs?

An IPv6 socket accepted an IPv4 connection and the OS reported the peer in IPv4-mapped form. It is an ordinary IPv4 client; convert it here to get the familiar address.

What is the IPv4 version of ::1?

::1 is IPv6 loopback; its IPv4 counterpart is 127.0.0.1. They are equivalents by role, not by conversion — neither is mathematically derived from the other.

Does converting change how the address routes?

No. Conversion is a notation change for the addresses that embed IPv4. Routing and connectivity are unaffected.

Looking for something else? Browse all 15 free IP tools or read the router guides on the blog.