IPv6 ↔ IPv4 Converter

Convert between IPv4 and IPv6 (mapped/expanded/compressed) and extract embedded IPv4.

Every address you enter is converted locally in your browser and nothing is uploaded to a server.

Working with subnets? Try the CIDR calculator.

About IPv6 ↔ IPv4 Converter

This IPv6 to IPv4 converter turns any IPv4 or IPv6 address into every common representation in one place, all processed locally in your browser. Paste an IPv4 address and it returns the IPv4-mapped IPv6 form (::ffff:...), the hex hextets, the fully expanded IPv6, plus the 32-bit integer and hexadecimal value. Paste an IPv6 address and it gives you the compressed and expanded forms and, when present, extracts the embedded IPv4. It is built for network engineers, backend developers, and QA testers who need to expand IPv6, compress IPv6, build IPv4-mapped IPv6 entries for ACLs and logs, or convert an ip to integer for storage. Everything runs client-side, so your addresses never leave your device.

Features

How to use the IPv6 ↔ IPv4 Converter

  1. Type or paste an IPv4 or IPv6 address into the input box.
  2. The converter auto-detects whether the address is IPv4 or IPv6.
  3. Read the generated rows for mapped, expanded, compressed, integer, and embedded-IPv4 forms.
  4. Copy the representation you need straight from the result.

Example

Input

192.168.1.1

Output

IPv4: 192.168.1.1
IPv4-mapped IPv6: ::ffff:192.168.1.1
IPv6 (hex): ::ffff:c0a8:0101
Expanded IPv6: 0000:0000:0000:0000:0000:ffff:c0a8:0101
Integer: 3232235777
Hex: 0xc0a80101

Converting an IPv4 address shows its mapped, expanded, integer, and hex forms.

Common errors & troubleshooting

Frequently asked questions

What is an IPv6 to IPv4 converter?
The ArrayKit IPv6 to IPv4 Converter translates an address between IPv4 and IPv6 notations, showing the IPv4-mapped, expanded, and compressed forms and, where present, the embedded IPv4 hidden inside an IPv6 address.
How do I convert an IPv4 address to IPv6?
Paste the IPv4 address into the IPv6 to IPv4 Converter and it returns the IPv4-mapped IPv6 form (::ffff:a.b.c.d) along with the hex and fully expanded notation.
What is the difference between expanded and compressed IPv6?
Expanded IPv6 writes all eight 4-digit hextets in full, while compressed IPv6 trims leading zeros and replaces the longest run of zero groups with ::. The converter shows both side by side.
Can the converter extract the IPv4 hidden inside an IPv6 address?
Yes. For IPv4-mapped (::ffff:...) and compatible addresses it detects the embedded dotted-quad and shows the original IPv4 address.
Why does it also show an integer and hex value?
An IPv4 address is a 32-bit number, so the integer and hexadecimal forms are handy for database storage, bit math, or comparing address ranges.
Are my IP addresses sent anywhere when I use this converter?
No. The IPv6 to IPv4 Converter runs entirely in your browser, so the addresses you paste are processed locally and never leave your device.

Related tools

All ArrayKit tools