← All tool references

Developer Tools · not_available

IPv4 to IPv6 Converter

Calculate ipv6 representation from ipv4 address, ipv6 representation.

Open public tool

Overview

Category
Developer Tools
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/ipv4-to-ipv6-converter

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/ipv4-to-ipv6-converter/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

ipv4 · string · required
Enter ipv4 address.
format · string · required
Enter ipv6 representation. Accepted values: mapped, compatible, hex.
{
    "type": "object",
    "properties": {
        "ipv4": {
            "type": "string",
            "description": "Enter ipv4 address."
        },
        "format": {
            "type": "string",
            "description": "Enter ipv6 representation.",
            "enum": [
                "mapped",
                "compatible",
                "hex"
            ]
        }
    },
    "required": [
        "ipv4",
        "format"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

ipv6 · string
IPv6 representation produced by the tool.
hexadecimal · string
IPv4 hexadecimal produced by the tool.
octets · array
IPv4 octets produced by the tool.
{
    "type": "object",
    "properties": {
        "ipv6": {
            "type": "string",
            "description": "IPv6 representation produced by the tool."
        },
        "hexadecimal": {
            "type": "string",
            "description": "IPv4 hexadecimal produced by the tool."
        },
        "octets": {
            "type": "array",
            "description": "IPv4 octets produced by the tool."
        }
    },
    "additionalProperties": false
}

IPv4 to IPv6 Converter worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/ipv4-to-ipv6-converter/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "ipv4": "192.0.2.128",
    "format": "mapped"
}'
{
    "ok": true,
    "data": {
        "slug": "ipv4-to-ipv6-converter",
        "result": {
            "values": {
                "ipv6": "::ffff:c000:280",
                "hexadecimal": "0xC0000280",
                "octets": [
                    {
                        "octet": 1,
                        "decimal": 192,
                        "hex": "C0"
                    },
                    {
                        "octet": 2,
                        "decimal": 0,
                        "hex": "00"
                    },
                    {
                        "octet": 3,
                        "decimal": 2,
                        "hex": "02"
                    },
                    {
                        "octet": 4,
                        "decimal": 128,
                        "hex": "80"
                    }
                ]
            },
            "display": {
                "display": "::ffff:c000:280"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.