IPv4 to IPv6 Converter
Convert IPv4 addresses to IPv6 mapped and 6to4 formats, and compress or expand IPv6 addresses.
Runs in your browser. Nothing you add is uploaded.
What the IPv4 to IPv6 Converter does
As networks transition from IPv4 exhaustion to global IPv6 adoption, engineers frequently encounter dual-stack protocols, tunneling mechanisms, and hybrid socket communications. This tool translates IPv4 addresses into standard IPv6 formats, including IPv4-mapped addresses (RFC 4291) and 6to4 prefixes (RFC 3056), and provides an IPv6 expander/compressor with reverse DNS zone computation.
How to convert and expand IP addresses
- Select IPv4 to IPv6 Converter or IPv6 Expander & Compressor mode.
- For IPv4, enter any decimal dotted-quad address to generate mapped and 6to4 prefixes.
- For IPv6, enter any compressed or mixed address to expand it to the full 32-digit canonical format.
- Inspect integer and hexadecimal conversions alongside reverse DNS pointer records.
- Copy any generated format directly to your clipboard for firewall or DNS zone files.
The IPv4 to IPv6 Converter runs entirely in your browser — nothing you enter is uploaded, stored, or logged.
When to use it
Dual-Stack Socket Programming
Software developers writing networking code in Node.js, Go, or Python use IPv4-mapped IPv6 addresses (::ffff:192.0.2.1) to support both IPv4 and IPv6 clients through a single IPv6 listening socket.
Reverse DNS (PTR) Record Deployment
Generating PTR records in ip6.arpa requires reversing all 32 hex nibbles separated by dots. This tool computes the exact reverse string automatically.
Firewall Rule Normalization
Expanding compressed IPv6 addresses to 32 digits eliminates ambiguities when auditing access control lists and security group rules.
Good to know
- RFC 5952 dictates that only the longest consecutive sequence of zero 16-bit blocks should be replaced by '::'.
- IPv4-mapped addresses start with ::ffff: followed by the IPv4 address in decimal or hex.
- 6to4 uses the 2002::/16 prefix, embedding the 32-bit IPv4 address into the next 32 bits.
Frequently asked questions
What is an IPv4-mapped IPv6 address?
What is the 6to4 prefix standard?
What happened to IPv4-compatible IPv6 addresses?
Why does IPv6 use colons instead of dots?
Related tools
HTTP Status Code Lookup
Look up any HTTP status code: meaning, causes and how to fix it.
HTTP Header Analyzer
Paste HTTP headers to see what each means and what to fix.
HTTP Header Generator
Generate security, CORS, cache and CSP headers for your server.
User-Agent Parser
Identify the browser, OS, device or bot behind a User-Agent.