Unit converter

Convert length, weight, temperature, area, volume, speed, data size, time and pressure, with every unit of the category listed at once, using exact definitions.

  • Runs locally
  • Free

Use the tool

Your files are processed in your browser and are not uploaded to a server.

About this tool

A unit converter that shows a value in every unit of its category at once: length, mass (weight), temperature, area, volume, speed, data size, time and pressure, plus the traditional Chinese market units (jin, liang, chi, cun, zhang, li, mu). Factors use the exact SI and US NIST definitions — 1 inch is exactly 2.54 cm and 1 pound exactly 0.45359237 kg — and are computed as fractions, so results never show floating-point noise.

Typical uses

  • Convert cm to inches or kg to pounds for shopping and travel
  • Read US recipes in cups, fluid ounces and °F
  • See why a 1 TB drive shows about 931 GB on a computer

How to use

  1. Choose a category (length, weight, temperature and so on), type a value and its unit, and pick a target unit if you like.

  2. The result and a table of every unit update as you type; choose the significant digits and copy the result or any row.

Good to know

Factors follow the exact SI, US NIST and Chinese market-unit definitions and are calculated as fractions, so 1 in = 2.54 cm has no floating-point noise; “≈” marks values rounded to the chosen significant digits. kB, MB and GB step by 1000; KiB, MiB and GiB by 1024. Runs in your browser.

Common conversions at a glance

This table is generated by the converter’s own exact arithmetic at 10 significant digits; values without “≈” are exact. Each pair is shown both ways: an inch is exactly 2.54 cm, so a centimeter is about 0.3937 in.

ConversionResultReverseResult
1 cm → in≈ 0.39370078741 in → cm2.54
1 m → ft≈ 3.2808398951 ft → m0.3048
1 km → mi≈ 0.62137119221 mi → km1.609344
1 kg → lb≈ 2.2046226221 lb → kg0.45359237
1 g → oz≈ 0.035273961951 oz → g≈ 28.34952313
1 斤 → lb≈ 1.1023113111 lb → 斤0.90718474
1 L → gal (US)≈ 0.26417205241 gal (US) → L3.785411784
1 mL → fl oz (US)≈ 0.03381402271 fl oz (US) → mL≈ 29.57352956
1 m² → ft²≈ 10.763910421 ft² → m²0.09290304
1 ha → ac≈ 2.4710538151 ac → ha≈ 0.4046856422
1 km/h → mph≈ 0.62137119221 mph → km/h1.609344
1 bar → psi≈ 14.503773771 psi → bar≈ 0.06894757293

Exact definitions of US and imperial units

Inches, feet, yards and pounds are defined in terms of the meter and kilogram. Under the 1959 international yard and pound agreement, 1 yard is exactly 0.9144 m and 1 pound exactly 0.45359237 kg, so 1 inch = 25.4 mm and 1 mile = 1.609344 km are exact. The US gallon is defined as 231 cubic inches and the imperial gallon as 4.54609 liters, so they are different units. NIST SP 811 lists some of these factors rounded (it prints 4.535 924 E−01 kg for the pound); the converter uses the full definitions as fractions.

UnitDefinitionValue
inch (in)1/36 yard2.54 cm
foot (ft)12 inches30.48 cm
yard (yd)0.9144 m (international yard, 1959)0.9144 m
mile (mi)1760 yards1.609344 km
nautical mile (nmi)1852 m1.852 km
pound (lb)0.45359237 kg (international pound, 1959)0.45359237 kg
ounce (oz, avoirdupois)1/16 pound28.349523125 g
US gallon231 cubic inches3.785411784 L
imperial gallon4.54609 L4.54609 L
acre (ac)4840 square yards4,046.8564224 m²
standard atmosphere (atm)101,325 Pa101,325 Pa
conventional mmHgmercury at 13.5951 g/cm³ under 9.80665 m/s²133.322387415 Pa
psi1 pound-force per square inch≈ 6,894.757293 Pa
US and imperial volumes differ

A US pint is 473.176473 mL and an imperial pint 568.26125 mL; a US fluid ounce is 29.5735295625 mL and an imperial one 28.4130625 mL. A US recipe cup is 236.5882365 mL (US nutrition labels round it to 240 mL), while the metric cup used in Australia and elsewhere is 250 mL, so check where a recipe comes from.

Chinese market units: jin, liang, chi, cun, mu

China’s market system (市制) was fixed by a 1959 State Council order. The 1984 order adopting legal (SI-based) units allowed market units in everyday life until 1990, after which official use moved to legal units, yet people still buy food by the jin and measure farmland in mu. The ratios to metric are simple: 1 jin = 0.5 kg, 1 chi = 1/3 m, 1 mu = 60 square zhang. So 3 chi is exactly 1 m and 1 hectare exactly 15 mu, while the chi and mu themselves are repeating decimals and carry “≈”.

UnitDefinitionValue
li 市里150 丈500 m
zhang 市丈10 尺≈ 3.333333333 m
chi 市尺1/3 m≈ 33.33333333 cm · ≈ 13.1234 in
cun 市寸1/10 尺≈ 3.333333333 cm
jin 市斤1/2 kg500 g · ≈ 1.10231 lb
liang 市两1/10 斤50 g
mu 市亩60 平方丈≈ 666.6666667 m² · ≈ 0.164737 ac
  • 1 kg = 2 jin and 1 jin = 10 liang = 500 g. Before 1959 a jin had 16 liang.
  • 1 acre ≈ 6.07 mu, and 1 mu ≈ 7,175.94 sq ft.
  • The catty used in Hong Kong and Macau is 1⅓ lb ≈ 604.79 g and Taiwan’s catty is 600 g; neither is the mainland jin used here.

Why a 1 TB drive shows about 931 GB

Drive and memory-card makers use decimal prefixes: 1 GB = 10⁹ bytes and 1 TB = 10¹² bytes. Windows File Explorer divides by powers of 1024 but still writes “GB”; those are really the binary units the IEC defined in 1998, where 1 GiB = 2³⁰ = 1,073,741,824 bytes. Dividing the same bytes by a bigger unit gives a smaller number, so 1 TB appears as about 931.3 GB with nothing missing. macOS has used decimal units since version 10.6, so a Mac shows 1 TB. Compare them in the “Data size” category.

AdvertisedBytesShown by Windows (binary)
128 GB128,000,000,000119.2 GiB
256 GB256,000,000,000238.4 GiB
512 GB512,000,000,000476.8 GiB
1 TB1,000,000,000,000931.3 GiB
2 TB2,000,000,000,0001.819 TiB
4 TB4,000,000,000,0003.638 TiB
Binary unitDecimal unitBinary is larger by
1 KiB = 1,024 B1 kB = 1,000 B2.4%
1 MiB = 1,048,576 B1 MB = 1,000,000 B4.9%
1 GiB = 1,073,741,824 B1 GB = 1,000,000,000 B7.4%
1 TiB = 1,099,511,627,776 B1 TB = 1,000,000,000,000 B10%
Network speeds count bits

A 100 Mbit/s connection moves 100 million bits per second. With 8 bits per byte that is at most 12.5 MB/s, and 1 Gbit/s is 125 MB/s before protocol overhead.

Temperature formulas and reference points

Temperatures cannot be converted with a factor alone because the scales start at different zeros: °F = °C × 9/5 + 32, °C = (°F − 32) × 5/9, K = °C + 273.15 and °R = °F + 459.67. Kelvin and Rankine start at absolute zero and have no negative values; the converter warns if you enter something colder.

Reference point°C°FK
Absolute zero−273.15−459.670
Celsius equals Fahrenheit−40−40233.15
Water freezes032273.15
Room temperature2068293.15
Normal body temperature (common reference)3798.6310.15
Fever threshold (100.4 °F)38100.4311.15
Water boils (1 atm)100212373.15
Typical oven setting180356453.15

−40 is the only temperature that reads the same in °C and °F. A US recipe’s 350 °F is about 176.7 °C. Strictly, on the current ITS-90 scale water boils at about 99.97 °C at one standard atmosphere; “100 °C” is a legacy of the old definition. Since 2019 the kelvin has been defined through the Boltzmann constant.

Exact arithmetic, significant digits and input

In ordinary floating-point arithmetic 0.1 + 0.2 = 0.30000000000000004, which is why many online converters show long tails of noise. This tool stores every factor as an exact fraction (1 chi = 1/3 m, 1 US gallon = 3.785411784 L) and computes with whole-number fractions, rounding only once for display, to the number chosen under “Significant digits”. Results that end within those digits are shown as they are; others get “≈”. Here is 1 kg in pounds at each setting:

Significant digits1 kg = ? lb
42.205
62.20462
102.204622622
152.20462262184878
  • Use “.” for decimals. Thousands may be separated with commas or spaces (1,234.5 or 1 234.5); exponents such as 1.5e-3 and full-width digits also work.
  • A comma that cannot be a thousands separator, as in “1,5”, is read as a decimal comma, and the line under the input says which number was used.
  • Results below 10⁻⁶ or at least 10¹⁵ use scientific notation, for example 1 bit ≈ 1.136868377 × 10⁻¹³ TiB.
  • “Copy result” copies the whole equation; each table row’s Copy button copies the number and unit symbol without thousands separators. The “Swap the two units” button swaps the units and keeps the number you typed.
  • Months and years have no fixed length, so the time category stops at weeks; use the date calculator for calendar months and years.

Sources

Frequently asked questions

How many centimeters are in an inch?

Exactly 2.54. The international inch has been defined as 25.4 mm since 1959, so 12 in = 30.48 cm and 1 mile = 1.609344 km, all exact.

Why do some results start with “≈”?

Values such as 1 kg in pounds (2.20462262…) do not end, so they are rounded to the significant digits you choose and marked “≈”. Results without it are exact.

What is the difference between GB and GiB?

GB is decimal (10⁹ bytes); GiB is binary (2³⁰ = 1,073,741,824 bytes). Drive makers use GB, while Windows shows GiB but labels it “GB”.