Conversion Utilities

Centimeters To Inches

Convert centimeters to inches with mathematical precision using the standard conversion factor (1 cm = 0.393701 inches). Access via MCP in Cursor or Windsurf for AI-driven measurements, or call GET /v1/convert/length/cm-to-in directly. Returns exact decimal values — 25.4 cm becomes 10.0 inches. No rounding errors or approximations.

API Endpoint

GET /v1/convert/length/cm-to-in

Code Examples

curl "https://tinyfn.io/v1/convert/length/cm-to-in" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/convert/length/cm-to-in', {
  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/length/cm-to-in',
    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

How do I convert centimeters to inches using MCP in Cursor?

Call the cm-to-in tool with your centimeter value. The AI agent will get the precise conversion using the exact factor 0.393701 inches per centimeter.

What's the difference between this tool and just multiplying by 0.39?

This uses the precise conversion factor 0.393701, not rounded approximations. Critical for engineering calculations where accuracy matters.

Can I convert negative centimeter values?

Yes, negative values work fine — useful for relative measurements or coordinate systems where negative distances are meaningful.

What format does the REST API return?

Returns JSON with the exact decimal result. No artificial rounding — you get the mathematically precise conversion every time.

Why use this instead of having ChatGPT do the math?

AI models often use approximated conversion factors or make calculation errors. This tool guarantees deterministic, mathematically correct results.

Try Centimeters To Inches Now

Get your free API key and start using Centimeters To Inches in seconds.

Get Free API Key