Data Storage Converter
Convert between bytes, kilobytes, megabytes, gigabytes, and terabytes — in both decimal (KB) and binary (KiB) units.
Data Storage Converter
Decimal units use powers of 1,000 (1 KB = 1,000 bytes). Binary units use powers of 1,024 (1 KiB = 1,024 bytes). That difference is why a 1 TB drive shows about 931 GiB in Windows.
Formulas:
Decimal: 1 KB = 1,000 bytes; 1 MB = 1,000² bytes; 1 GB = 1,000³ bytes; 1 TB = 1,000&sup4; bytes; 1 PB = 1,000&sup5; bytes
Binary: 1 KiB = 1,024 bytes; 1 MiB = 1,024² bytes; 1 GiB = 1,024³ bytes; 1 TiB = 1,024&sup4; bytes; 1 PiB = 1,024&sup5; bytes
1 GiB = 1,073,741,824 bytes = 1,073.74 MB; 1 TB = 931.32 GiB
What Does a Data Storage Converter Do?
A data storage converter translates between units of digital information: bytes, kilobytes, megabytes, gigabytes, terabytes, and petabytes. It sounds simple — each unit is 1,000 times the one below it — but there is a catch that confuses almost everyone: computers also use a second set of units based on 1,024, and the two systems disagree by about 7% at the gigabyte level and 10% at the terabyte level. This converter handles both, so you can see exactly what a number means in either system.
The practical question this answers most often is the one every hard drive buyer asks: why does my new 1 TB drive only show 931 GB in Windows? The answer is that the drive really does hold 1,000,000,000,000 bytes, which is 1 TB in decimal terms — but Windows measures in binary units, where 1 GiB is 1,073,741,824 bytes, so the same drive is 931.32 GiB. Nothing is missing. The two numbers describe the same drive in different units.
Decimal vs Binary: The Two Systems
Decimal units (KB, MB, GB, TB, PB) use powers of 1,000, the way the SI prefixes kilo, mega, and giga are defined everywhere else in science. One kilobyte is 1,000 bytes, one megabyte is 1,000,000 bytes, and one gigabyte is 1,000,000,000 bytes. Drive manufacturers, internet providers, and cloud storage services use decimal units, because they are the official standard and because the numbers look bigger.
Binary units (KiB, MiB, GiB, TiB, PiB) use powers of 1,024, because computers work in binary and 1,024 is 2 to the power of 10. One kibibyte is 1,024 bytes, one mebibyte is 1,048,576 bytes, and one gibibyte is 1,073,741,824 bytes. Operating systems — Windows in particular — and much software use binary units, often while still labeling them KB, MB, and GB. That mislabeling is the root of the confusion.
The binary names with the "i" in the middle (kibibyte, mebibyte, gibibyte) were introduced by the IEC in 1998 specifically to end this ambiguity. Adoption has been slow: Windows still says "GB" when it means GiB, while macOS switched to decimal units in 2009, so the same drive shows 1 TB on a Mac and 931 GB on a PC. Both are correct; they are just counting in different units.
The Unit Table
Every unit in this converter, with its exact size in bytes. The gap between the decimal and binary columns grows with each step: about 2.4% at the kilo level, 4.9% at mega, 7.4% at giga, and 10% at tera.
- 1 KB (kilobyte) = 1,000 bytes; 1 KiB (kibibyte) = 1,024 bytes
- 1 MB (megabyte) = 1,000,000 bytes; 1 MiB (mebibyte) = 1,048,576 bytes
- 1 GB (gigabyte) = 1,000,000,000 bytes; 1 GiB (gibibyte) = 1,073,741,824 bytes
- 1 TB (terabyte) = 1,000,000,000,000 bytes; 1 TiB (tebibyte) = 1,099,511,627,776 bytes
- 1 PB (petabyte) = 1,000,000,000,000,000 bytes; 1 PiB (pebibyte) = 1,125,899,906,842,624 bytes
How to Use This Converter
Enter the amount, pick the unit you are converting from, and pick the unit you are converting to. The headline result is the converted value, and the rows underneath show the same amount in raw bytes, in decimal gigabytes, and in binary gibibytes, so you can compare all three at a glance.
Try the classic case: enter 1, select TB, and select GiB. The result is 931.32 GiB — the number Windows shows for a 1 TB drive. Or go the other way: enter 931.32 GiB and convert to TB to get back to 1.00 TB. Round trips always return the original number, because the converter goes through exact byte counts rather than rounded intermediate values.
Worked Example: How Many Photos Fit on a Drive?
Say you have a 500 GB external drive and your phone photos average 4 MB each (decimal megabytes, as most phones report). The drive holds 500,000 MB, so it fits 500,000 ÷ 4 = 125,000 photos. But if your photo app reports sizes in mebibytes, each photo is 4 MiB = 4.194304 MB, and the drive fits 500,000 ÷ 4.194304 = about 119,209 photos. Same drive, same photos, a difference of nearly 6,000 photos — purely from the unit system.
The same math applies to video. An hour of 1080p video at a typical bitrate takes about 3.6 GB (decimal). On a 1 TB drive that is 1,000 ÷ 3.6 = about 277 hours. In binary terms the drive is 931.32 GiB and each hour is about 3.35 GiB, giving the same 277 hours — the physics does not change, only the labels. What matters is staying in one system for the whole calculation.
Why Your Drive Always Looks Smaller
Every storage buyer meets this: a 256 GB phone shows about 238 GiB, a 512 GB SSD shows about 477 GiB, and a 2 TB drive shows about 1.82 TiB (1,819 GiB). Three things contribute. First, the decimal-to-binary gap described above accounts for most of it — roughly 7% at these sizes. Second, the operating system and pre-installed apps take space: a phone may reserve 15 to 20 GB before you install anything. Third, SSDs reserve some capacity for wear leveling and over-provisioning, typically around 7% of the raw flash, which is invisible to the user.
None of this means the manufacturer shorted you. A 1 TB drive contains 1,000,000,000,000 bytes, and that is what you paid for. The label on the box is in decimal terabytes; the number in your file manager is in binary gibibytes. Once you convert, the numbers agree.
Bits vs Bytes
One more unit pair causes confusion: bits and bytes. A byte is 8 bits. Storage is measured in bytes, but internet speeds are measured in bits per second — a "100 Mbps" connection moves 100 megabits per second, which is 12.5 megabytes per second. To download a 5 GB file at 100 Mbps takes 5,000 MB ÷ 12.5 MB/s = 400 seconds, or about 6 minutes 40 seconds, before overhead. People who divide 5,000 by 100 expect 50 seconds and are always disappointed. The factor of 8 is easy to forget and impossible to ignore.
Tips for Buying Storage
Convert before you compare. When a cloud plan offers 2 TB and your computer says your files total 1.8 TB, check which units each side uses. Your computer's 1.8 "TB" is usually 1.8 TiB, which is about 1.98 TB decimal — the plan only just fits.
Leave headroom. Drives slow down and wear faster when nearly full. SSDs in particular should keep 10 to 20% free space. If your files total 400 GB, buy a 1 TB drive rather than a 500 GB one: the 500 GB drive holds only about 466 GiB, and after the operating system you would be running at over 90% full.
Count the unit on the label. Memory (RAM) is sold in binary units — 8 GB of RAM is really 8 GiB — while storage is sold in decimal units. That is why 8 GB of RAM shows as exactly 8 GB in Windows but a 500 GB drive does not.
Common Mistakes to Avoid
The biggest mistake is mixing the two systems in one calculation: dividing a decimal drive size by a binary file size, or vice versa. Pick one system, convert everything into it, and then do the arithmetic. This converter's byte and GiB rows make that easy.
The second mistake is assuming a smaller number means missing space. If a 1 TB drive shows 931 GB, nothing is wrong — that is the same capacity in binary units. The time to worry is when the gap is much larger than the conversion explains, which points to a hidden partition or a counterfeit drive.
The third mistake is confusing MB with Mb. A capital B means bytes; a lowercase b means bits. A 25 MB photo and a 25 Mb download are different by a factor of 8. File sizes are bytes; network speeds are bits.
Frequently Asked Questions
Why does my 1 TB hard drive only show 931 GB?
Because the drive holds 1,000,000,000,000 bytes (1 TB decimal), but Windows measures in binary gibibytes where 1 GiB = 1,073,741,824 bytes. 1,000,000,000,000 / 1,073,741,824 = 931.32 GiB. Nothing is missing.
What is the difference between GB and GiB?
1 GB (gigabyte) is 1,000,000,000 bytes using decimal powers of 1,000, while 1 GiB (gibibyte) is 1,073,741,824 bytes using binary powers of 1,024. A GiB is about 7.4% larger than a GB.
Is 1 KB 1,000 or 1,024 bytes?
Both, depending on the unit: 1 KB (kilobyte) is exactly 1,000 bytes by the SI definition, while 1 KiB (kibibyte) is exactly 1,024 bytes. Windows traditionally used 1,024 but labeled it KB.
How many MB are in 1 GB?
1,000 MB in decimal units (1 GB = 1,000,000,000 bytes, 1 MB = 1,000,000 bytes). In binary units, 1 GiB = 1,024 MiB. Mixing the two is the most common source of storage math errors.
How many GB is a 2 TB drive in Windows?
About 1,818.99 GiB, which Windows displays as 1,818 GB. A 2 TB drive holds 2,000,000,000,000 bytes, and dividing by 1,073,741,824 bytes per GiB gives 1,818.99.