IPv6 to IPv4 Converter
Extract the IPv4 address from IPv4-mapped and 6to4 IPv6 addresses
How IPv6 to IPv4 Conversion Works
An IPv6 address can only be converted to IPv4 when it was built from an IPv4 address in the first place. The converter expands the address to all 8 groups, checks its prefix, and reads the 32 bits where the IPv4 address is stored.
| Format | Range | Where the IPv4 is | Example |
|---|---|---|---|
| IPv4-mapped | ::ffff:0:0/96 | Last 32 bits | ::ffff:c0a8:101 → 192.168.1.1 |
| 6to4 | 2002::/16 | Bits 17–48, after 2002 | 2002:c0a8:101:: → 192.168.1.1 |
| Any other IPv6 | — | Not supported | 2001:db8::1 → cannot be converted |
Use Cases
Log Analysis
Servers on dual-stack sockets log IPv4 clients as ::ffff: addresses. Extract the
plain IPv4 address to match it against firewall rules, blocklists and other logs.
IP Lookups
Many geolocation and reputation databases are keyed by IPv4. Recover the IPv4 address from a mapped or 6to4 address before you look it up.
Network Troubleshooting
Find which IPv4 endpoint a 6to4 tunnel address belongs to when you trace legacy transition traffic on your network.
Other IP Tools
Convert the same address into another format.
IPv6 to IPv4 FAQ
No. An IPv6 address is 128 bits and an IPv4 address is 32 bits, so most IPv6 addresses have no IPv4 equivalent. Only IPv6 addresses that carry an IPv4 address inside them can be converted. For any other address this tool says it cannot be converted instead of showing a made-up result.
This converter extracts the IPv4 address from two formats. IPv4-mapped addresses (::ffff:0:0/96) keep the IPv4 address in the last 32 bits, for example ::ffff:192.168.1.1. 6to4 addresses (2002::/16) keep it in the 32 bits right after 2002, for example 2002:c0a8:101::.
Because it is not an IPv4-mapped or 6to4 address. Most IPv6 addresses are native addresses assigned by your ISP or network, with no IPv4 address inside them. Your device may still have a separate IPv4 address. Check What is my IP address? to see both.
Yes. It accepts compressed (::ffff:c0a8:101), fully expanded (0000:0000:0000:0000:0000:ffff:c0a8:0101), mixed dotted notation (::ffff:192.168.1.1), and upper or lower case hex.
::1 is the IPv6 loopback address and :: is the unspecified address. Neither one contains an IPv4 address. The old "IPv4-compatible" format (::/96) is deprecated (RFC 4291), so the converter does not read these as IPv4 addresses.
Yes. Use the IPv4 to IPv6 converter to get the IPv4-mapped and 6to4 forms of any IPv4 address. To get the numeric value of an address, use IP to Decimal.
No. The conversion runs in your browser, so the address you type never leaves your device. The tool is free and needs no account.