datasets/unit-conversions
string

Unit Conversions

Conversion factors between common units, keyed from->to (mile->km), marked exact or rounded. Source: NIST Guide to the SI (SP 811), Appendix B.

reference standards units
Data preview
KeyValue (string)
inch->mm25.4 (exact)
foot->m0.3048 (exact)
yard->m0.9144 (exact)
mile->km1.609344 (exact)
nautical-mile->km1.852 (exact)
ounce->g28.349523125 (exact)
pound->kg0.45359237 (exact)
stone->kg6.35029318 (exact)
short-ton->kg907.18474 (exact)
long-ton->kg1016.0469088 (exact)
gallon-us->L3.785411784 (exact)
gallon-uk->L4.54609 (exact)
quart-us->L0.946352946 (exact)
pint-us->L0.473176473 (exact)
cup-us->mL236.5882365 (exact)
floz-us->mL29.5735295625 (exact)
tbsp-us->mL14.78676478125 (exact)
tsp-us->mL4.92892159375 (exact)
cal->J4.184 (exact)
kcal->kJ4.184 (exact)
kWh->MJ3.6 (exact)
btu->J1055.05585262 (exact)
eV->J1.602176634E-19 (exact)
mph->kmh1.609344 (exact)
knot->kmh1.852 (exact)
mps->kmh3.6 (exact)
fps->mps0.3048 (exact)
sqft->m20.09290304 (exact)
sqmi->km22.589988110336 (exact)
hectare->m210000 (exact)
atm->kPa101.325 (exact)
bar->kPa100 (exact)
psi->kPa6.894757 (rounded)
mmHg->Pa133.322387415 (exact)
hp->W745.6999 (rounded)
celsius->kelvinadd 273.15 (exact)
celsius->fahrenheitmultiply by 9/5, then add 32 (exact)
fahrenheit->celsiussubtract 32, then multiply by 5/9 (exact)
Fetch it
GET /api/v1/collection/unit-conversions.json
{
  "collection": "unit-conversions",
  "type": "string",
  "count": 38,
  "items": [
    { "key": "inch->mm", "value": "25.4 (exact)" },
    { "key": "foot->m", "value": "0.3048 (exact)" },
    { "key": "yard->m", "value": "0.9144 (exact)" }
    ]
}
JavaScript
const res = await fetch(
  'https://collections.rest/api/v1/collection/unit-conversions.json'
);
const { items } = await res.json();
// values are typed: integers are numbers, not strings
curl
curl https://collections.rest/api/v1/\
  collection/unit-conversions.csv