Data Size Converter
Convert data size units quickly, from bits and bytes to KB, MB, GB, TB, plus KiB, MiB, GiB, and more. Perfect for files, backups, and storage math.
Enter the Details
Result will appear here...
What this converter does
From a photo measured in megabytes to a drive measured in terabytes, data has its own ladder of units, and famously two rival versions of it. This converter handles both: the decimal units that storage makers print on the box, and the binary units your computer counts in.
How to use it
- Type your data value into the value box.
- Set From to the unit you have, and To to the unit you want.
- Press Calculate.
The result reads back in plain words, like "1 GB is equal to 1000 MB." Use Swap to flip the two units, and Reset to clear.
How it works
Every unit is built up from the bit. A byte is 8 bits, and each larger unit has its own factor, so the tool converts to bits and then out to the unit you want. The one thing to watch is which family you pick, decimal or binary, which the next section explains.
Common data size conversions
The ones that come up most:
| Conversion | Value |
|---|---|
| 1 byte | 8 bits |
| 1 kilobyte (KB) | 1,000 bytes (decimal) |
| 1 kibibyte (KiB) | 1,024 bytes (binary) |
| 1 megabyte (MB) | 1,000,000 bytes |
| 1 mebibyte (MiB) | 1,048,576 bytes |
| 1 gibibyte (GiB) | 1,073,741,824 bytes (about 7.4% more than a GB) |
Decimal or binary: why a 1 TB drive shows 931 GB
This is the big one, and it explains a mystery almost every computer owner has hit. There are two ways to count data, and they disagree.
The decimal way uses powers of 1,000, like the rest of the metric system: a kilobyte is 1,000 bytes, a megabyte is a million, a gigabyte is a billion. Storage and network makers use this.
The binary way uses powers of 1,024, because computers count in base 2 and 2 to the tenth power happens to be 1,024, close to 1,000. To keep the two apart, the binary units have their own names: a kibibyte (KiB) is 1,024 bytes, a mebibyte (MiB) is 1,024 kibibytes, a gibibyte (GiB) is 1,024 mebibytes. This tool gives you both families side by side.
So why does a new 1 TB drive show up as only 931 GB in Windows? Because the maker sells it as a decimal terabyte, a clean trillion bytes, while Windows measures in binary but still writes the label "GB". A trillion bytes divided by 1,073,741,824 (one binary gigabyte) comes to about 931. The drive is not faulty, the two sides are simply counting differently. The gap grows with size: it is under 2.4% at the kilobyte level but about 10% by the terabyte. macOS sidesteps the whole thing by reporting in decimal, which is why the same drive reads as 1 TB on a Mac.
Data size or data rate: which one you need
Data size and data rate sound alike but answer different questions. Size is how much data there is: the weight of a file, the capacity of a drive, measured in bytes and their multiples. Rate is how fast data moves: a download speed or a connection's bandwidth, measured per second.
A 4 GB film is a size. Downloading it over a 100 Mbps line is a rate. So if your value has a "per second" in it, you want the Data Rate Converter. If it is a fixed amount of stored data, you are in the right place.
Questions people ask
How many bytes are in a kilobyte?
It depends which system you mean. A decimal kilobyte (KB) is 1,000 bytes, while a binary kibibyte (KiB) is 1,024 bytes. Storage makers use 1,000, and Windows uses 1,024.
How many bits are in a byte?
Eight. So a kilobyte, at 1,000 bytes, is 8,000 bits.
Why does my 1 TB drive show as 931 GB?
The maker counts a terabyte as a trillion bytes (decimal), but Windows divides by binary gigabytes of 1,073,741,824 bytes and still labels them GB. A trillion divided by that is about 931, so the drive is fine.
What is the difference between a kilobyte and a kibibyte?
A kilobyte (KB) is 1,000 bytes, the decimal unit. A kibibyte (KiB) is 1,024 bytes, the binary unit. The "bi" and the small "i" mark the binary versions.
What is the difference between MB and MiB?
A megabyte (MB) is 1,000,000 bytes, while a mebibyte (MiB) is 1,048,576 bytes, which is 1,024 squared. The binary one is about 4.9% larger.
References
- National Institute of Standards and Technology (NIST). Definitions of the SI units: the binary prefixes (kibi, mebi, gibi). https://physics.nist.gov/cuu/Units/binary.html
Okan Atalay is a results driven senior operations manager and a graduate of Industrial Engineering from Bilkent University. With over 22 years of experience in textile manufacturing and integrated operations, he has led large scale business process improvements and strategic planning initiatives. Currently, he serves as a top mathematics expert for a global ed tech platform, where he applies his analytical expertise to solve complex mathematical problems. At Eon Tools, he reviews converter and maths tools.