IP Address Utilities

Ipv4 To Ipv6

Converts IPv4 addresses to IPv6-mapped format (::ffff:x.x.x.x). Access via MCP in Cursor or Windsurf for instant network address translation, or use the REST endpoint GET /v1/ip/ipv4-to-ipv6. Essential for dual-stack networking where systems need to handle both protocols. Returns deterministic RFC 4291 compliant mappings.

API Endpoint

GET /v1/ip/ipv4-to-ipv6

Code Examples

curl "https://tinyfn.io/v1/ip/ipv4-to-ipv6" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/ip/ipv4-to-ipv6', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/ip/ipv4-to-ipv6',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's ip address tools:

{
  "mcpServers": {
    "tinyfn-ip": {
      "url": "https://tinyfn.io/mcp/ip",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

What is an IPv6-mapped IPv4 address?

An IPv6 address format that embeds an IPv4 address, written as ::ffff:192.168.1.1. It allows IPv6-only systems to communicate with IPv4 addresses using a standardized mapping defined in RFC 4291.

How do I convert 192.168.1.1 to IPv6 format using MCP?

Use the ipv4-to-ipv6 tool in your MCP-enabled editor with the IPv4 address as input. It returns ::ffff:192.168.1.1, which can be used directly in IPv6 network configurations.

Does this work with private IPv4 addresses like 10.0.0.1?

Yes, it converts any valid IPv4 address including private ranges (10.x.x.x, 172.16-31.x.x, 192.168.x.x) to IPv6-mapped format. The private/public distinction is preserved in the mapped address.

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

IPv6-mapped (::ffff:x.x.x.x) is for dual-stack systems to represent IPv4 addresses. IPv4-compatible (::x.x.x.x) is deprecated. This tool generates only the current RFC-compliant mapped format.

Can I reverse the conversion from IPv6-mapped back to IPv4?

This tool only converts IPv4 to IPv6-mapped format. To extract the IPv4 from a mapped address, you'd strip the ::ffff: prefix or use a separate IPv6-to-IPv4 conversion tool.

Try Ipv4 To Ipv6 Now

Get your free API key and start using Ipv4 To Ipv6 in seconds.

Get Free API Key