1. What this tool does
The Unit Converter turns a single numeric measurement into its equivalent in another unit, in real time, entirely inside your browser tab. It covers three families: length from micrometers to nautical miles, mass from milligrams to US short tons, and temperature across Celsius, Fahrenheit, and Kelvin. The workflow is one input, one dropdown on each side, one live result. Type into either side and the other updates as you type; click the swap button to reverse the pair without losing the value; click the copy button to put the result on the clipboard.
The conversion tables are literal JavaScript constants in the page bundle. There is no upload, no fetch, no analytics beacon, no server round-trip. The privacy posture is therefore the strongest one available: the operation is mathematical, the inputs are numbers, and the only thing leaving the page is the text you type into a copy buffer if you ask for it. The same is true on the slow paths — invalid inputs, overflowing inputs, below-absolute-zero temperatures — none of them touch the network.
2. Why unit conversion is non-trivial
At first glance a unit converter is a one-line program: multiply the input by a constant. In practice three small wrinkles make the problem more interesting than it looks. The first is chains of historical definitions. The international foot, the US survey foot, the imperial pound, and the metric ton each carry centuries of accumulated trade and metrology decisions. The factors used in this tool are not folklore — they are the exact rationals fixed by the 1959 international yard-and-pound agreement, which is why they look unwieldy (1 lb = 0.45359237 kg) instead of round.
The second is the distinction between mass and weight. In everyday English they are interchangeable; in physics they are not. Mass is the amount of matter in an object (kilograms, pounds-mass); weight is the force gravity exerts on that mass (newtons, pounds-force). A kitchen scale reads mass; a bathroom scale reads weight and calls it mass because gravity on Earth is nearly constant. This tool converts mass, even when the UI says “weight” in marketing copy, because that is what the underlying numbers are.
The third is temperature. Length and mass are linear: zero millimeters is zero feet, two millimeters is twice one millimeter. Temperature is affine: zero degrees Celsius is thirty-two degrees Fahrenheit, and doubling the Celsius value does not double the Fahrenheit value. The shortcut factor[from] / factor[to] that works for length and mass would give wrong answers for temperature. Internally this tool dispatches temperature through an explicit through-Celsius pivot with the shifted formulas the spec describes.
3. The 1959 international yard-and-pound agreement
For most of the twentieth century the United States, the United Kingdom, and the Commonwealth countries each had their own versions of the yard and the pound. They were close — close enough for everyday commerce — but not identical, which made precision engineering across borders genuinely difficult. On 1 July 1959 the standards bodies of those countries agreed to a single, common definition: one international yard would equal exactly 0.9144 meters, and one international pound would equal exactly 0.45359237 kilograms.[1] Every other length and mass unit in this tool inherits from those two anchors. Inches are 1/36 of a yard, so 1 in = 0.0254 m exactly. The statute mile is 5,280 feet, so 1 mi = 1609.344 m exactly. The ounce is 1/16 of a pound, so 1 oz = 0.028349523125 kg exactly. These are not rounded approximations — they are the agreed definitions.
The United States kept one parallel definition for surveying: the US survey foot, defined as 1200/3937 meters, which differs from the international foot in the seventh decimal place. The survey foot continued to anchor geodetic measurements, state plane coordinates, and large-scale land records where backward compatibility with nineteenth-century survey work mattered more than alignment with the international foot. On 31 December 2022 the US National Geodetic Survey and the National Institute of Standards and Technology jointly retired the US survey foot in favour of the international foot, ending a sixty-three-year dual system.[1] This tool uses the international foot.
4. The SI redefinition (2019)
The metric system was overhauled in May 2019 in what the Bureau International des Poids et Mesures (BIPM) calls the 2019 redefinition of the SI base units. Before the redefinition, the kilogram was defined by an actual physical object: a platinum-iridium cylinder kept under three nested bell jars in a vault in Sèvres, France, called the International Prototype of the Kilogram (IPK). Every kilogram standard in the world was a copy of that cylinder, and the IPK was found, over decades of precision comparison, to be drifting by tens of micrograms relative to its official sister copies. A definition that drifts is not really a definition.
In the 2019 SI brochure, the kilogram is instead fixed by assigning an exact numerical value to the Planck constant h.[2] The meter is fixed by an exact value of the speed of light c; the second by the caesium-133 hyperfine transition; the ampere, kelvin, mole, and candela each by analogous exact constants. The practical consequence for this tool is none: every conversion factor in §3 above is unchanged. The philosophical consequence is large — for the first time in history, the SI base units do not depend on any artifact, and a physicist on Mars can reproduce the kilogram with sufficiently fancy laboratory equipment and a copy of the SI brochure. This tool’s tables are therefore valid for the foreseeable future of physics.
5. Temperature scales
Kelvin is the SI temperature scale. It has no zero offset: 0 K is absolute zero, the lowest temperature physically possible. Note the absence of a degree sign — kelvins are an absolute unit in the same family as meters and seconds, and the SI brochure is explicit that they take neither the word “degrees” nor the ° symbol.[2] Celsius is a shifted Kelvin scale: the same size of degree, but with the zero re-anchored to the freezing point of water at standard pressure, so 0 °C = 273.15 K. Fahrenheit is both shifted and scaled: nine Fahrenheit degrees cover the same temperature interval as five Celsius degrees, and the zero is offset so that water freezes at 32 °F.
The “below absolute zero” warning that appears in the tool when the input represents a value cooler than 0 K (for example -300 °C) is shown rather than clamped because users sometimes type those values deliberately, to compute an intermediate step or to spot-check a formula. The tool gives the mathematically correct answer and notes that the physical interpretation is bounded.
6. How to choose / common pitfalls
Mass vs force. This tool converts mass: kilograms, pounds (avoirdupois, pound-mass), stones, ounces, tons. If you need to convert weight in the physics sense — newtons, pounds-force, kilograms-force — that is a different family of units and would be a separate tool. In daily use the distinction rarely matters; in engineering it always does.
Nautical miles vs statute miles. The nautical mile (nmi = 1852 m) is the maritime and aviation mile, defined as one minute of latitude along a meridian. The statute mile (mi = 1609.344 m) is the land mile, defined by the international yard-and-pound agreement. They are not interchangeable; mixing them in a flight plan is one of the cleaner ways to land at the wrong airport.
Metric ton vs US short ton vs UK long ton. The metric ton (t = 1000 kg) is the SI ton. The US short ton (ton = 907.18474 kg = 2000 lb) is the ton used in US commerce. The UK long ton (2240 lb ≈ 1016.05 kg) is not in this tool’s v1 list; if you are reading a British shipping manifest, double-check which ton is meant.
Micrograms vs milligrams in medication. In drug dosing, the difference between a microgram (µg) and a milligram (mg) is a factor of one thousand and is regularly fatal. The tool handles micrograms via the symbol µm for length only — micrograms of mass are not in v1. If you are doing dosing math, use the dedicated medical-conversion table from the manufacturer, not a general-purpose unit converter.
Locale and decimals. The input parses a US-style decimal separator (1.75) and rejects a comma decimal (1,5) as non-numeric. This is a deliberate v1 choice; locale-aware parsing is on the list of future improvements if there is user demand.
References
- Thompson, A. and Taylor, B. N. (2008). Guide for the Use of the International System of Units (SI). NIST Special Publication 811. www.nist.gov/pml/special-publication-811 — primary US reference for the conversion factors used in this tool, including the 1959 international yard-and-pound agreement and the retirement of the US survey foot.
- Bureau International des Poids et Mesures (2019). The International System of Units (SI), 9th edition. www.bipm.org/en/publications/si-brochure — canonical reference for the 2019 SI redefinition, the Planck-constant definition of the kilogram, the speed-of-light definition of the meter, and the formal status of Celsius and Kelvin.
Related tools
- Number Base Converter — Convert numbers between binary, octal, decimal, and hexadecimal — the integer cousin of this tool.
- Color Converter — Convert colors between HEX, RGB, HSL, and HSV — the same shape of problem for color space.
- Text Case Converter — Convert text between upper, lower, Title, camelCase, snake_case, and kebab-case.
- CSV ↔ JSON Converter — Convert tabular data between CSV and JSON, with header-row handling.
- Markdown ↔ HTML Converter — Convert prose between Markdown source and rendered HTML, in either direction.