Unit Converter
Convert between metric, imperial, and digital units instantly.
100% in your browser — nothing uploadedConvert length, weight, temperature, area, volume and more
Decimals: use a period or a comma — 99.5 or 99,5.
Full conversion
Common formulas
These are the most commonly used conversions. Temperature uses special formulas; the rest are simple multiplications.
Temperature °C → °F = (°C × 9/5) + 32 °F → °C = (°F − 32) × 5/9 °C → K = °C + 273.15 Length 1 mi = 1.609344 km 1 ft = 0.3048 m 1 in = 2.54 cm 1 nmi = 1.852 km Weight 1 lb = 453.59237 g = 0.45359 kg 1 oz = 28.3495 g 1 stone = 14 lb = 6.35029 kg Volume 1 gal (US) = 3.78541 L 1 fl oz = 29.5735 mL 1 cup (US) = 236.588 mL Speed 1 mph = 1.60934 km/h 1 knot = 1.852 km/h 1 m/s = 3.6 km/h Digital (1024-based) 1 KB = 1024 bytes 1 MB = 1024 KB 1 GB = 1024 MB 1 TB = 1024 GB 1 PB = 1024 TB
Excel / Google Sheets
The CONVERT function converts between recognized units. Place the value in A2 and use the formula directly.
=CONVERT(A2, "mi", "km") -- miles to kilometers =CONVERT(A2, "lbm", "kg") -- pounds to kilograms =CONVERT(A2, "C", "F") -- Celsius to Fahrenheit =CONVERT(A2, "gal", "l") -- US gallons to liters =CONVERT(A2, "ft", "m") -- feet to meters =CONVERT(A2, "oz", "g") -- ounces to grams =CONVERT(A2, "in", "cm") -- inches to centimeters =CONVERT(A2, "m/s", "mph") -- m/s to mph (Excel 365)
CONVERT accepts standard abbreviations: "m", "km", "mi", "ft", "C", "F", "K", "g", "kg", "lbm", "ozm", "l", "gal", "m/s", "mph", etc. See Excel documentation for the full list.
SQL
SQL has no built-in CONVERT function for units. Use multiplication with the appropriate conversion factor.
-- Miles to kilometers SELECT distance_mi * 1.609344 AS distance_km FROM trips; -- Pounds to kilograms SELECT weight_lb * 0.45359237 AS weight_kg FROM products; -- Celsius to Fahrenheit SELECT (temp_c * 9.0 / 5) + 32 AS temp_f FROM readings; -- Fahrenheit to Celsius SELECT (temp_f - 32) * 5.0 / 9 AS temp_c FROM readings; -- US gallons to liters SELECT volume_gal * 3.785411784 AS volume_l FROM inventory;
Adjust the factor for your source and target units. For temperature, use the full formula.
About this unit converter
Select a category — length, weight, temperature, area, volume, speed, or digital storage — enter a value, and see it converted to every unit in that category simultaneously. The converter handles metric (mm, cm, m, km, g, kg, °C), imperial (in, ft, yd, mi, oz, lb, °F), and specialized units (nautical miles, knots, hectares, Kelvin, bytes to petabytes).
Temperature conversions use the exact formulas (°F = °C × 9/5 + 32, K = °C + 273.15) rather than multiplication factors, and digital storage uses the binary standard (1 KB = 1024 bytes). The tool includes the Excel CONVERT function with its unit codes and simple SQL multiplication expressions for embedding conversions in queries.
FAQ
Does this use 1000 or 1024 for kilobytes?
This converter uses the binary standard: 1 KB = 1024 bytes, 1 MB = 1024 KB, and so on. This matches how operating systems report storage. The SI standard (1 kB = 1000 bytes) is technically more precise but rarely used in practice.
How accurate are the conversions?
All conversion factors use the exact values defined by the International System of Units (SI) or their legally defined equivalents. For example, 1 inch = exactly 25.4 mm, 1 pound = exactly 0.45359237 kg. Temperature formulas are exact, not rounded.
Can I convert between categories like weight to volume?
No — weight and volume are different physical quantities and cannot be directly converted without knowing the density of the substance. This tool converts within categories only.