IPv6 to IPv4 Converter Online

Convert between IPv4 and IPv6 and extract embedded IPv4 addresses in your browser. Everything runs locally.

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

Built and maintained by Udit Agarwal

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

  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

  • 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

Guides

More Network tools

  • User Agent Parser — Parse a User-Agent string into browser, engine, operating system and device, in your browser.
  • HAR File Viewer — Open a HAR file and inspect the request waterfall, headers, timings and sizes, in your browser.
  • IP Range to CIDR — Convert a start and end IP address into the minimal set of CIDR blocks, and back.
  • Set-Cookie Parser — Parse Set-Cookie and Cookie headers into a readable table of names, values and attributes.
  • IP Address to Integer Converter — Convert an IPv4 or IPv6 address to its integer, hex and binary form, and back.
  • MAC Address Generator — Generate random or vendor-prefixed MAC addresses in several formats.
  • WiFi QR Code Generator — Create a scannable QR code that joins a WiFi network, with correct escaping.
  • Download Time Calculator — Estimate how long a file takes to transfer at a given connection speed.
  • DMARC Record Generator — Build and validate a DMARC DNS TXT record with policy, reporting and alignment.
  • SPF Record Generator — Build and validate the SPF TXT record that stops others sending mail as your domain.
  • Port Number Lookup — What runs on a TCP or UDP port — search by number or service name.
  • Data Usage Calculator — Turn streaming, browsing and call habits into monthly gigabytes and cap forecasts.

See all Network tools (24) · All tools