Unit Converter
Convert the units developers trip over: decimal vs binary data sizes (GB vs GiB), bits vs bytes, Mbps vs MB/s, and durations, alongside everyday length, weight, temperature and more.
Common Conversions
Frequently Asked Questions
Does the Unit Converter work offline after the page has loaded?
Yes. All conversion factors are embedded in the page and calculations run locally. No network request is made when you convert.
What is the difference between GB and GiB, and which one does my operating system use?
GB is the SI decimal unit (1 GB = 1,000,000,000 bytes); GiB is the IEC binary unit (1 GiB = 1,073,741,824 bytes). Storage makers advertise decimal sizes, so a 1 TB drive holds about 931 GiB. Windows reports binary sizes but labels them GB, macOS reports decimal sizes, and Linux tools such as ls -h and df -h use binary units unless you pass --si or -H. This converter keeps kB/MB/GB (powers of 1,000) and KiB/MiB/GiB (powers of 1,024) separate so there is no ambiguity.
How do I convert Mbps to MB/s for download times?
Divide megabits per second by 8 to get megabytes per second: 100 Mbps is 12.5 MB/s. Real downloads are somewhat slower because of protocol overhead such as TCP/IP headers and TLS. A 1 GB file on a 100 Mbps line needs at least 80 seconds. Use the Megabit/s and Megabyte/s units in the Data category.
Which categories and units are supported?
Length (mm, cm, m, km, in, ft, yd, mi, nmi), Weight (mg, g, kg, oz, lb, st, t), Temperature (°C, °F, K), Volume (ml, l, m³, US fl oz, cup, pint, quart, gallon), Area (mm², cm², m², km², in², ft², ha, acres), Time (ms to years), Speed (m/s, km/h, mph, ft/s, knots, Mach), Pressure, Energy, Data (bits, bytes, SI and IEC sizes, transfer rates) and Angle.
How accurate are the conversions?
Factors use the exact international definitions where they exist: 1 inch = 25.4 mm, 1 lb = 0.45359237 kg, 1 US gallon = 3.785411784 L, 1 nautical mile = 1,852 m and 1 eV = 1.602176634×10⁻¹⁹ J. Results use JavaScript double-precision numbers, so very large or very small values may show rounding in the last digits. Months (30.44 days) and years (365.25 days) are averages, and Mach uses 340.29 m/s at sea level and 15 °C.
How do I convert Celsius to Fahrenheit?
Select Temperature, choose Celsius as the source and Fahrenheit as the target, then enter a value. The formula is °F = °C × 9/5 + 32, so 100 °C is 212 °F. Kelvin is °C + 273.15.
How Conversion Works
Every category has a base unit. A value is multiplied by the source unit's factor and divided by the target's factor. Temperature uses offset formulas because Celsius, Fahrenheit and Kelvin do not share a zero point. Factors use exact definitions wherever the standard defines them.
Decimal vs Binary Data Units
| Decimal (SI) | Bytes | Binary (IEC) | Bytes |
|---|---|---|---|
| kB | 1,000 | KiB | 1,024 |
| MB | 1,000,000 | MiB | 1,048,576 |
| GB | 10⁹ | GiB | 1,073,741,824 |
| TB | 10¹² | TiB | 1,099,511,627,776 |
Disk and network vendors use decimal units; RAM, filesystems, and many OS tools use binary sizes and often print them as KB/MB/GB. A "1 TB" drive is 10¹² bytes ≈ 931 GiB. Cloud providers also differ in whether "GB" in a price list means 10⁹ or 2³⁰ bytes, so check the provider's definition before estimating cost.
Network Rates
Link speeds are quoted in bits per second (Mbps, Gbps) and file sizes in bytes. Divide by 8 to compare them: 1 Gbps = 125 MB/s at most. Overhead from Ethernet, IP, TCP and TLS means real throughput is typically several percent lower. Rates convert among themselves and sizes among themselves; converting a size to a rate is not meaningful without a duration.
Time
Months and years are averages (30.4375 and 365.25 days). For calendar arithmetic, timezones or DST, use the Timezone Converter instead.
Favourite unit pairs & conversion history — coming soon for logged-in users