Conversion Utilities

Inches To Centimeters

Converts inches to centimeters with precision using the exact conversion factor (1 inch = 2.54 cm). Access via MCP in Cursor or Windsurf for instant conversions in your development workflow, or call GET /v1/convert/length/in-to-cm?inches=12 which returns 30.48 cm. Handles both integers and decimals accurately.

API Endpoint

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

Code Examples

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

Call the inches-to-centimeters function with your measurement. It uses the exact 2.54 conversion factor for precise results.

What's the REST API endpoint for inches to centimeters conversion?

GET /v1/convert/length/in-to-cm?inches=VALUE. Returns JSON with the centimeter equivalent.

Does the tool handle decimal inches accurately?

Yes, it processes both whole numbers and decimals. For example, 5.5 inches converts to exactly 13.97 centimeters.

Can I batch convert multiple inch measurements at once?

Each API call handles one conversion. For batch operations, make multiple requests or use the MCP tool iteratively in your AI workflow.

What output format does the inches to centimeters converter return?

Returns precise decimal values in centimeters. No rounding unless you specify precision requirements in your implementation.

Try Inches To Centimeters Now

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

Get Free API Key