Unit Converter

Convert between metric and imperial units of length, mass, and temperature.

How the unit converter works

A unit converter takes a quantity expressed in one unit and restates it in another without changing the underlying measurement. Convert 5 kilometers to miles and the distance is identical; only the label and the number change. It sounds trivial, but doing it reliably means using the exact, internationally agreed relationships between units rather than the rough approximations most people carry in their heads. This page explains how the converter above works, what the numbers mean, and how to avoid the mistakes that trip people up most often.

The core idea: convert through a base unit

Every conversion in the tool follows the same two-step recipe. First it converts your input into a single base unit for that kind of measurement. Then it converts from the base unit into whatever unit you asked for. For length the base unit is the meter; for mass it is the kilogram. This "hub and spoke" approach means the tool only needs to store one number per unit - how many base units it represents - instead of storing a conversion factor for every possible pair. With eight length units that would be more than fifty pairs to maintain; with a base unit it is just eight numbers.

For example, a kilometer is defined as 1,000 meters and a mile is defined as 1,609.344 meters. To convert 5 kilometers to miles, the tool multiplies 5 by 1,000 to get 5,000 meters, then divides 5,000 by 1,609.344 to get roughly 3.107 miles. Because both factors are exact by international definition, the only imprecision is the final rounding for display.

Length units and their exact factors

The metric length units are simple powers of ten: a millimeter is one thousandth of a meter, a centimeter is one hundredth, and a kilometer is one thousand meters. The imperial units are defined precisely in terms of the meter, which surprises people who assume they are "old" and therefore fuzzy. Since 1959 the international yard has been defined as exactly 0.9144 meters. Everything else follows from that single definition: a foot is one third of a yard (0.3048 meters), an inch is one twelfth of a foot (0.0254 meters), and a mile is 1,760 yards (1,609.344 meters). The converter uses these exact values, so a conversion like inches to centimeters is not an estimate - one inch is exactly 2.54 centimeters.

Mass units, and why "weight" is the wrong word

The converter handles mass: milligrams, grams, kilograms, metric tons, ounces, and pounds. Strictly speaking these measure mass, the amount of matter in an object, not weight, which is the force gravity exerts on that mass. On Earth the two track each other closely enough that everyday language treats them as the same, but a 70-kilogram person has the same mass on the Moon while weighing about a sixth as much. For unit conversion the distinction rarely matters, because you are converting the quantity you were given, not recomputing it for a different gravity.

As with length, the imperial mass units are defined exactly in metric terms. The international pound is exactly 0.45359237 kilograms, and an ounce is one sixteenth of a pound. That is why converting 5 kilograms to pounds gives about 11.02 pounds: 5 divided by 0.45359237. A metric ton, meanwhile, is simply 1,000 kilograms, not to be confused with the US "short ton" of 2,000 pounds or the UK "long ton" of 2,240 pounds - a common source of confusion this tool sidesteps by using the unambiguous metric ton.

Temperature is different: offsets, not just factors

Length and mass conversions are pure multiplication, because zero of one unit is zero of every other. Temperature is not like that. Zero degrees Celsius is not zero degrees Fahrenheit - it is 32. The Celsius and Fahrenheit scales have different zero points and different degree sizes, so converting between them needs both a multiplication and an addition.

To go from Celsius to Fahrenheit, multiply by 9/5 and then add 32. So 100°C becomes 100 × 1.8 = 180, plus 32 = 212°F, the boiling point of water at sea level. To go the other way, subtract 32 first, then multiply by 5/9. Kelvin, the scientific absolute scale, shares the Celsius degree size but starts at absolute zero, so Celsius to Kelvin is just adding 273.15. That is why 0°C is 273.15 K. Internally the converter always routes temperature through Celsius: it converts your input to Celsius, then from Celsius to the target scale, which keeps the offset logic in one place.

This is also the reason the tool reports that −40°C equals −40°F. It is not a bug or a rounding coincidence: the two scales genuinely cross at −40 degrees. Below that temperature the Fahrenheit number is smaller than the Celsius number; above it, larger. Seeing the tool reproduce this is a quick way to confirm the offset math is correct.

Precision and rounding

Computers store decimals in binary, which cannot represent every decimal fraction exactly - 0.1 has no exact binary form, just as one third has no exact decimal form. Left alone, a chain of multiplications and divisions can leave a tiny residue, so a result that should read 1 might display as 0.9999999999998. To prevent that, the converter rounds every result to eight significant figures before showing it. Eight figures is far more precision than any everyday measurement needs, while being tight enough to erase the binary noise. If you need the raw, unrounded value for a scientific calculation, apply the exact factors described above rather than reading them off a display.

Worked scenarios

Planning a run abroad. A training plan lists a 10-kilometer run but your watch is set to miles. Convert 10 kilometers and you get about 6.21 miles, so you know to expect a distance a little over a 10 K "feels like" if you only think in miles.

Following a recipe. A recipe from another country calls for 200 grams of flour, but your kitchen scale reads in ounces. Convert 200 grams to about 7.05 ounces. Because the tool uses the exact gram-to-ounce relationship, you are not compounding a rough "about 28 grams per ounce" estimate.

Reading a weather report. A forecast abroad says it will reach 35°C. Convert to Fahrenheit and you get 95°F - a hot day. Running the reverse on your home forecast helps you build intuition for the scale you are less familiar with.

Common mistakes to avoid

The most frequent error is converting in the wrong direction - dividing when you should multiply, or vice versa. A good sanity check is to ask whether the number should get bigger or smaller. Because a mile is longer than a kilometer, a distance in miles should be a smaller number than the same distance in kilometers, so 10 kilometers becoming 6.21 miles passes the check. Another common slip is mixing up units that share a name across systems, like the fluid ounce (a volume) and the ounce (a mass); this tool only handles the mass ounce, which removes that ambiguity. Finally, with temperature, remember that you cannot simply scale a difference the same way you scale a reading: a change of 10°C is a change of 18°F, but a reading of 10°C is 50°F, because the offset applies to readings, not to differences.

A brief history of standardized units

The reason conversions can be exact at all is that the world eventually agreed on shared definitions. For most of history a "foot" or a "pound" varied from town to town, which made trade and science maddening. The metric system, introduced in France in the 1790s, was the first serious attempt at a single coherent system built on powers of ten. The modern International System of Units (SI) descends from it and defines the meter, kilogram, second, and other base units in terms of unchanging physical constants. Crucially, the imperial and US customary units were later re-defined in terms of the metric units rather than the other way around, which is why an inch is exactly 2.54 centimeters and a pound is exactly 0.45359237 kilograms. When you convert with this tool you are relying on those international agreements, not on folklore.

How many significant figures do you need?

A conversion can produce a long string of digits, but not all of them are meaningful. Significant figures are the digits that actually carry information about precision. If you measured a table as "2 meters" with a tape measure, converting to 6.5616798 feet implies a precision you never had; "6.6 feet" is honest. A good rule is to keep roughly the same number of significant figures as your original measurement. The converter displays up to eight figures so it never throws away precision you might need, but you should round the result down to match the confidence of your input. For rough everyday work, two or three significant figures are usually plenty; for engineering or scientific work, carry the full value through your calculation and round only at the very end, so rounding errors do not accumulate.

Why convert in the browser

Everything above happens on your own device. When the page loads, the conversion logic loads with it, and each calculation runs locally in a few milliseconds. Nothing you type is transmitted or stored, there is no waiting on a server, and the tool keeps working even if your connection drops after the page has loaded. That is both a privacy benefit and a speed benefit, and it is why a well-built utility page can feel instant compared with a tool that sends every keystroke to a remote service.

Worked examples

Frequently asked questions

Is this unit converter free to use?
Yes. The converter is completely free and runs entirely in your browser. There is no sign-up, and the numbers you enter never leave your device.
How accurate are the conversions?
Conversions use exact internationally-defined factors (for example, 1 inch = 0.0254 meters and 1 pound = 0.45359237 kilograms). Results are rounded to eight significant figures for display.
Why is -40 degrees the same in Celsius and Fahrenheit?
The Celsius and Fahrenheit scales cross at -40 degrees. Below that point Fahrenheit reads lower than Celsius; above it, higher. It is a genuine property of the two scales, not a rounding artifact.
Can I convert between metric and imperial units?
Yes. Length supports millimeters through miles, and mass supports milligrams through metric tons and imperial ounces and pounds, so you can mix metric and imperial freely.
Does the converter work offline?
Once the page has loaded, the conversion logic runs locally, so it keeps working even if your connection drops.