.conv-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; margin-top: 4px; } .conv-grid label { margin-top: 12px; } .swapbtn { margin: 0 0 2px; padding: 10px 12px; width: auto; font-size: 1rem; background: #eef2f7; color: #0f172a; border: 1.5px solid #ccc; border-radius: 8px; } .conv-out { margin-top: 18px; border-top: 2px solid #e1e7ee; padding-top: 12px; text-align: center; font-size: 1.05rem; color: #333; } .conv-main { font-size: 1.45rem; font-weight: 700; color: #0f172a; }

Unit Converter

5 km× 10005000 m1 km = 1,000 m · 1 kg = 1,000 g · 0 °C = 32 °F

What this converter does

The Unit Converter switches measurements between more than 40 units across seven categories: length, weight, temperature, volume, area, speed and data size. It covers both metric and imperial systems — metres to feet, kilograms to pounds, litres to gallons, Celsius to Fahrenheit and everything in between.

Every conversion happens instantly as you type, with a swap button to reverse the direction in one click. Nothing is sent to a server.

How to use the Unit Converter

  1. Pick a category — length, weight, temperature, volume, area, speed or data size.
  2. Type the value you want to convert; results update as you type.
  3. Choose the starting unit in the "From" list.
  4. Choose the target unit in the "To" list.
  5. Press ⇆ to swap the two units and see the inverse conversion.

How the conversion works

result = value × (factor of the from-unit ÷ factor of the to-unit) (each factor is the unit's size expressed in its category's base unit: metre, kilogram, litre, square metre, metre/second or byte)

Temperature is the exception, because its scales have different zero points. The converter shifts to Celsius first, then to the target scale:

°F = °C × 9/5 + 32 °C = (°F − 32) × 5/9 K = °C + 273.15

Examples

Sites for learning about units and measurement

These references go deeper into the international system of units (external websites that open in a new tab):

Frequently asked questions

Are the definitions exact or approximate?

The factors are exact by international definition — an inch is exactly 2.54 cm, a pound is exactly 0.45359237 kg, and a mile is exactly 1609.344 m. Only the displayed digits are rounded.

Why do data units use 1024?

This converter uses the binary convention common in computing: 1 kB = 1024 bytes, 1 MB = 1024 kB, and so on. Drive manufacturers often use the decimal convention (1000), which is why a "1 TB" drive shows less capacity in an operating system.

What is a nautical mile?

A unit used in aviation and marine navigation, defined as exactly 1852 m. It corresponds to one minute of latitude.

Why does temperature need special handling?

Unlike the other categories, temperature scales do not start at the same zero point, so converting requires an offset as well as a scale factor.

Can I convert a value with decimals?

Yes — any decimal value works, and results keep up to eight decimal places before rounding.

Is my data saved?

No. All conversion runs in your browser and nothing is sent or stored.

Related calculators

Other free calculators commonly used with this tool: Scientific Calculator, Currency Converter, and Arithmetic Calculator.