Unit Converter

Measurement type

Use a decimal point (1.5), optional thousands commas (1,234.5), or scientific notation (1.5e3). Swap keeps your value and reverses the units.

From unit
To unit
Result
3.280839895 ft
Significant digits

Rounding affects the display only. Very small or large results use scientific notation. Calculations use standard double precision.

Feet, yards and miles use international definitions. Computer points are 1/72 inch; picas are 1/6 inch.

All equivalent units
UnitResult
Kilometer (km)0.001
Meter (m)1
Decimeter (dm)10
Centimeter (cm)100
Millimeter (mm)1,000
Micrometer (µm)1,000,000
Nanometer (nm)1,000,000,000
Ångström (Å)10,000,000,000
Picometer (pm)1E12
Femtometer (fm)1E15
Inch (in)39.37007874
Foot (ft)3.280839895
Yard (yd)1.093613298
Mile (mi)0.0006213711922
Nautical mile (nmi)0.0005399568035
Mil / thousandth of an inch (mil)39,370.07874
Computer point (pt)2,834.645669
Computer pica (pc)236.2204724

About this tool

This converter changes values between 84 metric, US customary, imperial and technical units across length, weight, temperature, area, volume and speed. Students, cooks, travelers, engineers and shoppers use it to compare measurements from different systems. A unit conversion multiplies a value by a fixed factor between two units of the same quantity, except temperature, where scales with different zero points also need an offset.

How it works

Select a measurement type, enter a value and choose the source and target units. The result and the reference table update as you type, so you can see the same value in many related units at once. Use the precision setting to show 6, 10 or 15 significant digits, depending on whether you need a quick everyday answer or a figure for technical work.

Swap reverses the units while keeping your input, which is a quick way to check a conversion in both directions. Copy saves the displayed result with its unit, and Reset returns to the starting example of 1 meter in feet. Unit names are labeled explicitly, such as gal (US) and gal (imp), so pick the one that matches your source.

Example

One mile is 1.609344 kilometers. One pound is 0.45359237 kilograms. Water freezes at 0 °C, 32 °F or 273.15 K. One US liquid gallon is 3.785411784 liters; one imperial gallon is 4.54609 liters.

A few everyday cases: a 5 km run is about 3.10686 miles, a height of 180 cm is about 5.90551 feet, and an acre is 4,046.8564224 square meters. For temperature, a body temperature of 37 °C converts to 98.6 °F, and −40 is the one reading that is the same in Celsius and Fahrenheit.

Assumptions and limits

The tool converts only within one measurement category. It does not convert volume to mass, which requires a substance's density, and it does not handle currency, time, energy, pressure or data units. Results use standard double-precision arithmetic and are rounded to the displayed significant digits. Temperature conversions apply to readings, not to temperature differences.

Frequently asked questions

Why are there different gallons, ounces and tons?

US and imperial volume units have different definitions. Fluid ounces measure volume; avoirdupois and troy ounces measure mass. Metric tonnes, US short tons and imperial long tons are also different. Choose the explicitly labeled unit. Converting volume to mass requires a material’s density and is not part of this tool.

How accurate are the results?

Conversions use defining constants where available, with standard double-precision arithmetic. Select 6, 10 or 15 significant digits for display. Results are rounded, not arbitrary-precision measurements. Temperature conversions include scale offsets and apply to readings, not temperature differences.

How do I convert Celsius to Fahrenheit?

Multiply the Celsius value by 9/5 and add 32: F=C×9/5+32F = C \times 9/5 + 32. For example, 20 °C is 68 °F and 100 °C is 212 °F. To go back, subtract 32 and multiply by 5/9.

How many centimeters are in an inch?

Exactly 2.54 centimeters, by international definition since 1959. One foot is therefore exactly 30.48 centimeters, and one yard is 91.44 centimeters. Because these values are exact, conversions between inches and metric units do not lose accuracy beyond normal display rounding.

How do I convert km/h to mph?

Divide the speed in kilometers per hour by 1.609344, the number of kilometers in a mile. So 100 km/h is about 62.1371 mph, and 50 km/h is about 31.0686 mph. Choose Speed in the converter to get the result directly, along with knots, meters per second and feet per second.

Link with your values

Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.

ParameterValueIf omitted
categoryMeasurement typeone of: length, weight, temperature, area, volume, speeddefault length
fromFrom unitone of: km, m, dm, cm, mm, um, nm, angstrom, pm, fm, in, ft, yd, mi, nmi, mil, point, pica, kg, g, mg, ug, ng, tonne, lb, oz, st, short_ton, long_ton, carat, grain, troy_oz, slug, c, f, k, rankine, m2, km2, cm2, mm2, um2, ha, are, ft2, in2, yd2, mi2, acre, barn, l, ml, ul, m3, cm3, mm3, in3, ft3, yd3, gal, gal_uk, qt, qt_uk, pt, pt_uk, fl_oz, fl_oz_uk, cup, cup_metric, tbsp, tbsp_metric, tsp, tsp_metric, barrel, m_per_s, km_per_h, mph, kn, ft_per_s, ft_per_min, in_per_s, cm_per_s, km_per_s, speed_of_lightdefault m
toTo unitone of: km, m, dm, cm, mm, um, nm, angstrom, pm, fm, in, ft, yd, mi, nmi, mil, point, pica, kg, g, mg, ug, ng, tonne, lb, oz, st, short_ton, long_ton, carat, grain, troy_oz, slug, c, f, k, rankine, m2, km2, cm2, mm2, um2, ha, are, ft2, in2, yd2, mi2, acre, barn, l, ml, ul, m3, cm3, mm3, in3, ft3, yd3, gal, gal_uk, qt, qt_uk, pt, pt_uk, fl_oz, fl_oz_uk, cup, cup_metric, tbsp, tbsp_metric, tsp, tsp_metric, barrel, m_per_s, km_per_h, mph, kn, ft_per_s, ft_per_min, in_per_s, cm_per_s, km_per_s, speed_of_lightdefault ft
valueValuenumberrequired
significant_digitsSignificant digitsone of: 6, 10, 15default 10

Examples

  • ?value=12&from=ft&to=m
  • ?value=350&from=f&to=c
  • ?category=volume&value=2.5&from=gal_uk&to=l&significant_digits=6

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="unit-converter"]