Data Storage Converter
Convert between bytes, kilobytes, megabytes, gigabytes, terabytes, and binary units like kibibytes and gibibytes. Pick your units and get instant results.
Binary vs. Decimal: The Source of All the Confusion
Here's the thing that makes data storage units genuinely confusing: there are two competing systems, and they use the same names for different quantities. In the decimal system, "kilo" means 1,000, "mega" means 1,000,000, and "giga" means 1,000,000,000. That's how kilograms, kilometers, and kilowatts work. Clean, consistent, powers of ten.
But computers operate in binary — everything is zeros and ones. The power of two closest to 1,000 is 1,024 (which is 2 to the 10th power). Early computer scientists started calling 1,024 bytes a "kilobyte" because it was close enough to 1,000. A "megabyte" became 1,048,576 bytes (1,024 × 1,024), and a "gigabyte" became 1,073,741,824 bytes (1,024 × 1,024 × 1,024). For small amounts the discrepancy barely matters. At the gigabyte level, though, the binary gigabyte is about 7.4% larger than the decimal one. At the terabyte level, the gap widens to almost 10%.
In 1998, the International Electrotechnical Commission tried to fix this mess by introducing new names for the binary units: kibibyte (KiB) for 1,024 bytes, mebibyte (MiB) for 1,048,576 bytes, gibibyte (GiB) for 1,073,741,824 bytes. Linux adopted these terms, and some technical documentation uses them. But Windows still labels everything in the old ambiguous way, and most people have never heard of a gibibyte. The confusion persists, and it probably will for a long time.
Why Your Hard Drive Shows Less Space Than Advertised
You buy a 1 TB hard drive, plug it in, and your computer says it has 931 GB of space. You didn't get ripped off — you're just caught in the decimal vs. binary crossfire.
Hard drive manufacturers use decimal units because, frankly, the numbers are bigger and look better on the box. One terabyte, to a manufacturer, means 1,000,000,000,000 bytes. That's exactly one trillion bytes. No disagreement there.
But Windows reports storage using binary units while labeling them with decimal names. It divides those trillion bytes by 1,024 three times (for KB, MB, then GB) and gets 931 GB. The bytes are all there. Every single one. The operating system is just counting differently than the packaging.
macOS switched to decimal reporting in 2009 with Snow Leopard, which means a 1 TB drive on a Mac actually shows 1 TB. Apple got tired of support calls from confused customers and decided to match the manufacturer's labeling. Linux distributions vary — some show binary, some decimal, and many show both.
The gap grows with larger drives. A 2 TB drive shows as about 1.82 TB in Windows. A 4 TB drive appears as roughly 3.64 TB. It's not a scam, but it feels like one if you don't know what's happening. Formatting and filesystem overhead eat a small additional amount (usually less than 1%), but the decimal-to-binary conversion accounts for the lion's share of the "missing" space.
Data Sizes in Context: Photos, Videos, and Music
Raw numbers like megabytes and gigabytes are meaningless without context. So here's what various data sizes actually look like in everyday life.
A single text email without attachments is typically 5 to 10 kilobytes. A 200-page novel as a plain text file runs about 500 KB. The same novel as a PDF with formatting and a cover image might be 2 to 5 MB.
Photos vary wildly depending on the camera and format. A JPEG from a modern smartphone is around 3 to 7 MB. A RAW photo from a mirrorless camera can be 25 to 60 MB. Shoot a thousand RAW photos on a weekend trip and you've used 25 to 60 GB — a meaningful chunk of a memory card or laptop drive.
Music files in MP3 format at 320 kbps run about 7 to 10 MB per song. A full album is 70 to 120 MB. The same album in lossless FLAC format might be 300 to 500 MB. Spotify streams at up to 320 kbps and an hour of listening uses roughly 150 MB of data.
Video is where storage really gets eaten alive. One minute of 1080p video from a phone is approximately 130 MB. A minute of 4K footage balloons to 350 to 400 MB. A two-hour 4K movie on a streaming service, compressed with modern codecs, is around 14 to 18 GB. The uncompressed master? Potentially several terabytes. Professional video editors regularly fill multi-terabyte drives on a single project. Knowing these rough sizes helps you plan storage purchases, estimate cloud backup costs, and understand why your phone's 128 GB fills up faster than you'd expect.
How Storage Has Evolved
The pace of storage growth over the past fifty years is staggering when you lay out the numbers. The IBM 350, introduced in 1956, was the first commercial hard disk drive. It stored 3.75 megabytes — less than a single modern smartphone photo — on fifty 24-inch platters, and it was the size of a large refrigerator. Companies leased it for $3,200 per month, which in today's dollars would be somewhere around $35,000.
By the 1980s, personal computers shipped with hard drives in the 5 to 20 MB range. A 20 MB drive was considered spacious. The entire text of the Encyclopedia Britannica fit on about 1 GB, and nobody had that much storage at home.
The 1990s brought drives into the hundreds-of-megabytes range, and the gigabyte barrier fell by mid-decade. CDs held 700 MB. DVDs arrived at the end of the decade with 4.7 GB per disc. People burned mix CDs and thought they had solved personal data management forever.
Flash storage changed everything again. The first USB thumb drives in 2000 held 8 MB. Today you can buy a 2 TB micro SD card smaller than your fingernail. Smartphones routinely ship with 128 or 256 GB. Consumer SSDs hit 4 TB, and enterprise models reach 30 TB or more.
Cloud storage has made the physical capacity of your local drive less critical, but not irrelevant. The total amount of data generated worldwide was estimated at 120 zettabytes in 2023 — that's 120 trillion gigabytes. Whether you're comparing the IBM 350's 3.75 MB to a modern 20 TB NAS drive, or figuring out how many photos fit on your phone, understanding the units and how they relate to each other is what makes those comparisons possible.
Data Storage Conversion
Converted Value = Input Value × (Source Unit in Bytes / Target Unit in Bytes)
Data conversions normalize the input value to bytes, then convert to the target unit. Decimal units use powers of 1,000 (1 KB = 1,000 bytes, 1 MB = 1,000,000 bytes). Binary units use powers of 1,024 (1 KiB = 1,024 bytes, 1 MiB = 1,048,576 bytes). For example, 1 GB = 1,000,000,000 bytes = 1,000 MB, or approximately 953.674 MiB.
Where:
- Input Value = The numeric data size to convert
- Source Unit in Bytes = How many bytes one unit of the source represents
- Target Unit in Bytes = How many bytes one unit of the target represents
Example Calculations
Hard Drive Capacity: GB to GiB
Understanding why a 500 GB hard drive shows less space in Windows by converting to gibibytes.
A 500 GB hard drive contains exactly 500,000,000,000 bytes using the decimal definition. To convert to gibibytes, divide by 1,073,741,824 (which is 2 to the 30th power). The result is 500 multiplied by the ratio 1,000,000,000 / 1,073,741,824, giving 465.661 GiB. This is why Windows reports the drive as approximately 465 GB — every byte is present, but the operating system counts in binary while the manufacturer counts in decimal.
Data Cap Planning: GB to MB
Figuring out how much data you use streaming video — converting a 50 GB mobile data cap to megabytes.
One decimal gigabyte equals 1,000 megabytes, so 50 GB is simply 50 multiplied by 1,000, giving 50,000 MB. If HD streaming uses about 850 MB per hour, a 50 GB data cap allows roughly 58 hours of streaming before hitting the limit. Mobile data caps and ISP data limits typically use decimal gigabytes, so this conversion is straightforward multiplication.
Frequently Asked Questions
A kilobyte (KB) in the decimal system equals 1,000 bytes. A kibibyte (KiB) in the binary system equals 1,024 bytes. The difference is only 2.4%, which is negligible for small amounts. But the gap compounds at larger scales: a gigabyte is 1,000,000,000 bytes while a gibibyte is 1,073,741,824 bytes — a 7.4% difference. The kibibyte was introduced in 1998 to eliminate ambiguity, though it hasn't gained universal adoption outside of technical contexts.
In the decimal system used by storage manufacturers and most contexts, there are exactly 1,000 megabytes in a gigabyte. In the binary system used internally by some operating systems, there are 1,024 mebibytes in a gibibyte. When someone says "gigabyte" in casual conversation, they almost always mean the decimal version: 1,000 MB. The binary interpretation is technically a gibibyte (GiB), even though Windows labels it as GB.
Two factors reduce available space. First, the operating system itself takes up storage — iOS and Android typically use 10 to 15 GB for the OS and pre-installed apps. Second, the internal flash memory is measured in decimal gigabytes by the manufacturer but may be reported in binary by the system. Together, these factors mean a 256 GB phone might show 230 to 240 GB of usable space out of the box. This is normal and expected.
A petabyte is 1,000 terabytes, or one quadrillion bytes (1,000,000,000,000,000). To put that in perspective: you could store about 500 billion pages of plain text, or roughly 250,000 full-length 4K movies, in a single petabyte. Netflix's entire streaming library is estimated at 10 to 15 petabytes. The Large Hadron Collider at CERN generates about 1 petabyte of data per second during experiments. Most individual users will never work with petabyte-scale data, but large organizations deal with it routinely.
No. A bit is a single binary digit — either a 0 or a 1. A byte is a group of 8 bits. This distinction matters most when dealing with internet speeds, which are almost always advertised in bits per second (Mbps), while file sizes are shown in bytes (MB). A 100 Mbps internet connection transfers about 12.5 megabytes per second, not 100. Dividing by 8 converts bits to bytes. It's a common source of frustration when downloads seem slower than the advertised speed.