IPv6 to IPv4 Converter
Extract the embedded IPv4 address from an IPv6-mapped or 6to4 address.
Inputs
Conversion Result
Results will appear here.
Extracting an embedded IPv4 address from an IPv6-mapped or 6to4 address is necessary when analysing application logs, debugging dual-stack socket behaviour, or interpreting firewall rules that use IPv6 notation to represent legacy IPv4 clients. The ::ffff: prefix is especially common in web server access logs on dual-stack servers, where IPv4 client connections appear as IPv6 addresses.
This tool accepts an IPv6 address in mapped (::ffff:192.0.2.1) or 6to4 (2002:c000:0201::/48) form and extracts the embedded IPv4 address, validating that the input is a genuine encoding rather than an arbitrary IPv6 address.
オンラインでIPv6アドレスをIPv4に変換する方法
- 1
IPv6アドレスを入力
IPv6アドレスを入力フィールドに貼り付けます。ツールは完全形式と圧縮形式のIPv6アドレスをサポートします。
- 2
アドレスを変換
ツールはIPv6アドレスのタイプ(IPv4マップまたは6to4)を検出し、埋め込まれたIPv4アドレスを抽出します。
- 3
結果をコピー
抽出されたIPv4アドレスをクリップボードにコピーして、ネットワークトラブルシューティングや設定作業に使用してください。
How IPv6-to-IPv4 Extraction Works
For IPv4-mapped addresses (::ffff:0:0/96), the IPv4 address occupies the last 32 bits of the 128-bit IPv6 address. Extraction involves verifying the ::ffff: prefix and then reading the final four octets as a dotted-decimal IPv4 address. The operation is a simple bit-shift and mask after parsing the full 128-bit integer representation.
For 6to4 addresses (2002::/16), the IPv4 address occupies bits 16–47 of the IPv6 address (the second and third 16-bit groups). Extracting it requires verifying the 2002:: prefix, isolating the next 32 bits, and converting each 16-bit group from hexadecimal to the corresponding IPv4 octet pair.
FileCrank IPv6→IPv4コンバーターを使う理由
- ✓ IPv4マップと6to4形式のIPv6アドレスからIPv4を抽出
- ✓ 即時変換で結果を明確に表示
- ✓ 完全ブラウザ内で動作 — データを転送しない
- ✓ 登録不要で無料
- ✓ ネットワークデバッグとデュアルスタック環境分析に最適
機能と仕様
よくある質問
How do I use the IPv6 to IPv4 Converter?
Enter an IPv6 address that contains an embedded IPv4 address (such as ::ffff:192.0.2.1 or 2002:c000:0201::). The tool extracts and displays the IPv4 address instantly.
What is an IPv6-mapped IPv4 address?
An IPv6-mapped IPv4 address is an IPv6 address that encodes an IPv4 address within it, typically using the format ::ffff:192.0.2.1. It enables dual-stack systems to communicate with IPv4 hosts.
Can I extract an IPv4 address from any IPv6 address?
No. Only IPv6 addresses that explicitly contain an embedded IPv4 address can be converted. Regular IPv6 addresses do not contain extractable IPv4 data.
Does this tool send my IP address data anywhere?
No. All extraction and conversion happens entirely in your browser using JavaScript. Your IPv6 address never contacts any server.
What is the difference between IPv4-mapped and IPv4-compatible IPv6 addresses?
IPv4-mapped addresses (::ffff:192.0.2.1) are the modern standard. IPv4-compatible addresses (::192.0.2.1) are deprecated. Both formats embed an IPv4 address, but they are used in different contexts.
When would I need to extract an IPv4 address from IPv6?
You might need this when reverse-engineering IPv6 tunnel configurations, troubleshooting dual-stack networks, or migrating systems from IPv4-specific logging systems.
IPv6-to-IPv4 Converter vs. Log Parsing Scripts
When you encounter ::ffff: addresses in server logs, the reflex is often to write a quick sed/awk one-liner to strip the prefix. That works for batch processing but is overkill for a one-off investigation. This tool handles both IPv4-mapped and 6to4 formats in a browser, with validation to catch addresses that look similar but are not genuine IPv4 encodings.
関連ツール
FileCrank IPv6→IPv4コンバーターは、IPv4マップと6to4形式のIPv6アドレスからIPv4アドレスを抽出します。変換はブラウザ内でローカルに完結し、データを保存しません。アカウント不要で無料。
Advertisement