IPv4 ↔ IPv6 Converter

IPv4 ↔ IPv6 Converter: Converts dotted-decimal octets into hexadecimal notation and constructs RFC 4291 compliant addresses.

Loading tool module...

About this ipv4 ↔ ipv6 converter

IPv4 ↔ IPv6 Converter — browser-based utility.

How this tool works

Validates dotted-decimal IPv4 and emits a hexadecimal IPv4-mapped IPv6 spelling plus the 32-bit hexadecimal value. The current implementation does not convert IPv6 to IPv4 and does not emit 6to4 prefixes.

  1. Binary Bitmask Ingestion: Converts decimal dotted-quad IPv4 strings or hexadecimal colon-separated IPv6 strings into binary bit vectors.
  2. Bitwise Boolean Algebra: Performs bitwise AND, OR, and NOT operations between IP address integers and CIDR prefix masks.
  3. Address Class & Scope Tagging: Identifies RFC 1918 private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback, CGNAT, and multicast blocks.
  4. Subnet Topology Formatting: Renders network ID, usable host range, broadcast address, binary representation, and Cisco wildcard mask.

Worked example

Scenario: Represent an IPv4 value as the tool's mapped IPv6 and hexadecimal outputs.

Sample input:

192.0.2.1/24

Processing: Validate the dotted IPv4 value, convert its 32-bit value to lowercase hexadecimal, and format the IPv4-mapped IPv6 form.

Illustrative output:

IPv4 192.0.2.1; mapped IPv6 ::ffff:c000:0201; hexadecimal 0xc0000201. The accepted suffix is not a 6to4 or subnet conversion.

Limits and verification

Enforces strict IPv4 prefix boundaries (/0 to /32) and IPv6 boundaries (/0 to /128). In RFC 3021 /31 subnets, correctly reports 2 usable point-to-point hosts without traditional network and broadcast exclusions.

Examples demonstrate an expected workflow; they do not prove every input or every branch of an external specification. Check important results with an independent source before using them for money, security, compliance, safety, or irreversible file changes.

Browser processing boundary

Tool input is processed by code running in the browser and is not intentionally sent to a CZOA processing API. The page can still request ordinary site assets, analytics, or advertising when those services are enabled. Browser extensions and managed-device software remain outside this tool's control.

Relevant references

These references govern or help explain the format, protocol, or calculation used here. Listing a reference does not claim certification or complete implementation of every optional feature.

Content owner: CZOA Tools · Last reviewed: 2026-09-15 · Review methodology

How to use it

  1. Enter, paste, or select your input data into the IPv4 ↔ IPv6 Converter workspace controls.
  2. Review available parameter fields, units, formats, or options configured for your task.
  3. Click the action button or observe immediate live calculations rendered in your browser runtime.
  4. Inspect the resulting output and any diagnostic messages, then copy or download the result if needed.

Frequently asked questions

Which IPv4 conversion does the tool implement?+

It validates dotted IPv4, converts the 32-bit value to lowercase eight-digit hex, and emits an IPv4-mapped IPv6 spelling. It does not convert arbitrary IPv6 back to IPv4.

What did the browser vector verify?+

Input 192.0.2.1/24 returned IPv4 192.0.2.1, mapped IPv6 ::ffff:c000:0201, and hexadecimal 0xc0000201.

Does the suffix change the mapped address?+

The current parser accepts a slash suffix for validation but the conversion uses the IPv4 address value; the prefix is not returned as a subnet conversion.

Does it calculate 6to4 prefixes?+

No. The current output contains only the mapped IPv6 form and 32-bit hex representation.