What it does
Unit Conversion API converts values across common measurement systems. Send a numeric value plus from and to units, and get back a converted result as an object.
Use it for weight conversion between kg, g, mg, lb, and oz; temperature conversion between C, F, and K; file size conversion between B, KB, MB, GB, TB, and PB; and length conversion between m, cm, mm, km, in, ft, yd, and mi. It also converts Roman numerals in both directions: set direction to toRoman or fromRoman and pass a value as a number or string as required.
This is useful when you normalize user-entered measurements, convert product dimensions, format storage values, or support locale-aware inputs in calculators and internal tools. The request shape is consistent across the conversion endpoints, which makes it easy to wire into forms, workflows, or backend validation logic.
If you need a small utility endpoint for turning one unit or numeral system into another, Unit Conversion API keeps the contract simple and focused.