DevTools Pro · All tools · About

Unit Converter

About the Unit Converter

This unit converter changes values between metric and imperial units of length, weight, temperature, volume, area, speed, time and digital storage. It uses the exact defined conversion factors (for example 1 inch = 2.54 cm) and updates the result as you type.

Exact conversion factors

Many imperial units are defined in terms of metric ones, so their factors are exact rather than measured. Since the 1959 international agreement, 1 in = 2.54 cm, 1 ft = 0.3048 m, 1 mi = 1609.344 m and 1 lb = 0.45359237 kg. A nautical mile is exactly 1852 m, and a knot is one nautical mile per hour.

The converter turns your value into a base unit (meters, kilograms, liters, square meters, meters per second, seconds or bytes) and then into the target unit. Results are rounded to 12 significant digits to hide floating-point noise, so 0.1 m converts to 10 cm instead of 10.000000000000002.

KB vs KiB: why your 500 GB drive shows 465 GB

Storage makers use decimal prefixes: a kilobyte (kB) is 1,000 bytes and a gigabyte (GB) is 1,000,000,000 bytes. Operating systems like Windows often count in binary units, where a kibibyte (KiB) is 1,024 bytes and a gibibyte (GiB) is 1,073,741,824 bytes, but still label them "GB".

So a 500 GB drive holds 465.66 GiB. The Digital Storage category lists both families separately (kB/MB/GB/TB and KiB/MiB/GiB/TiB), plus bits for network speeds, so you can see the exact difference.

US vs UK gallons and other look-alike units

Some units share a name but not a size. A US gallon is 3.785411784 L while a UK (imperial) gallon is 4.54609 L, about 20% larger. A US short ton is 907.18474 kg, a UK long ton is 1016.0469088 kg and a metric tonne is 1000 kg.

The US cup in this tool is the customary cup of 236.588 mL (half a US pint). Nutrition labels in the US round it to 240 mL, so expect small differences against recipe sites.

How temperature conversion works

Temperature scales have different zero points, so they need a formula rather than a single factor: °F = °C × 9/5 + 32 and K = °C + 273.15. That is why 0 °C is 32 °F, 100 °C is 212 °F, and -40 is the one value that is the same in Celsius and Fahrenheit.

How to Use the Unit Converter

  1. Choose a Measurement Category: Length, Weight / Mass, Temperature, Volume, Area, Speed, Time or Digital Storage.
  2. Type the amount into the From field. Negative numbers and decimals are allowed.
  3. Pick the From unit and the To unit from the dropdowns under each field.
  4. Read the converted value in the To panel; it updates on every keystroke.
  5. Press the swap button to reverse the direction, click the copy icon to copy the result, or use Reset Converter to clear the value.

Need step-by-step working? Try Math Solver →

Frequently Asked Questions

How accurate are the conversions?
The factors are exact definitions, and results are shown to 12 significant digits. That is far beyond the precision of any real-world measurement you would enter.
Is 1 GB 1000 MB or 1024 MB?
In SI units 1 GB is 1000 MB. The binary unit with 1024 is the gibibyte: 1 GiB = 1024 MiB. Many operating systems show binary values with the GB label, which causes the confusion.
How long is a year in the Time category?
Exactly 365 days (31,536,000 seconds). It does not account for leap years, so use days if you need calendar-accurate spans.
Why can I not convert kilograms to liters?
Mass and volume are different quantities; converting between them needs the density of the substance. Each category only converts units that measure the same thing.
Does the converter send my numbers anywhere?
No. Every conversion is a simple calculation in your browser, so it works offline once the page has loaded and nothing is uploaded.

Related tools