About UnitBridge
A reference site for unit conversion, built on published definitions rather than on remembered decimals.
What this site is
UnitBridge converts units in eight categories: length, weight, temperature, area, volume, speed, data and time. It runs entirely in your browser as a single JavaScript file. There is no account, no upload, no server-side calculation and no third-party script involved in producing a result.
The site exists because unit converters are often wrong in ways that are hard to notice. A converter that multiplies a temperature by 1.8 without adding 32 returns a plausible number that is off by 32 degrees. One that treats a kilobyte as 1,024 bytes and a megabyte as 1,000,000 bytes is consistent with neither standard. Those errors are cheap to make and expensive to find, so the goal here is a small tool whose numbers can be checked line by line.
How the numbers are produced
- Definitions, not rounded factors. Where a unit has an exact legal definition, that definition is used. The inch is 25.4 mm, so the foot is 0.3048 m and the mile is 1,609.344 m exactly. The pound is 0.45359237 kg. The US gallon is 231 cubic inches, or 3.785411784 L.
- Temperature by formula. Each scale is converted to Celsius and back with its own affine equation. No temperature conversion on this site uses a single multiplier.
- One rounding step. Arithmetic runs at full double precision and the display rounds to six significant digits, or ten in exact mode. Whole numbers are printed in full, because rounding a byte count to six digits would change the number.
- Average values are labelled. A month and a year have no fixed length, so the converter uses the average Gregorian values — 30.436875 days and 365.2425 days — and says so in the table.
What the site does not do
It does not convert currencies, because exchange rates are not units and change by the minute. It does not convert cooking cups to grams for dry ingredients, because that depends on how the ingredient was packed rather than on a definition. It does not claim precision its inputs do not have: a result shown to six digits from a measurement with two significant digits is still a two-digit measurement.
How the site is maintained
Factors come from the SI Brochure published by the International Bureau of Weights and Measures, from NIST Special Publication 811 for US customary units, and from IEC 80000-13 for binary prefixes. Each conversion is covered by an assertion in a test script that runs against the same engine the page uses, so a value that disagrees with its published definition fails the build rather than reaching a reader.
The guides are written for the cases where a number is not enough — ambiguous unit names, affine scales, measurement conventions in property listings, and the base-10 versus base-2 split in data units. Each one addresses a specific recurring problem and links back to the converter that handles it.
Corrections
If a value on this site disagrees with a published definition, that is a bug and it should be fixed rather than argued about. Write to the contact address with the unit pair, the value you expected and the source you are comparing against.
Written by the UnitBridge team. Last updated November 19, 2026.