Conversion Utilities

Mph To Kph

Converts miles per hour to kilometers per hour using the precise conversion factor 1.609344. Available through MCP in Cursor and other AI editors at `/v1/convert/speed/mph-to-kph`, or as a REST API. Input 65 mph, get 104.6074 kph. Essential for international applications handling speed data from different measurement systems.

API Endpoint

GET /v1/convert/speed/mph-to-kph

Code Examples

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

response = requests.get('https://tinyfn.io/v1/convert/speed/mph-to-kph',
    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 conversion tools:

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

Learn more about MCP setup →

FAQ

What's the exact conversion formula from mph to kph?

Multiply mph by 1.609344. This uses the precise statutory mile definition (5,280 feet) and maintains accuracy for engineering calculations.

How do I convert speed units in my MCP-enabled AI assistant?

Call the mph-to-kph tool with your speed value. Works in Cursor, Windsurf, and other MCP clients for instant conversions without manual calculation.

Does this handle decimal mph inputs accurately?

Yes, accepts any numeric mph value including decimals. Returns precise kph results maintaining full floating-point precision for scientific applications.

Can I batch convert multiple mph values at once?

No, processes one mph value per API call. For bulk conversions, make multiple requests or implement client-side batching.

What's the difference between this and online speed converters?

Provides deterministic, programmatic access through MCP and REST API. No web scraping, consistent results, and integrates directly into development workflows.

Try Mph To Kph Now

Get your free API key and start using Mph To Kph in seconds.

Get Free API Key