Unit converter

Eight quantities on one page: length, area, volume, mass, temperature, computer data, time and speed. Pick the source unit, type a value, and the whole category fills in below. Nothing is sent to a server.

The conversion runs in your browser, so the result does not depend on a connection, keeps no history, and is not read by anyone. Close the tab and come back later: the field is empty again, because nothing here stores what you typed.

The distinction most sites get wrong is stated plainly here: a kilobyte (kB) is 1,000 bytes and a kibibyte (KiB) is 1,024 bytes. That is why a drive sold as "1 TB" shows roughly 931 GiB in your operating system — the label uses the decimal family and the software uses the binary one. Neither calculation is wrong; the wrong thing is a table that shows only one of them.

Temperature is the odd case: it has an offset, not a ratio, so 20 °C is not twice 10 °C in Fahrenheit. The check that the arithmetic is right is the point where the two scales cross: convert -40 °F and it comes back as -40 °C.

How to use

  1. Choose the source unit in the first selector. It is grouped by the eight quantities, so there is no separate category to pick: the category comes from the unit.
  2. Choose the target unit. That selector only offers units from the same category, because turning litres into square metres has no answer.
  3. Type the value. A comma and a point both work as the decimal mark (1,5 and 1.5 give the same result), and thousands grouping is accepted in both styles (1.234,5).
  4. Read the table: it shows the value in every unit of the category, not only in the pair you asked for. Swap the two units and the number comes back.

The two prefix families, and the year nobody agrees on

Data prefixes come in two families. The decimal one follows the SI and counts in thousands: 1 kB = 1,000 B, 1 MB = 1,000,000 B, 1 TB = 1,000,000,000,000 B. The binary one (its names end in "bi") counts in 1,024s: 1 KiB = 1,024 B, 1 MiB = 1,048,576 B, 1 TiB = 1,099,511,627,776 B. The gap between 1 TB and 1 TiB is 99,511,627,776 bytes, close to 100 GB, and it widens as the size grows — that is the distance between the box label and what your operating system reports.

Time carries the other famous disagreement: how many days a year has. On this page 1 year = 365.25 days = 31,557,600 seconds, the Julian year. It is chosen because it is a round, stable number, not because a calendar year really lasts 365.25 days: the mean tropical year is about 365.2422 days, and the Gregorian calendar absorbs the difference by dropping three days every 400 years. When you convert a duration into seconds what matters is a consistent definition; if you need the civil year, use 365 or 366 days and count the calendar in the date calculator.

The imperial and US customary units used here have exact metric values, because that is how they were defined: 1 in = 2.54 cm by the 1959 international agreement, 1 ft = 0.3048 m, 1 lb = 0.45359237 kg and 1 mi = 1,609.344 m. There is no rounding error between the two sides — there is only more than one gallon and more than one ton in the world, and one of them has to be chosen.

What this page does not do: it carries the US gallon (3.785411784 litres, derived from exactly 231 cubic inches) and not the British imperial gallon (4.54609 litres). It carries the metric tonne of 1,000 kg, not the US short ton of 907.185 kg or the UK long ton of 1,016.047 kg. It carries the international acre of 4,046.8564224 m², not the US survey acre. When your calculation depends on which variant is meant, check the source column in the table below.

UnitIn base unitsWhere it comes from
1 tebibyte (TiB)1,099,511,627,776 BBinary family: 1024⁴ bytes, the value your operating system reports
1 terabyte (TB)1,000,000,000,000 BDecimal SI family: 10¹² bytes, the value printed on the box
1 gallon (gal)3.785411784 lUnited States: defined as exactly 231 cubic inches
1 mile (mi)1,609.344 mInternational statute mile: 5,280 feet of exactly 0.3048 m
1 nautical mile (nmi)1,852 mShipping and aviation: adopted by international convention
1 acre4,046.8564224 m²43,560 square feet, with the foot of exactly 0.3048 m
1 year31,557,600 sJulian year: 365.25 days of 86,400 s

Frequently asked

Why is 1 GB not always 1 GiB?
Because the letters "GB" get used for both families. Drive and memory makers follow the decimal one, where 1 GB = 1,000,000,000 bytes; operating systems and programs follow the binary one, where the matching unit is called GiB and is worth 1,073,741,824 bytes. The gap is over 7% at one gigabyte and grows with size, which is why a drive sold as 1 TB appears as 931 GiB. Both numbers describe the same amount of bytes.
How many centimetres are in an inch?
Exactly 2.54 cm, with no rounding. That is how the inch was defined in the international agreement on the yard and pound, signed in 1959 by the United States, the United Kingdom and other English-speaking countries: the yard became 0.9144 m and the inch one thirty-sixth of it. That is why converting inches to centimetres and back returns the same value.
What is the difference between a tonne and a pound?
They belong to different families. The tonne used here is metric: 1,000 kg, so one tonne weighs 2,204.62 pounds. The pound is 0.45359237 kg by definition, sixteen ounces of 28.349523125 g each. Watch out for "ton": in the United States the short ton is 907.18474 kg and in the United Kingdom the long ton is 1,016.0469088 kg, and neither one is in this converter.
How do you convert km/h to m/s?
Divide by 3.6. One kilometre per hour is 1,000 metres covered in 3,600 seconds, and 1,000 ÷ 3,600 = 1/3.6. So 36 km/h are 10 m/s and 108 km/h are 30 m/s. Going the other way, multiply by 3.6. The same ratio shows up between miles per hour and knots: 1 mph is 0.44704 m/s and 1 knot, one nautical mile per hour, is about 0.5144 m/s.
Why does temperature not follow the same maths as the other units?
Because temperature scales have a shifted origin, not just a different step size. Celsius and Kelvin scale identically but their zeroes sit 273.15 degrees apart, and Fahrenheit changes both things at once. So the conversion is (°C × 9/5) + 32 rather than a single factor. The practical consequence: 10 °C is not twice the heat of 5 °C, and the two scales cross at exactly one point, -40.

Related tools