Free tool
Unit Converter
Convert length, weight, temperature, volume, area, speed and data size with exact factors, such as 1 inch = 2.54 cm. Includes inches to cm and kg to lbs.
You can type decimals (3.5), thousands separators (1,000) or fractions (5 1/2).
…
Show the value in every unit
Runs entirely in your browser. Nothing you type or upload is sent to our servers.
How to use the unit converter
- Choose a type of measurement: length, weight, temperature, volume, area, speed or data size.
- Type a value and pick the units to convert from and to. Use the swap button to reverse them.
- Read the result, the exact factor used, and, if you like, the value in every other unit of that type. Use the precision menu to round to the number of decimals you need.
Popular conversions
These pages open the converter with the units already selected and add reference charts and worked examples:
- Inches to CM Converter: inches to cm
- CM to Inches Converter: cm to inches
- Celsius to Fahrenheit Converter: celsius to fahrenheit
- Miles to KM Converter: miles to km
- KG to LBS Converter: kg to lbs
Worked examples
- Length: 12 inches × 2.54 = 30.48 cm, because 1 in is exactly 2.54 cm.
- Weight: 70 kg ÷ 0.45359237 = 154.3235835 lb, because 1 lb is exactly 0.45359237 kg.
- Temperature: 25 °C × 9/5 + 32 = 77 °F.
- Volume: 1 US gallon = 3.785411784 liters = 16 US cups.
- Speed: 60 mph = 96.56064 km/h.
- Data size: 1 GiB = 1073.741824 MB, because a gibibyte is 1,073,741,824 bytes and a megabyte is 1,000,000.
Temperature formulas
Temperature scales have different zero points, so each conversion uses an exact formula through kelvin: °C, °F, K, °R.
- °F = °C × 9/5 + 32 and °C = (°F − 32) × 5/9
- K = °C + 273.15 and °C = K − 273.15
- °R = °F + 459.67, where Rankine is the absolute scale that uses Fahrenheit-sized degrees
The exact factor for every unit
Each unit is defined exactly in terms of the base unit of its type. Where a value is not a finite decimal, such as 1 km/h, the table shows it as a rounded decimal and its exact fraction.
Length (base unit: meter)
Every length unit is defined exactly in meters. The inch is exactly 2.54 centimeters (international agreement of 1959).
| Unit | Exact value in the base unit |
|---|---|
| Millimeter | 1 mm = 0.001 m |
| Centimeter | 1 cm = 0.01 m |
| Kilometer | 1 km = 1000 m |
| Inch | 1 in = 0.0254 m |
| Foot | 1 ft = 0.3048 m |
| Yard | 1 yd = 0.9144 m |
| Mile | 1 mi = 1609.344 m |
| Nautical mile | 1 nmi = 1852 m |
| Micrometer | 1 µm = 0.000001 m |
Weight & mass (base unit: kilogram)
The pound is defined as exactly 0.45359237 kilograms; the ounce, stone and tons follow from it.
| Unit | Exact value in the base unit |
|---|---|
| Milligram | 1 mg = 0.000001 kg |
| Gram | 1 g = 0.001 kg |
| Metric ton (tonne) | 1 t = 1000 kg |
| Ounce | 1 oz = 0.028349523125 kg |
| Pound | 1 lb = 0.45359237 kg |
| Stone | 1 st = 6.35029318 kg |
| US short ton | 1 ton = 907.18474 kg |
| UK long ton | 1 long ton = 1016.0469088 kg |
Volume (base unit: liter)
US customary units come from the US gallon, exactly 231 cubic inches (3.785411784 liters). Imperial units come from the imperial gallon, exactly 4.54609 liters.
| Unit | Exact value in the base unit |
|---|---|
| Milliliter | 1 mL = 0.001 L |
| Cubic meter | 1 m³ = 1000 L |
| US teaspoon | 1 tsp = 0.00492892159375 L |
| US tablespoon | 1 tbsp = 0.01478676478125 L |
| US fluid ounce | 1 fl oz = 0.0295735295625 L |
| US cup | 1 cup = 0.2365882365 L |
| US pint | 1 pt = 0.473176473 L |
| US quart | 1 qt = 0.946352946 L |
| US gallon | 1 gal = 3.785411784 L |
| Imperial fluid ounce | 1 imp fl oz = 0.0284130625 L |
| Imperial pint | 1 imp pt = 0.56826125 L |
| Imperial gallon | 1 imp gal = 4.54609 L |
Area (base unit: square meter)
Area units are the squares of the length units, plus the hectare (10,000 m²) and the international acre (4,840 square yards).
| Unit | Exact value in the base unit |
|---|---|
| Square millimeter | 1 mm² = 0.000001 m² |
| Square centimeter | 1 cm² = 0.0001 m² |
| Hectare | 1 ha = 10000 m² |
| Square kilometer | 1 km² = 1000000 m² |
| Square inch | 1 in² = 0.00064516 m² |
| Square foot | 1 ft² = 0.09290304 m² |
| Square yard | 1 yd² = 0.83612736 m² |
| Acre | 1 ac = 4046.8564224 m² |
| Square mile | 1 mi² = 2589988.110336 m² |
Speed (base unit: meter per second)
Speeds combine a length and a time. The mile per hour is exactly 0.44704 meters per second; the knot is exactly one nautical mile per hour.
| Unit | Exact value in the base unit |
|---|---|
| Kilometer per hour | 1 km/h ≈ 0.277777777778 m/s (exactly 5/18) |
| Mile per hour | 1 mph = 0.44704 m/s |
| Knot | 1 kn ≈ 0.514444444444 m/s (exactly 463/900) |
| Foot per second | 1 ft/s = 0.3048 m/s |
Data size (base unit: byte)
Decimal prefixes (kB, MB, GB) are powers of 1,000. Binary prefixes (KiB, MiB, GiB) are powers of 1,024. One byte is 8 bits.
| Unit | Exact value in the base unit |
|---|---|
| Bit | 1 bit = 0.125 B |
| Kilobyte (1,000 bytes) | 1 kB = 1000 B |
| Megabyte | 1 MB = 1000000 B |
| Gigabyte | 1 GB = 1000000000 B |
| Terabyte | 1 TB = 1000000000000 B |
| Petabyte | 1 PB = 1000000000000000 B |
| Kibibyte (1,024 bytes) | 1 KiB = 1024 B |
| Mebibyte | 1 MiB = 1048576 B |
| Gibibyte | 1 GiB = 1073741824 B |
| Tebibyte | 1 TiB = 1099511627776 B |
| Kilobit | 1 kbit = 125 B |
| Megabit | 1 Mbit = 125000 B |
| Gigabit | 1 Gbit = 125000000 B |
For other everyday math, try the compound interest calculator or the word counter.
Frequently asked questions
How many centimeters are in an inch?
Exactly 2.54. The inch has been defined as 2.54 centimeters since the international yard and pound agreement of 1959, so the conversion is not an approximation. Multiply inches by 2.54 for centimeters, or divide centimeters by 2.54 for inches. The inches to cm page has charts for common values.
How accurate is this converter?
Every factor is an exact definition, and the arithmetic uses exact fractions rather than floating-point numbers, so results such as 12 in = 30.48 cm carry no tiny errors. Rounding happens once, at the end, to the precision you choose. The factor table on this page lists the definition used for each unit.
Why are Fahrenheit and Celsius different from other conversions?
Length, weight and volume scales all start at zero, so converting is just a multiplication. Temperature scales have different zero points, so they need an offset as well as a multiplier. This tool converts through kelvin using exact fractions, and it rejects values below absolute zero, which cannot exist.
What is the difference between MB and MiB?
MB (megabyte) uses decimal prefixes: 1 MB is 1,000,000 bytes. MiB (mebibyte) uses binary prefixes: 1 MiB is 1,048,576 bytes, which is 1,024 times 1,024. Storage makers use MB and GB, while some operating systems report sizes in binary units, which is why a new drive can look smaller than advertised.
Why are there US and imperial gallons?
They are different sizes. A US gallon is exactly 3.785411784 liters (231 cubic inches), while the imperial gallon used in the UK is exactly 4.54609 liters, about 20 percent larger. The converter lists both, with US and imperial pints, quarts and fluid ounces labeled separately, so you can choose the right one.
Can I type fractions like 5 1/2?
Yes. You can type decimals such as 3.5, thousands separators such as 1,000, simple fractions such as 3/4, and mixed numbers such as 5 1/2 inches. The converter reads them exactly, so 5 1/2 in is 13.97 cm. Scientific notation such as 1e6 also works.
What does the precision setting do?
Automatic shows exact answers in full, for example 2.54, and rounds repeating results to about ten significant digits. Choosing a number of decimals rounds the final answer half away from zero to that many places. Pick two for money-style results, or more for engineering and science work.
Is any of my input stored or sent?
No. The conversion runs in your browser, and nothing you type is sent to a server or saved. The tool only records anonymous usage such as the fact that a conversion happened, never the values.
Link to this tool
Found it useful? Copy a link for your page, newsletter or documentation.
Get new tools and guides by email
Optional. The tool above works without signing up.
More free tools
Browse all everyday calculators or the full list of free tools.
- Fraction CalculatorAdd, subtract, multiply and divide fractions, mixed numbers and decimals with exact results, simplified answers and every step shown. Runs in your browser.
- Ratio CalculatorSimplify a ratio, solve a proportion for the missing number, or split a total in a ratio such as 2:3:5, with the working shown. Free and private.
- Volume CalculatorFind the volume and surface area of a box, cylinder, sphere, cone or pyramid in cubic feet, yards, meters, liters and gallons. Mix units freely.
- Roman Numeral ConverterConvert numbers from 1 to 3,999 to Roman numerals and Roman numerals back to numbers, with the steps shown and a check for non-standard spellings.
- HEIC to JPG ConverterConvert iPhone HEIC photos to JPG in your browser with quality control. Works where your browser can open HEIC. Your photos are never uploaded.
- WebP to PNG ConverterConvert WebP images to PNG in your browser, with transparency kept. Batch up to 20 files, download one by one or as a ZIP. Nothing is uploaded.