File Size Converter
Convert a size exactly between bytes, decimal units (kB, MB, GB, TB, where k = 1,000) and binary units (KiB, MiB, GiB, TiB, where Ki = 1,024), plus bits, and see what Windows and macOS will show for it.
How to Use
- Type a size, such as 1, 4.7 or 2,000 (scientific notation like 4e9 works too).
- Pick its unit: decimal units (kB, MB, GB, TB), binary units (KiB, MiB, GiB, TiB) or bits (kbit, Mbit, Gbit) for network speeds.
- Read the exact number of bytes and what Windows and macOS show for the same size.
- Check the table for the value in every decimal and binary unit; values that do not come out even are marked ≈.
- Use a preset for common cases: a 1 TB drive, 16 GiB of RAM, a 4.7 GB DVD, 1 Gbit, or the FAT32 file-size limit.
Worked Example
A 1 TB drive. 1 TB = 1,0004 = 1,000,000,000,000 bytes. Windows divides by 1,0243 = 1,073,741,824 and gets 931.32, which it labels “GB”; in tebibytes it is 1,000,000,000,000 ÷ 1,099,511,627,776 = 0.909 TiB. macOS divides by 1,0003 and shows 1,000 GB, or 1 TB.
Going the other way: 16 GiB of RAM. 16 × 1,073,741,824 = 17,179,869,184 bytes, which is 17.18 GB in decimal units. A 4.7 GB DVD is 4,700,000,000 bytes, which Windows shows as 4,700,000,000 ÷ 1,073,741,824 = 4.38 GB. And 1 Gbit is 1,000,000,000 ÷ 8 = 125,000,000 bytes, or 119.21 MiB.
The common mistake: thinking 69 GB went missing. 1,000 − 931.32 = 68.68 looks like lost space, but both numbers describe the same 1,000,000,000,000 bytes: only the size of the unit changed, and each GiB is 7.37% bigger than a GB. Space really used by a file system or a recovery partition comes on top, and is easy to tell apart once you compare bytes with bytes.
Show Work
Formulas
Background: kilo, kibi and Two Kinds of Gigabyte
Computer memory comes in powers of two, and 210 = 1,024 is close enough to 1,000 that early computing borrowed the metric prefix and called it a kilobyte. The error is 2.4% at the kilo level but grows with each step, to 7.37% at giga and 9.95% at tera, and drive makers, network engineers and memory makers did not agree on which meaning to use. In December 1998 the International Electrotechnical Commission approved separate binary prefixes — kibi (Ki, 210), mebi (Mi, 220), gibi (Gi, 230), tebi, pebi and exbi — published in January 1999 as Amendment 2 to IEC 60027-2. As NIST notes, they are not part of the SI, where kilo always means exactly 1,000.
Operating systems still differ. Apple’s documentation says iOS 10 and earlier and OS X Leopard and earlier reported storage in binary units, and later versions count in decimal like the drive makers. Windows File Explorer still divides by 1,024 and writes KB, MB and GB; Microsoft’s Raymond Chen explained in 2009 that Explorer follows the usage most people know rather than the unfamiliar “KiB”.
About This Converter
This converter turns a size in any decimal, binary or bit unit into every other one, exactly: the typed number is kept as a fraction, so whole numbers of bytes stay whole and anything that has to be rounded is marked ≈. It also shows what Windows and macOS display for the same size and why they differ, which answers the most common question about new drives.
It runs in your browser and sends nothing anywhere. It suits anyone buying storage, checking upload or email limits, working out download times, or writing sizes into code and configuration files.
Related tools: Bandwidth Calculator, Unit Converter and Image Compressor.
Frequently Asked Questions
Why does my 1 TB drive show as 931 GB in Windows?
Drive makers count in decimal: 1 TB is 1,000,000,000,000 bytes, as Apple’s and every maker’s packaging says. Windows divides by 1,024 three times and still writes “GB”, so it shows 1,000,000,000,000 ÷ 1,073,741,824 = 931.32, about 931 GB. Nothing is missing; it is the same number of bytes counted in a bigger unit. macOS has counted in decimal since OS X Snow Leopard and shows 1 TB.
What is the difference between KB and KiB?
KiB (kibibyte) is exactly 1,024 bytes; kB (kilobyte) in the SI sense is exactly 1,000 bytes. The binary prefixes kibi, mebi, gibi and so on were approved by the IEC in December 1998 to end the confusion, because “KB” had been used for both. The gap grows with each step: a MiB is 4.86% more than a MB, a GiB 7.37% more than a GB and a TiB 9.95% more than a TB.
Which units do Windows and macOS use?
Windows File Explorer divides by 1,024 but labels the result KB, MB and GB, the long-standing convention Microsoft keeps on purpose. macOS since version 10.6 (Snow Leopard) and iOS since version 11 divide by 1,000, matching the labels on drives. So the same 4.7 GB disc shows as about 4.38 GB in Windows and 4.7 GB on a Mac.
How do I convert megabits to megabytes?
Divide by 8, because a byte is 8 bits. Internet speeds are quoted in bits per second, so a 100 Mbit/s connection moves at most 12.5 MB of data per second, and 1 Gbit is 125,000,000 bytes, which Windows shows as 119.21 MB. Choose a bit unit in the list and the tool does the division.
Is RAM measured in GB or GiB?
RAM is built in powers of two, so a “16 GB” memory module holds 16 GiB: 16 × 1,073,741,824 = 17,179,869,184 bytes, which is 17.18 GB in decimal units. Memory is one place where “GB” has nearly always meant the binary size, which is why Windows shows 16 GB for it.
How do I use the File Size Converter?
Just type or paste your value. The answer shows up right away — there is no button to press. Change anything and it updates by itself.
Do I need to install or sign up for anything?
Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.
Is my information private?
Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.
Common Use Cases
A new drive looks smaller
A 2 TB drive is 2,000,000,000,000 bytes; Windows shows 1,862.65 GB (1.82 TB), macOS 2 TB.
Upload and email limits
A 25 MB limit is 25,000,000 bytes, which is only 23.84 MiB, the figure Windows would show as “MB”.
Download times
A 1.5 GB game on a 100 Mbit/s line: 12,000 Mbit ÷ 100 = 120 seconds at full speed.
Programming and config files
A cache set to 512 MiB is 536,870,912 bytes, not 512,000,000.
Last updated: