Unit Conversions provide conversions for units, such as meter ⟹ foot, so that a source units can be converted into what is needed for localized Unit Preferences. There are many possible units, and additional units and conversions will be added in future releases.
- Each Source Unit is converted to the Target Unit by multiplying it by the Factor and adding the Offset (if any).
- The unit identifiers are internal, and are to be localized for display to users. See Hectare, for example.
- Each numeric value is an exact rational. The format is a terminating decimal where possible; otherwise a repeating decimal if possible (where ˙ marks the start of the reptend); otherwise a rational number (of the form numerator/denominator).
- The Systems column indicates which systems the units are used in. For now, they just show the two ‘inch-pound’ systems.
- The units are grouped and ordered by Quantity (which are based on the NIST quantities, see NIST 811). Note that the quantities are informative.
- The LDML specification should be consulted for more details, such as how to handle complex units (such as foot-per-minute) by converting the elements.
Warning: Do not scrape this chart for production data.
Instead, for the meaning of the fields and data consult the LDML specification, and for machine-readable source data, access common/supplemental/units.xml, and for test data, access common/testData/units/unitsTest.txt.
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| candela | 1 | | candela | | luminous-intensity |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| carat | 0.0002 | | kilogram | | mass |
| gram | 0.001 |
| ounce | 0.028349523125 | ussystem, uksystem |
| ounce-troy | 0.03110348 |
| pound | 0.45359237 |
| kilogram | 1 | |
| stone | 6.35029318 | uksystem |
| ton | 907.18474 | ussystem, uksystem |
| metric-ton | 1,000 | |
| earth-mass | 5,972,200,000,000,000,000,000,000 |
| solar-mass | 1,988,470,000,000,000,000,000,000,000,000 |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| point | 0.000352˙7 | | meter | ussystem, uksystem | length |
| inch | 0.0254 |
| foot | 0.3048 |
| yard | 0.9144 |
| meter | 1 | |
| fathom | 1.8288 | ussystem, uksystem |
| furlong | 201.168 |
| mile | 1,609.344 |
| nautical-mile | 1,852 |
| mile-scandinavian | 10,000 | |
| 100-kilometer | 100,000 |
| earth-radius | 6,378,100 |
| solar-radius | 695,700,000 |
| astronomical-unit | 149,597,900,000 |
| light-year | 9,460,730,000,000,000 |
| parsec | 30,856,780,000,000,000 |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| second | 1 | | second | | duration |
| minute | 60 |
| hour | 3,600 |
| day | 86,400 |
| day-person |
| week | 604,800 |
| week-person |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| month | 0.08˙3 | | year | | year-duration |
| month-person |
| year | 1 |
| year-person |
| decade | 10 |
| century | 100 |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| ampere | 1 | | ampere | | electric-current |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| fahrenheit | 0.˙5 | 255.37˙2 | kelvin | ussystem, uksystem | temperature |
| kelvin | 1 | | |
| celsius | 273.15 |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| arc-second | 0.0000007˙716049382 | | revolution | | angle |
| arc-minute | 0.00004˙629 |
| degree | 0.002˙7 |
| radian | 65,501,488/411,557,987 |
| revolution | 1 |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| item | 1 | | item | | substance-amount |
| mole | 602,214,076,000,000,000,000,000 |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| permillion | 0.000001 | | portion | | portion |
| permyriad | 0.0001 |
| permille | 0.001 |
| percent | 0.01 |
| karat | 0.041˙6 |
| portion | 1 |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| bit | 1 | | bit | | digital |
| byte | 8 |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| dot | 1 | | pixel | | graphics |
| pixel |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| em | 1 | | em | | typewidth |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| hertz | 1 | | revolution-per-second | | frequency |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| newton | 1 | | kilogram-meter-per-square-second | | force |
| pound-force | 4.4482216152605 | ussystem, uksystem |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| pascal | 1 | | kilogram-per-meter-square-second | | pressure |
| bar | 100,000 |
| atmosphere | 101,325 |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| ofhg | 133,322.387415 | | kilogram-per-square-meter-square-second | | pressure-per-length |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| electronvolt | 0.0000000000000000001602177 | | kilogram-square-meter-per-square-second | | energy |
| dalton | 0.00000000014924180856 |
| joule | 1 |
| calorie | 4.184 |
| british-thermal-unit | 1,054.3502644˙8 | ussystem, uksystem |
| foodcalorie | 4,184 |
| therm-us | 105,480,400 | ussystem |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| watt | 1 | | kilogram-square-meter-per-cubic-second | | power |
| horsepower | 745.69987158227022 | ussystem, uksystem |
| solar-luminosity | 382,800,000,000,000,000,000,000,000 | |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| volt | 1 | | kilogram-square-meter-per-cubic-second-ampere | | voltage |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| ohm | 1 | | kilogram-square-meter-per-cubic-second-square-ampere | | electric-resistance |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| dunam | 1,000 | | square-meter | | area |
| acre | 4,046.8564224 | ussystem, uksystem |
| hectare | 10,000 | |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| teaspoon | 0.00000492892159375 | | cubic-meter | ussystem | volume |
| tablespoon | 0.00001478676478125 |
| fluid-ounce-imperial | 0.0000284130625 | uksystem |
| fluid-ounce | 0.0000295735295625 | ussystem |
| cup | 0.0002365882365 |
| cup-metric | 0.00025 | |
| pint | 0.000473176473 | ussystem |
| pint-metric | 0.0005 | |
| quart | 0.000946352946 | ussystem |
| liter | 0.001 | |
| gallon | 0.003785411784 | ussystem |
| gallon-imperial | 0.00454609 | uksystem |
| bushel | 0.03523907016688 | ussystem |
| barrel | 0.158987294928 |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| knot | 0.51˙4 | | meter-per-second | ussystem, uksystem | speed |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| g-force | 9.80665 | | meter-per-square-second | | acceleration |
| Source Unit | Factor | Offset | Target | Systems | Quantity |
| lux | 1 | | candela-square-meter-per-square-meter | | luminous-flux |