Converts 32-bit integers to IPv4 addresses using standard network byte order. Access via MCP in Cursor or Windsurf, or REST at GET /v1/ip/from-integer. For example, integer 3232235777 becomes "192.168.1.1". Essential for network programming where IP addresses are stored as integers for efficient computation and database indexing.
curl "https://tinyfn.io/v1/ip/from-integer" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/ip/from-integer', {
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/from-integer',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
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"
}
}
}
}
Use the integer_to_ip tool in your MCP-enabled editor with the integer parameter. The tool handles the conversion from 32-bit integer to dotted decimal notation automatically.
192.168.1.1 equals integer 3232235777. This uses network byte order where each octet is weighted by powers of 256.
Valid range is 0 to 4294967295 (2^32 - 1). Integer 0 converts to 0.0.0.0, and 4294967295 converts to 255.255.255.255.
Integers enable faster database queries, sorting, and range operations. A 4-byte integer is more memory-efficient than string storage and supports bitwise operations for subnet calculations.
No, this tool only handles IPv4 addresses (32-bit integers). IPv6 requires 128-bit integers which need different conversion methods.
Get your free API key and start using Integer To Ip in seconds.
Get Free API Key