Data Size Converter Guide: Bits, Bytes, KB, MB, GB & TB Explained

Every file you download, every photo you take, every video you stream involves data measured in specific size units. Yet most people don't fully understand the difference between a megabit and a megabyte, or why a 1 TB hard drive only shows 931 GB of usable space. This guide clears up the confusion around data size measurements, explains the competing standards, and shows you how to convert between units accurately.

The Fundamentals: Bits and Bytes

Before discussing larger units, it's essential to understand the two smallest building blocks of digital data.

What Is a Bit?

A bit (short for "binary digit") is the smallest unit of data in computing. It holds a single binary value: either 0 or 1. Every piece of digital information — from a text message to a 4K movie — is ultimately stored as a sequence of bits.

What Is a Byte?

A byte consists of 8 bits. This grouping was standardized in the 1960s and became universal because 8 bits can represent 256 distinct values (2⁸), which is enough to encode the English alphabet, numbers, punctuation, and control characters in the ASCII standard.

Key relationship: 1 byte = 8 bits. This is the most important conversion to remember, because all larger units are built on top of it.

The distinction between bits and bytes causes endless confusion in consumer technology. Internet service providers advertise speeds in megabits per second (Mbps), but web browsers and file managers display download progress in megabytes per second (MB/s). Since 1 byte = 8 bits, a 100 Mbps connection delivers roughly 12.5 MB/s of actual throughput. This isn't misleading — it's just two different units measuring the same data flow.

Data Size Units: The Full Hierarchy

Data sizes scale using prefixes that multiply the base unit. The traditional (and still most commonly used) prefixes follow powers of 1,000 in decimal context:

UnitAbbreviationSize in BytesApproximate Real-World Equivalent
KilobyteKB1,000A short email
MegabyteMB1,000,000A medium-resolution photo
GigabyteGB1,000,000,000An hour of HD video
TerabyteTB1,000,000,000,000500 hours of HD video
PetabytePB10¹⁵All US academic research libraries
ExabyteEB10¹⁸All data on the internet (2024)

These prefixes — kilo, mega, giga, tera — are part of the International System of Units (SI) and use base-10 (powers of 1,000). However, computers operate in binary, and this creates a parallel system.

Binary vs Decimal Prefixes: The 1024 Problem

In binary computing, the natural progression uses powers of 2. The closest power of 2 to 1,000 is 1,024 (2¹⁰). For decades, the computing industry used the same prefix names (KB, MB, GB) to mean both 1,000 and 1,024, depending on context. This ambiguity caused real confusion.

The IEC Standard (1998)

To resolve this, the International Electrotechnical Commission (IEC) introduced new prefixes specifically for binary multiples:

Binary PrefixSymbolValueDecimal Prefix It Replaces
KibibyteKiB1,024 bytesKilobyte (KB)
MebibyteMiB1,048,576 bytesMegabyte (MB)
GibibyteGiB1,073,741,824 bytesGigabyte (GB)
TebibyteTiB1,099,511,627,776 bytesTerabyte (TB)

In practice, the adoption of these binary prefixes has been uneven. Operating systems like Linux increasingly use KiB/MiB/GiB. macOS switched from MB to MiB in Snow Leopard (2009). Windows, however, still displays file sizes using binary multiples but labels them with decimal prefixes — so a 500 GB drive shows as "465 GB" in Windows Explorer, when it should say "465 GiB."

Why Storage Devices Show Less Space Than Advertised

This is one of the most common complaints in consumer technology: "I bought a 1 TB hard drive, but my computer says it's only 931 GB!" Here's what's happening:

The discrepancy explained: Storage manufacturers use decimal prefixes (1 TB = 1,000,000,000,000 bytes). Operating systems use binary counting (what they call "1 GB" is actually 1 GiB = 1,073,741,824 bytes). So 1,000,000,000,000 ÷ 1,073,741,824 ≈ 931.3 GiB — which Windows displays as "931 GB."

This isn't deceptive marketing. Storage manufacturers follow SI standards correctly: 1 TB = 10¹² bytes. The problem is that operating systems mislabel binary units with decimal names. As storage sizes grow, the gap widens:

Advertised SizeActual BytesWhat Windows ShowsDiscrepancy
256 GB256,000,000,000238 GB7%
1 TB1,000,000,000,000931 GB9.1%
2 TB2,000,000,000,0001,862 GB9.1%
4 TB4,000,000,000,0003,725 GB9.1%

Additionally, some space is reserved for the file system itself (NTFS, ext4, APFS each have overhead), partition tables, and on SSDs, over-provisioning for wear leveling. A small portion of your drive's capacity is always consumed by this infrastructure.

Internet Speeds: Mbps vs MB/s

When shopping for internet service, you'll see speeds advertised in Mbps (megabits per second). When downloading files, your browser shows progress in MB/s (megabytes per second). The conversion is simple but often overlooked:

Speed in MB/s = Speed in Mbps ÷ 8

Examples:
  100 Mbps connection → 12.5 MB/s maximum
  500 Mbps connection → 62.5 MB/s maximum
  1 Gbps connection   → 125 MB/s maximum

Real-world speeds are typically 10–20% lower than theoretical maximums due to network overhead, protocol headers, and routing inefficiencies. A 100 Mbps plan realistically delivers around 10–11 MB/s for large downloads.

Why Do ISPs Use Bits Instead of Bytes?

Historically, networking equipment measures data transfer at the physical layer in bits. Network interfaces, modems, and switches all report throughput in bits per second. Using the same unit in marketing keeps the numbers consistent with what the hardware actually delivers. The larger numbers don't hurt either — 1 Gbps sounds more impressive than 125 MB/s, even though they represent the same bandwidth.

Data Sizes in Everyday Context

Understanding data sizes becomes much more intuitive when you connect them to real files and activities:

Documents and Text

Images

Audio

Video

How to Convert Between Data Units

Decimal Conversion (SI Units)

Moving up the scale means multiplying by 1,000. Moving down means dividing by 1,000.

1 TB = 1,000 GB = 1,000,000 MB = 1,000,000,000 KB = 1,000,000,000,000 bytes

Examples:
  2.5 TB × 1,000 = 2,500 GB
  750 MB ÷ 1,000 = 0.75 GB
  3,500 KB ÷ 1,000 = 3.5 MB

Binary Conversion (IEC Units)

Moving up means multiplying by 1,024. Moving down means dividing by 1,024.

1 TiB = 1,024 GiB = 1,048,576 MiB = 1,073,741,824 KiB

Examples:
  512 MiB × 1,024 = 524,288 KiB
  2 GiB ÷ 1,024 = 0.00195 TiB

Bits to Bytes

Always divide by 8 to convert bits to bytes, or multiply by 8 for the reverse.

100 Mbps × (1,000,000 / 8) = 12,500,000 bytes/s = 12.5 MB/s
A 50 MB file × 8 = 400 Mb

Cloud Storage and Data Transfer Limits

Understanding data sizes matters when choosing cloud storage plans or managing bandwidth caps. A typical household consumes 300–500 GB of internet data per month. Streaming services dominate this usage: Netflix at 1080p uses roughly 3 GB per hour, while 4K streaming consumes about 7 GB per hour.

Cloud storage pricing reflects the real cost of data at scale. Storing 1 TB of data on a major cloud provider costs roughly $20–25 per month. But downloading that data back to your machine can incur egress charges, and uploading 1 TB over a 50 Mbps connection takes about 46 hours — making data transfer speed a practical consideration alongside raw capacity.

Compression and Data Size Reduction

Compression algorithms reduce file sizes by finding and eliminating redundancy. Lossless compression (ZIP, FLAC, PNG) preserves every bit of the original data. Lossy compression (JPEG, MP3, H.264) discards data that human perception barely notices, achieving much higher compression ratios.

Typical compression ratios vary widely: text files compress 60–80%, photos compress 30–50% losslessly but 90%+ lossily, and already-compressed video files barely compress further. Understanding these ratios helps estimate how much storage you actually need for your data.

Frequently Asked Questions

Why does my 256 GB SSD only show 238 GB?
This is the difference between decimal and binary units. Your SSD manufacturer defines 256 GB as 256,000,000,000 bytes (decimal). Your operating system divides this by 1,073,741,824 (binary) and displays the result as "238 GB." Additionally, some space is reserved for the SSD's firmware and over-provisioning. The drive isn't defective — it's a units labeling issue.
What is the difference between MB and MiB?
MB (megabyte) = 1,000,000 bytes (decimal, SI standard). MiB (mebibyte) = 1,048,576 bytes (binary, IEC standard). The difference is about 4.86%. In everyday conversation, "MB" is used for both, but technically they differ. macOS uses MiB for file sizes, while Windows uses binary counting but labels it as MB, perpetuating the confusion.
How many MB is 1 GB?
In decimal (SI): 1 GB = 1,000 MB. In binary: 1 GiB = 1,024 MiB. Which one you use depends on context. Storage manufacturers use the decimal definition. Operating systems typically use the binary definition (even when they label it "GB"). For quick estimates, either works, but the ~2.4% difference per level compounds at larger sizes.
Is 1 KB 1000 or 1024 bytes?
Technically, 1 KB (kilobyte) = 1,000 bytes under the SI standard. 1,024 bytes is properly called a kibibyte (KiB). However, in practice, many software applications and operating systems still use KB to mean 1,024 bytes. The context usually makes clear which definition is being used, but the ambiguity is why the IEC introduced the KiB/MiB/GiB prefixes.
How do I calculate how many files fit on my drive?
Divide the usable capacity of your drive (in the same unit as your file size) by the average file size. For example, a 500 GB drive (≈465 GiB usable) holding 4 MB photos: 465,000 MB ÷ 4 MB ≈ 116,250 photos. Always leave 10–15% free for the file system to operate efficiently — a completely full drive degrades performance significantly.
Why are download speeds slower than my internet plan speed?
Several factors reduce real-world speed: your plan is in megabits (Mbps) but downloads show megabytes (MB/s) — divide by 8 first. Then account for network overhead (TCP/IP headers use ~5–10% of bandwidth), distance to the server, server-side throttling, Wi-Fi interference, and shared bandwidth with other devices. Expect 80–90% of theoretical speed under ideal conditions.
What's the largest data size unit currently in use?
In commercial use, petabytes (PB) and exabytes (EB) are the largest commonly referenced units. Major cloud providers (AWS, Google, Azure) store data in the exabyte range. Beyond that, zettabytes (ZB, 10²¹ bytes) and yottabytes (YB, 10²⁴ bytes) are defined but primarily theoretical. Global internet traffic is projected to reach several zettabytes per year by the late 2020s.
Does compressing files always reduce their size?
No. Files that are already compressed (JPEG, MP4, ZIP, FLAC) typically compress very little or even get slightly larger when compressed again, because the compression algorithm adds its own metadata overhead. Random data and encrypted files also resist compression. Compression works best on data with patterns and redundancy — text, uncompressed images (BMP, RAW), and some data formats.

Try Our Data Size Converter

Stop guessing and start converting accurately. Use our free Data Size Converter Tool to convert between bits, bytes, KB, MB, GB, TB, and more — with both decimal and binary prefix support. Instant results, no sign-up required.