NewPlus, API and MCP are live — run 175 tools from your own stack.
100www

Tool 136 · I04 · IP / Geo / ASN · Updated Nov 2026

IPv4 / IPv6 Converter

Convert IPv4 to IPv6-mapped form and back, with hex, binary and integer views.

Browser Free No sign-up
How it works
100www.dev/tools/ipv4-ipv6-converter

Runs in your browser where possible. Third-party lookups only send the value you entered.

Enter a value to analyze locally.

What it does

IPv4 and IPv6 addresses are different formats for different protocols. Conversion is mostly about representation: embedding an IPv4 address in an IPv6 container, expanding hex, or showing the 32-bit integer. It does not make an IPv4-only host reachable over IPv6.

How it works

The common mapping is IPv4-mapped IPv6: ::ffff:a.b.c.d. It is used by dual-stack sockets to represent an IPv4 connection inside an IPv6 API. It is not a routable IPv6 address and should not be published in DNS.

IPv4-compatible addresses (::a.b.c.d) were an early transition idea and are deprecated. 6to4 (2002::/16) and Teredo (2001::/32) are legacy transition mechanisms with known operational problems; do not use them for new deployments.

For NAT64, the well-known prefix is 64:ff9b::/96, and the IPv4 address is embedded in the last 32 bits. This lets an IPv6-only client reach an IPv4-only server through a translator, but only when the network provides NAT64 and DNS64.

The tool also shows the integer and binary forms. A 32-bit IPv4 address maps to a decimal integer directly; an IPv6 address needs a 128-bit integer, which is why JavaScript needs BigInt rather than Number for exact arithmetic.

Conversion is not transition. Making a service available over IPv6 requires IPv6 addresses on the host, AAAA records, firewall rules and application support. Embedding an IPv4 address in an IPv6 format does none of that.

When to use it

  • Read an IPv4-mapped address in a dual-stack log.
  • Convert an address to its integer form for a database or firewall rule.
  • Check a NAT64 prefix before debugging an IPv6-only client.
  • Explain why a “converted” address does not make a host reachable.

Glossary

IPv4-mapped
::ffff:a.b.c.d, an IPv4 address embedded in an IPv6 container for API compatibility.
NAT64
A translator that lets IPv6-only clients reach IPv4 servers.
6to4
A deprecated transition mechanism using 2002::/16.
Dual stack
A host or network running IPv4 and IPv6 simultaneously.
BigInt
JavaScript's arbitrary-precision integer type, needed for 128-bit arithmetic.

Frequently asked questions

Is a mapped address routable?+

No. ::ffff:a.b.c.d is a local representation used by socket APIs. It is not announced on the internet and should not appear in DNS.

Does converting make my site IPv6-ready?+

No. You need IPv6 connectivity, AAAA records and application support. Format conversion is only notation.

Why do I see ::ffff: in logs?+

A dual-stack service accepted an IPv4 connection through an IPv6 socket. The peer address is reported in mapped form; strip the prefix to read the IPv4 address.

What is the NAT64 prefix?+

The well-known prefix is 64:ff9b::/96. Networks may use a different local prefix, so confirm before assuming.

Why use integer form?+

Some databases and access-control systems store addresses as integers for efficient range queries. The conversion must be exact, which is why 128-bit values need BigInt.

API & MCP

No API endpoint

This tool runs entirely in your browser. It is not available over the REST API or MCP.

Shareable result

https://100www.dev/tools/ipv4-ipv6-converter?ip=192.0.2.1

100www

100www engineering

Editorial

Reviewed by Steve · · Report an error

Tested from the 100www probe network; results vary by location and network.