Converts hexadecimal values to decimal integers with precise mathematical accuracy. Use via MCP in Cursor or Windsurf for instant base conversion, or call GET /v1/convert/base/hex-to-dec directly. Input "FF" returns 255, "1A3" returns 419. Handles both uppercase and lowercase hex notation without 0x prefix required.
curl "https://tinyfn.io/v1/convert/base/hex-to-dec" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/convert/base/hex-to-dec', {
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/base/hex-to-dec',
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 hex-to-decimal tool with your hex value as input. The MCP tool handles the conversion automatically and returns the decimal equivalent.
No, the tool accepts raw hex values without the 0x prefix. Both 'A1' and '0xA1' work, but the prefix isn't required.
The tool handles standard integer ranges. Very large hex values may hit system limits, but typical programming values convert without issues.
Yes, it processes both cases identically. 'ff', 'FF', and 'Ff' all convert to 255.
The tool returns an error for invalid hex characters. Only 0-9 and A-F (case insensitive) are accepted as valid hexadecimal digits.
Get your free API key and start using Hexadecimal To Decimal in seconds.
Get Free API Key