تخطى إلى المحتوى الرئيسي

IPv6 to IPv4 Converter

Extract the embedded IPv4 address from an IPv6-mapped or 6to4 address.

Inputs

Enter an IPv4 address to convert to IPv6, or an IPv6-mapped address to extract IPv4

Conversion Result

Results will appear here.

Extracting an embedded IPv4 address from an IPv6-mapped or 6to4 address is necessary when analysing application logs, debugging dual-stack socket behaviour, or interpreting firewall rules that use IPv6 notation to represent legacy IPv4 clients. The ::ffff: prefix is especially common in web server access logs on dual-stack servers, where IPv4 client connections appear as IPv6 addresses.

This tool accepts an IPv6 address in mapped (::ffff:192.0.2.1) or 6to4 (2002:c000:0201::/48) form and extracts the embedded IPv4 address, validating that the input is a genuine encoding rather than an arbitrary IPv6 address.

كيفية تحويل عنوان IPv6 إلى IPv4 عبر الإنترنت

  1. 1

    أدخل عنوان IPv6

    الصق عنوان IPv6 في حقل الإدخال. تدعم الأداة عناوين IPv6 بالتنسيقَين الكامل والمختصر.

  2. 2

    تحويل العنوان

    تكشف الأداة نوع عنوان IPv6 (المخطَّط لـIPv4 أو 6to4) وتستخرج عنوان IPv4 المضمَّن.

  3. 3

    نسخ النتيجة

    انسخ عنوان IPv4 المستخرج إلى الحافظة واستخدمه في استكشاف أخطاء الشبكة أو أعمال الإعداد.

How IPv6-to-IPv4 Extraction Works

For IPv4-mapped addresses (::ffff:0:0/96), the IPv4 address occupies the last 32 bits of the 128-bit IPv6 address. Extraction involves verifying the ::ffff: prefix and then reading the final four octets as a dotted-decimal IPv4 address. The operation is a simple bit-shift and mask after parsing the full 128-bit integer representation.

For 6to4 addresses (2002::/16), the IPv4 address occupies bits 16–47 of the IPv6 address (the second and third 16-bit groups). Extracting it requires verifying the 2002:: prefix, isolating the next 32 bits, and converting each 16-bit group from hexadecimal to the corresponding IPv4 octet pair.

لماذا تستخدم محوّل FileCrank من IPv6 إلى IPv4؟

  • ✓ يستخرج عناوين IPv4 من تنسيقَي IPv4 المخطَّط و6to4
  • ✓ تحويل فوري مع عرض واضح للنتائج
  • ✓ يعمل بالكامل في المتصفح — لا يُنقَل أي بيانات
  • ✓ مجاني دون تسجيل
  • ✓ مثالي لتشخيص أخطاء الشبكة وتحليل بيئات المكدس المزدوج

الميزات والمواصفات

أقصى حجم للملف
حتى 100 ميغابايت
الخصوصية
تُحذف الملفات بعد نحو ساعة
السعر
مجاني، بدون تسجيل
المعالجة
على الخادم
تنسيقات IPv6 المدعومة
IPv4 المخطَّط و6to4
المعالجة
محلياً في المتصفح
الاحتفاظ بالبيانات
لا شيء
التكلفة
مجاني
يجري التحويل محلياً في متصفحك — لا يُرسَل أي بيانات إلى الخوادم.لا حاجة للتسجيل.مجاني — لا رسوم خفية.

الأسئلة الشائعة

How do I use the IPv6 to IPv4 Converter?

Enter an IPv6 address that contains an embedded IPv4 address (such as ::ffff:192.0.2.1 or 2002:c000:0201::). The tool extracts and displays the IPv4 address instantly.

What is an IPv6-mapped IPv4 address?

An IPv6-mapped IPv4 address is an IPv6 address that encodes an IPv4 address within it, typically using the format ::ffff:192.0.2.1. It enables dual-stack systems to communicate with IPv4 hosts.

Can I extract an IPv4 address from any IPv6 address?

No. Only IPv6 addresses that explicitly contain an embedded IPv4 address can be converted. Regular IPv6 addresses do not contain extractable IPv4 data.

Does this tool send my IP address data anywhere?

No. All extraction and conversion happens entirely in your browser using JavaScript. Your IPv6 address never contacts any server.

What is the difference between IPv4-mapped and IPv4-compatible IPv6 addresses?

IPv4-mapped addresses (::ffff:192.0.2.1) are the modern standard. IPv4-compatible addresses (::192.0.2.1) are deprecated. Both formats embed an IPv4 address, but they are used in different contexts.

When would I need to extract an IPv4 address from IPv6?

You might need this when reverse-engineering IPv6 tunnel configurations, troubleshooting dual-stack networks, or migrating systems from IPv4-specific logging systems.

IPv6-to-IPv4 Converter vs. Log Parsing Scripts

When you encounter ::ffff: addresses in server logs, the reflex is often to write a quick sed/awk one-liner to strip the prefix. That works for batch processing but is overkill for a one-off investigation. This tool handles both IPv4-mapped and 6to4 formats in a browser, with validation to catch addresses that look similar but are not genuine IPv4 encodings.

يستخرج محوّل FileCrank من IPv6 إلى IPv4 عناوين IPv4 من عناوين IPv6 بتنسيقَي IPv4 المخطَّط و6to4. يتم التحويل محلياً في المتصفح دون تخزين البيانات. مجاني دون حساب.

Advertisement

Ad