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
- Converts IPv4 to its IPv4-mapped IPv6 form (::ffff:a.b.c.d)
- Expands any IPv6 address to full 8-hextet notation
- Compresses expanded IPv6 to the shortest valid :: form
- Extracts the embedded IPv4 from mapped or compatible IPv6 addresses
- Shows the IPv4 address as a 32-bit integer and hexadecimal value
- Accepts addresses with an embedded dotted-quad such as ::ffff:1.2.3.4
- Auto-detects whether your input is IPv4 or IPv6 as you type
- Validates input and flags addresses that are not valid IPv4 or IPv6
How to use the IPv6 ↔ IPv4 Converter
- Type or paste an IPv4 or IPv6 address into the input box.
- The converter auto-detects whether the address is IPv4 or IPv6.
- Read the generated rows for mapped, expanded, compressed, integer, and embedded-IPv4 forms.
- 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
- Pasting an address with extra whitespace or a port suffix like 192.168.1.1:8080. — Enter only the address itself; ports and surrounding text are not part of a valid IPv4 or IPv6 value.
- Using more than one :: in an IPv6 address, which is ambiguous. — IPv6 allows the :: shorthand only once; remove the extra :: so the missing zero groups can be inferred.
- Expecting an embedded IPv4 row for an ordinary IPv6 address. — The embedded IPv4 is only shown for ::ffff: mapped or all-zero compatible addresses; other IPv6 values have no dotted-quad to extract.
- Entering an IPv4 octet above 255, such as 300.1.1.1. — Each octet must be 0-255; correct the out-of-range octet and the address will convert.
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