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
This tool shows an IPv4 address in the IPv6 forms you meet in logs, socket code and transition setups: the IPv4-mapped address (::ffff:192.0.2.1) in dotted and hex notation, the deprecated IPv4-compatible form, the 6to4 prefix (2002::/48) and the SIIT translated form, plus the address as a 32-bit integer, hex and binary, and its reverse-DNS name. A second mode expands any IPv6 address to its full 32-digit form, compresses it to the standard short form, and gives its ip6.arpa reverse-DNS name.
How to convert IPv4 to IPv6 and expand IPv6
- Choose IPv4 to IPv6 Converter, or IPv6 Expander & Compressor.
- Enter an IPv4 address such as 203.0.113.10, or pick a sample (Cloudflare 1.1.1.1, Google 8.8.8.8, a local gateway or a documentation address).
- Copy the representation you need; every row has its own copy button.
- In the IPv6 mode, paste a compressed, expanded or mixed address (including one ending in a dotted IPv4 part) to get the full form, the compressed form and the PTR name.
The IPv4 to IPv6 Converter runs entirely in your browser — nothing you enter is uploaded, stored, or logged.
When to use it
Reading dual-stack server logs
A server listening on an IPv6 socket that also accepts IPv4 records IPv4 clients as ::ffff:203.0.113.10. Recognising that this is simply 203.0.113.10 matters when you search logs, match firewall rules or look the address up in a database that expects plain IPv4.
Writing ip6.arpa PTR records
Reverse DNS for IPv6 reverses all 32 hex digits one nibble at a time, separated by dots, so 2001:db8::1 becomes a 32-label name ending in 8.b.d.0.1.0.0.2.ip6.arpa. Typing that by hand nearly always drops a zero; generating it removes the risk.
Comparing addresses in configs
The same IPv6 address can be written many ways: 2001:0db8:0000:0000:0000:0000:0000:0001, 2001:db8:0:0::1 and 2001:db8::1 are identical. Expanding both sides to the full form, or compressing both, makes a plain text comparison reliable.
Good to know
- Compression follows RFC 5952: lower-case hex, leading zeros dropped in each group, and :: used once, for the longest run of two or more zero groups.
- IPv4-compatible addresses (::192.0.2.1) were deprecated by RFC 4291 and are shown only so you can recognise them in old configurations.
- 6to4 (2002::/16) embeds the IPv4 address in the next 32 bits. The public relay system it depended on was deprecated in 2015 (RFC 7526), so it is rarely used today.
- NAT64 addresses (64:ff9b::/96), which DNS64 networks synthesise, are a different thing from the IPv4-mapped form and are not generated here.
- The IPv4 reverse DNS value is the PTR name for that single address.
Frequently asked questions
What is an IPv4-mapped IPv6 address?
What is the 6to4 prefix standard?
Can I reach an IPv4 website using its ::ffff: address?
Why does IPv6 use colons instead of dots?
Page last updated . Found a wrong result or a mistake on this page? Let us know.
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.