A unit converter turns a measurement in one unit into the same amount in another: gigabytes into mebibytes, meters into feet, Celsius into Fahrenheit. This one covers 11 categories and 116 units, converts in both directions as you type, and uses exact arithmetic, so results like 1 GB = 953.67431640625 MiB come out exactly instead of rounded. Below is how unit conversion works, why storage sizes have two sets of units, and which conversions are exact by definition.
How unit conversion works
Every category has a base unit, and every other unit is a fixed multiple of it. A kilometer is 1,000 meters and a foot is 0.3048 meters, so converting means multiplying into the base unit and dividing back out. To turn 1 km into feet, multiply by 1,000 to get 1,000 meters, then divide by 0.3048 to get about 3,280.84 feet. The converter does exactly this for every pair of units, and shows the conversion factor both ways under the result. Temperature is the one exception, because its scales also start from different zero points.
Metric prefixes
Metric units share the same prefixes, each a power of ten:
| Prefix | Symbol | Factor | As a number |
|---|---|---|---|
| nano | n | 10⁻⁹ | 0.000000001 |
| micro | µ | 10⁻⁶ | 0.000001 |
| milli | m | 10⁻³ | 0.001 |
| centi | c | 10⁻² | 0.01 |
| kilo | k | 10³ | 1,000 |
| mega | M | 10⁶ | 1,000,000 |
| giga | G | 10⁹ | 1,000,000,000 |
| tera | T | 10¹² | 1,000,000,000,000 |
So a milligram is a thousandth of a gram, a kilometer is a thousand meters, and a gigabyte is a billion bytes.
Bits, bytes and data rates
A byte is 8 bits. Storage is measured in bytes, written with a capital B, while network speeds are measured in bits per second, written with a lowercase b. That's why a 100 Mbit/s connection downloads at most 12.5 megabytes per second, and a 1 Gbit/s link moves 125 MB/s. Use the Data rate category to compare a connection speed with a download speed, or the binary calculator to work with the bits themselves.
KB versus KiB
Computers address memory in powers of two, so 1,024 bytes (2¹⁰) became a "kilobyte" long before anyone standardized it. To end the confusion, the IEC introduced binary prefixes in 1998: kibi (KiB) for 1,024, mebi (MiB) for 1,048,576 and gibi (GiB) for 1,073,741,824, leaving kilo, mega and giga with their usual decimal meanings. Drive makers use decimal units, while Windows reports sizes in binary units but still labels them KB, MB and GB. A 1 TB drive therefore shows up as about 931 GB. macOS has used decimal units since 2009, so the same drive appears there as 1 TB. The gap is 2.4% at the kilo level and grows to 10% at tera, as the table above shows. The binary to decimal converter explains the powers of two behind these numbers.
Imperial and US units are defined in metric
Since the international yard and pound agreement of 1959, imperial and US units have exact metric definitions. The yard is exactly 0.9144 meters and the pound exactly 0.45359237 kilograms, which makes the inch exactly 25.4 mm, the foot 0.3048 m and the mile 1,609.344 m. That's why the converter can give exact answers for these units. Volumes are trickier because the US and the UK kept different gallons: a US gallon is 231 cubic inches, or 3.785411784 liters, while an imperial gallon is 4.54609 liters, about 20% more. Their fluid ounces differ as well, at about 29.57 mL in the US and 28.41 mL in the UK.
Temperature needs a formula
Temperature scales don't share a zero point, so you can't just multiply. Fahrenheit is °F = °C × 9/5 + 32, and kelvin is K = °C + 273.15. Water boils at 100 °C, or 212 °F, normal body temperature is about 37 °C, or 98.6 °F, and the scales cross at −40, where Celsius and Fahrenheit read the same. Absolute zero, the coldest possible temperature, is 0 K, which is −273.15 °C or −459.67 °F. For the same reason, 40 °C isn't twice as hot as 20 °C. The converter shows the formula for whichever two scales you choose.
Exact results and rounding
Most calculators store numbers in binary floating point, which can't represent values like 0.1 exactly and produces results such as 0.30000000000000004. This converter stores every unit as an exact fraction instead. When a result ends, like 1 GB = 953.67431640625 MiB, you see every digit. When it never ends, like 1 meter in feet, which is 1 ÷ 0.3048, it's rounded to 12 significant digits and marked with ≈.
Ways to use the converter
- Type in either box. The converter works backwards just as well as forwards.
- Values like
1,000,000,1.5e9and negative numbers are all accepted. - The swap button flips the two units and keeps your value, so 1 GB → MiB becomes 1 MiB → GB.
- For number bases rather than units, use the decimal to binary converter or the hex converter.
If a number looks off, check two things: bits or bytes, and decimal or binary units. Those two mix-ups explain most surprising storage and download figures.