Unit converter

Convert 11 kinds of units with exact factors, from feet to metres to GiB.

Result

0.3048 m

Exact

1 ft = 0.3048 m

In every unit

UnitValue
Nanometre (nm)304,800,000 nm
Micrometre (µm)304,800 µm
Millimetre (mm)304.8 mm
Centimetre (cm)30.48 cm
Metre (m)0.3048 m
Kilometre (km)0.0003048 km
Inch (in)12 in
Foot (ft)1 ft
Yard (yd)0.3333333333 yd
Mile (mi)0.0001893939394 mi
Nautical mile (nmi)0.0001645788337 nmi

What this tool does

It converts a value between units of the same quantity: length, mass and weight, temperature, area, volume, speed, data size, time, energy, pressure and fuel economy. Choose the quantity, type a value, pick the unit you have and the unit you want, and the result appears as you type, together with a line such as "1 ft = 0.3048 m" and a table with the same value in every unit of that quantity. Swap the two units with one click and copy the result with its unit symbol.

How to use it

  1. Choose the quantity, for example Length or Data size. The two unit lists change to match, starting with a common pair.
  2. Type the value. Negative numbers (for temperatures), decimals written with a comma or a dot, and scientific notation such as 2.5e3 are understood.
  3. Pick From and To. Use Swap units to turn the conversion around.
  4. Choose how many significant digits to show (10 by default). The result says whether it is exact or rounded.

Why the results are exact

Every unit is stored as an exact fraction of a base unit, taken from the definitions that fix it. The inch has been exactly 0.0254 metres since 1959, so a foot is 0.3048 m and a mile is 1,609.344 m. The pound is exactly 0.45359237 kg. A US gallon is 231 cubic inches, which makes it exactly 3.785411784 litres, and an imperial gallon is exactly 4.54609 litres. Because the arithmetic is done with whole-number fractions rather than floating point, converting miles to feet gives exactly 5,280 and converting a value there and back gives back the value you typed. The only rounding happens once, at the end, to the number of significant digits you chose, and the tool tells you when that rounding changed anything.

A few units have no exact definition of their own, and the tool uses the conventional value: the British thermal unit (1,055.05585262 J, the international table value), the millimetre of mercury (133.322387415 Pa) and the inch of mercury (3,386.389 Pa). The average month and year follow the Gregorian calendar: 365.2425 days in a year and a twelfth of that in a month.

Units people mix up

  • kB versus KiB. A kilobyte (kB) is 1,000 bytes; a kibibyte (KiB) is 1,024. The gap grows with each prefix: a "500 GB" drive holds 465.66 GiB, which is the figure Windows shows and calls "GB". Nothing is missing; the units are different. More in kB vs KiB and other unit mistakes.
  • Bits versus bytes. Internet speeds are in megabits per second. 100 Mbit is 12.5 MB, so a 100 Mbit/s line downloads at most about 12.5 MB each second.
  • Temperatures versus temperature differences. 20 °C is 68 °F, but a rise of 20 °C is a rise of 36 °F. This tool converts temperatures; for a difference, multiply by 9/5 (or 5/9 the other way) without adding 32.
  • US versus imperial volumes. A US gallon is about 17% smaller than an imperial gallon, so mpg figures from the UK are higher than US figures for the same car.
  • Fuel economy runs backwards. Litres per 100 km fall as a car gets more efficient; miles per gallon rise. 5 L/100 km is 47.04 mpg (US) or 56.50 mpg (UK), and 30 mpg (US) is 7.84 L/100 km.

Frequently asked questions

How many metres are in a foot, and is it exact?

Exactly 0.3048 metres. Since 1959 the inch is defined as 0.0254 m, so a foot (12 inches) is exactly 0.3048 m and a mile (5,280 feet) is exactly 1,609.344 m.

Why does my 1 TB drive show as 931 GB?

The drive is sold in decimal terabytes (10^12 bytes), and the computer counts in binary units of 2^30 bytes while still writing GB. 10^12 bytes is 931.32 GiB. No space is lost.

How do I convert L/100 km to mpg?

Divide 235.215 by the L/100 km figure for US mpg, or 282.481 for UK mpg. Choose Fuel economy here for the exact value: 5 L/100 km is 47.04 US mpg.

Can I convert a negative number?

Yes, which matters for temperatures: −40 °C is −40 °F. The tool refuses anything colder than absolute zero (−273.15 °C), because no temperature can be lower.

Is anything uploaded?

No. The conversion runs in your browser and nothing you type is sent anywhere.