Unit Converter
Pick a category, enter a value, get the result instantly.
Picking a category, units and a value
- Choose a category: length, weight, volume, area, speed, data or temperature. The two unit menus refill with the units for that category.
- Type a number in the left box. Decimals and negative numbers are accepted, and the right box shows the answer as you type.
- Pick the starting unit in the left menu and the target unit in the right one. Press Swap to reverse the direction without retyping.
These conversions are for reference only and are not intended for medical or dosage calculations or for engineering or safety-critical work; check the figures against an authoritative source for those.
Length opens on miles to kilometers, since that is a very common request. Other categories start with their first two units. The output box is read-only, so select its text to copy it.
In short
Each conversion goes through one base unit per category using fixed conversion factors, and temperatures use their own formulas. Answers show eight significant digits; converting a copied answer back can differ in the last digit because that answer was already rounded.
Frequently asked questions
How precise are the results?
Conversions use standard exact or internationally agreed factors and are rounded to 8 significant digits.
Why does my answer show fewer digits than I expected?
The tool keeps eight significant digits and removes trailing zeros. 8.0467200 is shown as 8.04672, and it is the same number with no information lost.
Why does converting a value there and back not return exactly the original?
The answer is shown rounded to eight significant digits, so the copy you convert back is already very slightly different from the full result. In our 6,000 copy-back round trips above, about 85% returned exactly, and outside temperature the rest were off by no more than about seven parts in 100 million. For temperature, the largest difference was 0.001 degrees, on a reading of 20,000 °F.
Is a US gallon the same as a UK gallon?
No. The US gallon is 3.785411784 liters and the UK (imperial) gallon is 4.54609 liters. Select the one named in your source.
Our test: is the eighth digit of the answer actually right?
Each category, and every ordered pair of different units in it (for speed we used m/s, km/h and mph), got 20 values typed into the converter in Chromium 153.0.8010.12: 1, 2.5, 7, 12, 37, 100, 250, 1,000, 0.3, 0.05, 3.14159, 42.195, 65, 98.6, 1,500, 20,000, 0.001, 123.456, −40 and 5,280. That gave 5,880 results read from the output box. Separately, we computed every answer with exact fractions from the legal definitions (1 inch = 0.0254 m, 1 lb = 0.45359237 kg, 1 US gallon = 231 cubic inches and so on), rounded it to 8 significant digits with halves rounded up, and compared.
| Category | Results checked | Same as exact answer | Last digit differs |
|---|---|---|---|
| Length | 1,120 | 1,120 | 0 |
| Weight | 840 | 836 | 4 |
| Volume | 1,120 | 1,118 | 2 |
| Area | 1,120 | 1,120 | 0 |
| Speed (m/s, km/h, mph) | 120 | 120 | 0 |
| Data | 1,440 | 1,436 | 4 |
| Temperature | 120 | 120 | 0 |
| Total | 5,880 | 5,870 | 10 |
What it means: 99.8% of answers matched the exact value to all eight digits. All 10 differences were exact halfway cases, where the ninth digit is a 5 followed by nothing: 1,500 lb is exactly 680.388555 kg, which school rounding makes 680.38856, while the tool shows 680.38855. In those cases the gap is one unit in the eighth digit, about one part in ten million, so it only matters if you need to match another source digit for digit.
Our test: if you copy the answer back and press Swap, do you get your number again?
Converting there and back is a common way to check a result, so we did it from the screen, 6,000 times. In headless Chromium 157.0.8103.78, for every ordered pair of different units in each category (all four speed units this time, knots included) we typed each of the same 20 values used above, read the answer box, pressed Swap, typed that answer into the left box exactly as shown, and read the new answer. A round trip counted as exact when the second answer was the number we had first typed.
| Category | Round trips | Came back exactly | Came back slightly off | Largest gap we saw |
|---|---|---|---|---|
| Length | 1,120 | 1,003 | 117 | 20,000 yards → 11.363636 miles → 19,999.999 yards |
| Weight | 840 | 675 | 165 | 37 oz → 1.0489324 kg → 37.000002 oz |
| Volume | 1,120 | 905 | 215 | 20,000 US cups → 1,040.8427 UK gallons → 19,999.999 US cups |
| Area | 1,120 | 920 | 200 | 42.195 hectares → 104.26612 acres → 42.195002 hectares |
| Speed | 240 | 202 | 38 | 1,000 knots → 1,150.7794 mph → 999.99996 knots |
| Data | 1,440 | 1,302 | 138 | 1,500 TB → 1,364.2421 TiB → 1,500.0001 TB |
| Temperature | 120 | 97 | 21 | 20,000 °F → 11,093.333 °C → 19,999.999 °F |
| Total | 6,000 | 5,104 | 894 |
The two temperature trips that are in neither column started from −40 K. The answer box stayed empty and showed “Below absolute zero”, so there was nothing to copy back.
What it means: about 85% of round trips returned the exact number. The rest were off because the answer you copy back has already been rounded to eight significant digits, and that rounding carries over into the reverse conversion. Outside temperature, no gap was larger than about seven parts in 100 million. Temperature is different, because the Fahrenheit offset of 32 degrees can make a small reading look relatively far off: 0.001 °F came back as 0.001004 °F, a difference of only 0.000004 degrees. Pairs whose factor is a whole power of ten, such as kilometers and meters or kilobytes and bytes, always came back exactly in our run. If a figure must survive a round trip exactly, keep the number you started with rather than the converted copy.
Every round trip is in one plain CSV file with a header row: 6,000 copy-back round trips, with columns category, from_unit, to_unit, typed_value, shown_result, typed_back, shown_after_round_trip, returned_exactly and relative_difference.
More details
Quick reference
- 1 inch = 2.54 cm; 1 foot = 30.48 cm; 1 mile = 1.609 km
- 1 kg = 2.205 lb; 1 oz = 28.35 g
- 0 °C = 32 °F; 100 °C = 212 °F
- 1 US gallon = 3.785 L
Base units, conversion factors and temperature formulas
For every category except temperature, each unit is stored as a factor relative to one base unit: meters for length, kilograms for weight, liters for volume, square meters for area, meters per second for speed and bytes for data. The converter multiplies your value by the starting unit's factor to reach the base, then divides by the target unit's factor. So 5 miles becomes 5 × 1609.344 = 8046.72 meters, and dividing by 1000 gives 8.04672 km.
Temperature cannot use a single multiplier because Celsius, Fahrenheit and Kelvin have different zero points. The page converts to Celsius first (Fahrenheit minus 32, times 5/9; Kelvin minus 273.15) and then to the target (Celsius times 9/5 plus 32; or plus 273.15). For example 100 °F becomes 37.777778 °C and 0 °C becomes 273.15 K.
Results are rounded to 8 significant digits, with trailing zeros dropped. Very large or very small answers may appear in exponent form, such as 1e-7.
Examples: body weight, cooking, speed, land and storage
- Body weight: 70 kg is about 154.32 lb. Going the other way, 12 stone is about 76.2 kg, because the stone is stored as 6.35029318 kg.
- Cooking: 1 US gallon is 3.7854118 L, and 1 US cup is about 236.59 mL. A UK gallon is larger at 4.54609 L, which is roughly 1.2 US gallons, so a recipe or fuel figure from Britain can differ noticeably from an American one.
- Speed: 100 km/h is about 62.137 mph, and a knot is 0.514444444 meters per second.
- Land: one hectare is 10,000 square meters, and an acre is 4046.8564224 square meters, so a hectare is about 2.47 acres.
- Storage: a 500 GB drive holds about 465.66 GiB, which is why a new drive looks smaller in an operating system that reports in binary units.
Decimal versus binary data units
The data category lists both families. KB, MB, GB and TB use powers of 1000, matching how drive makers and network speeds are quoted. KiB, MiB, GiB and TiB use powers of 1024, matching how memory is addressed and how some operating systems show file sizes. 1 GB is 1,000,000,000 bytes while 1 GiB is 1,073,741,824 bytes, a gap of about 7 percent that widens at the terabyte scale: 1 TB is only about 0.909 TiB. If two tools disagree about a file size, check which family each one uses.
Travel, kitchen, home projects and study
- Travel and shopping: road distances, luggage limits, clothing and product specifications between metric and imperial.
- Cooking and baking: converting US cups and fluid ounces against liters and milliliters.
- Home projects: floor space in square feet against square meters, and lengths in inches against millimeters.
- Study and technical work: checking homework, datasheets or bandwidth figures.
What the converter does not cover
- Volume and weight are different things. This tool does not turn cups into grams because that depends on the ingredient's density.
- Fluid ounces and cups here are US measures. UK and metric cups are not in the list, and the only UK volume unit is the imperial gallon.
- The weight units are units of mass, so pounds and ounces mean the avoirdupois measures used in everyday trade. Troy ounces for precious metals are not included.
- Temperatures below absolute zero, such as −40 K or −273.16 °C, are not converted. The answer box stays empty and reads “Below absolute zero”.
- Currency, time and fuel economy conversions are not included, since they need rates or inverse relationships rather than a fixed factor.