IPv4 to IPv6 Converter
Convert an IPv4 address to its IPv6-mapped and 6to4 representations.
Inputs
Conversion Result
Results will appear here.
Converting an IPv4 address to its IPv6 representations is a routine task when working with dual-stack network configurations, writing socket code, or auditing firewall rules that must handle both protocol families. The IPv4-mapped and 6to4 forms appear in kernel logs, packet captures, and application configurations, and knowing how to produce and interpret them is essential for IPv6 migration work.
This tool accepts any valid IPv4 address and outputs both the ::ffff: mapped form and the 2002:: 6to4 prefix, formatted for direct use in configuration files, firewall rules, or network documentation.
如何在线将 IPv4 地址转换为 IPv6
- 1
输入 IPv4 地址
将 IPv4 地址(例如 192.0.2.1)粘贴或输入到输入框中。转换器接受标准点分十进制表示法。
- 2
选择转换格式
选择转换方式:IPv4 映射 IPv6(::ffff:x.x.x.x)、6to4(2002:xxxx:xxxx::)或标准 IPv6。每种方式适用于不同的隧道和兼容场景。
- 3
查看转换结果
工具即时输出转换后的 IPv6 地址。将结果复制到剪贴板或用于您的网络配置。
How IPv4-to-IPv6 Address Conversion Works
IPv4-mapped IPv6 addresses (::ffff:0:0/96) are used by the IPv6 socket API to represent IPv4 connections received on dual-stack sockets. The 32-bit IPv4 address is placed in the low-order 32 bits of the 128-bit IPv6 address space, allowing a single socket to accept both IPv4 and IPv6 connections transparently.
The 6to4 mechanism (RFC 3056) encodes the IPv4 address into a /48 IPv6 prefix by appending the address in hexadecimal to 2002::/16. A host with the IPv4 address 203.0.113.5 (0xcb007105) gets the 6to4 prefix 2002:cb00:7105::/48. This enables IPv6 routing over IPv4 infrastructure but is largely superseded by native dual-stack and IPv6 tunnelling protocols.
为什么选择 FileCrank IPv4 转 IPv6 转换器
- ✓ 支持 IPv4 映射、6to4 和标准 IPv6 转换格式
- ✓ 即时转换,无需等待
- ✓ 完全在浏览器中运行——不传输或存储您的数据
- ✓ 免费使用,无需注册
- ✓ 适用于网络工程师、学生和系统管理员
功能与规格
常见问题
How do I use the IPv4 to IPv6 Converter?
Enter a valid IPv4 address (e.g., 192.0.2.1) and select your desired IPv6 conversion format. The tool instantly displays the converted address.
What is an IPv4-mapped IPv6 address?
An IPv4-mapped IPv6 address is a hybrid format that embeds an IPv4 address into IPv6 notation (e.g., ::ffff:192.0.2.1). It allows IPv6-capable systems to communicate with IPv4 systems transparently.
What is 6to4 tunneling?
6to4 is a tunneling protocol that automatically encapsulates IPv6 traffic within IPv4 packets, allowing IPv6 connectivity without a dedicated tunnel. Addresses start with 2002:.
Does this converter send my data anywhere?
No. All conversions run entirely in your browser using JavaScript. Your IPv4 address never leaves your device or contacts any server.
What is the difference between IPv4-mapped and IPv4-compatible IPv6 addresses?
IPv4-mapped addresses (::ffff:x.x.x.x) are the modern standard and are used by dual-stack systems. IPv4-compatible addresses (::x.x.x.x) are deprecated and should not be used.
When would I need to convert an IPv4 address to IPv6?
You might need this conversion when setting up IPv4-to-IPv6 tunneling, configuring dual-stack networks, or documenting IPv6 transition strategies.
IPv4-to-IPv6 Converter vs. Python socket.inet_pton
Python's socket library can perform this conversion programmatically, but requires writing and running a script — impractical for a quick reference during code review or documentation. This tool delivers both mapped representations instantly in the browser with copy-ready output, removing the friction of opening a REPL for a routine conversion.
相关工具
FileCrank IPv4 转 IPv6 转换器支持三种转换格式:IPv4 映射、6to4 和标准 IPv6。转换在浏览器本地完成,不存储数据。免费使用,无需账户。
Advertisement