Skip to content
QueenNexa

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

  1. Choose a type of measurement: length, weight, temperature, volume, area, speed or data size.
  2. Type a value and pick the units to convert from and to. Use the swap button to reverse them.
  3. 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:

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).

UnitExact value in the base unit
Millimeter1 mm = 0.001 m
Centimeter1 cm = 0.01 m
Kilometer1 km = 1000 m
Inch1 in = 0.0254 m
Foot1 ft = 0.3048 m
Yard1 yd = 0.9144 m
Mile1 mi = 1609.344 m
Nautical mile1 nmi = 1852 m
Micrometer1 µ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.

UnitExact value in the base unit
Milligram1 mg = 0.000001 kg
Gram1 g = 0.001 kg
Metric ton (tonne)1 t = 1000 kg
Ounce1 oz = 0.028349523125 kg
Pound1 lb = 0.45359237 kg
Stone1 st = 6.35029318 kg
US short ton1 ton = 907.18474 kg
UK long ton1 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.

UnitExact value in the base unit
Milliliter1 mL = 0.001 L
Cubic meter1 m³ = 1000 L
US teaspoon1 tsp = 0.00492892159375 L
US tablespoon1 tbsp = 0.01478676478125 L
US fluid ounce1 fl oz = 0.0295735295625 L
US cup1 cup = 0.2365882365 L
US pint1 pt = 0.473176473 L
US quart1 qt = 0.946352946 L
US gallon1 gal = 3.785411784 L
Imperial fluid ounce1 imp fl oz = 0.0284130625 L
Imperial pint1 imp pt = 0.56826125 L
Imperial gallon1 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).

UnitExact value in the base unit
Square millimeter1 mm² = 0.000001 m²
Square centimeter1 cm² = 0.0001 m²
Hectare1 ha = 10000 m²
Square kilometer1 km² = 1000000 m²
Square inch1 in² = 0.00064516 m²
Square foot1 ft² = 0.09290304 m²
Square yard1 yd² = 0.83612736 m²
Acre1 ac = 4046.8564224 m²
Square mile1 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.

UnitExact value in the base unit
Kilometer per hour1 km/h ≈ 0.277777777778 m/s (exactly 5/18)
Mile per hour1 mph = 0.44704 m/s
Knot1 kn ≈ 0.514444444444 m/s (exactly 463/900)
Foot per second1 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.

UnitExact value in the base unit
Bit1 bit = 0.125 B
Kilobyte (1,000 bytes)1 kB = 1000 B
Megabyte1 MB = 1000000 B
Gigabyte1 GB = 1000000000 B
Terabyte1 TB = 1000000000000 B
Petabyte1 PB = 1000000000000000 B
Kibibyte (1,024 bytes)1 KiB = 1024 B
Mebibyte1 MiB = 1048576 B
Gibibyte1 GiB = 1073741824 B
Tebibyte1 TiB = 1099511627776 B
Kilobit1 kbit = 125 B
Megabit1 Mbit = 125000 B
Gigabit1 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.

One email every Tuesday. Free, and you can unsubscribe in one click.

More free tools

Browse all everyday calculators or the full list of free tools.