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.
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)
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"
}
}
}
}
Call the inches-to-centimeters function with your measurement. It uses the exact 2.54 conversion factor for precise results.
GET /v1/convert/length/in-to-cm?inches=VALUE. Returns JSON with the centimeter equivalent.
Yes, it processes both whole numbers and decimals. For example, 5.5 inches converts to exactly 13.97 centimeters.
Each API call handles one conversion. For batch operations, make multiple requests or use the MCP tool iteratively in your AI workflow.
Returns precise decimal values in centimeters. No rounding unless you specify precision requirements in your implementation.
Get your free API key and start using Inches To Centimeters in seconds.
Get Free API Key