Temperature converter
Convert temperatures between Celsius, Fahrenheit, kelvin and Rankine.
- Version 1
- Checked against 2 published values
- Free, no sign-up
Result: A rise of 10 °C in °F
| Result The converted temperature. |
18 exact |
|---|
Rounding: Half even, 15 significant digits. Calculator units/temperature@1.
How it is calculated
K = °C + 273.15; °F = K × 9/5 − 459.67; °R = K × 9/5 (differences: no offsets)Converts a temperature reading, or a temperature difference, between scales. A reading uses the scale offsets (0 °C = 32 °F); a difference does not (a rise of 10 °C is a rise of 18 °F). All factors are exact.
- Readings below absolute zero are rejected. Differences may be negative.
References
- BIPM SI Brochure, 9th edition (2019), section 2.3.1: kelvin and degree Celsius
- NIST Special Publication 811 (2008), section B.9: temperature conversion
Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.
Use it from your code
curl https://api.curatedapi.com/v1/calc/units/temperature \
-H "Authorization: Bearer $CURATEDAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"value": "10",
"from_unit": "C",
"to_unit": "F",
"quantity": "difference"
}'
The same call in Python
import os
import requests
payload = {
"value": "10",
"from_unit": "C",
"to_unit": "F",
"quantity": "difference",
}
response = requests.post(
"https://api.curatedapi.com/v1/calc/units/temperature",
headers={"Authorization": f"Bearer {os.environ['CURATEDAPI_KEY']}"},
json=payload,
timeout=10,
)
print(response.json()["result"])
The same call in JavaScript
const payload = {
"value": "10",
"from_unit": "C",
"to_unit": "F",
"quantity": "difference",
};
const response = await fetch("https://api.curatedapi.com/v1/calc/units/temperature", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CURATEDAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
console.log((await response.json()).result);
MCP tool calc_units_temperature at https://mcp.curatedapi.com.
Inputs, outputs and errors in the API reference.
Put it on your website
<div data-curatedapi-widget="units/temperature" data-key="capi_public_…"></div>
<script src="https://widgets.curatedapi.com/v1/widget.js" async></script>
Use a public key registered for your site. Calculations are billed like API calls. How widgets work.
Related calculators
Add this calculator to your website
Paste two lines into your page and your visitors get this calculator. Each use counts as one call on your plan, the same as the API.
Free for up to 1,000 uses a month. 50,000 uses a month cost $9.00 on the Starter plan.