Open In App

Understanding file sizes | Bytes, KB, MB, GB, TB, PB, EB, ZB, YB

Last Updated : 08 May, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

In the digital world, data is stored, processed, and transferred using a binary system that revolves around bits and bytes. Understanding how this system works is essential for anyone looking to navigate the world of computers, whether you're a student, a professional, or just someone curious about how your devices function. Let's break down the different units of memory and storage that computers use to organize and represent data.


A computer processor is made up of multiple decisive circuits, each one of which may be either OFF or ON. These two states, in terms of memory are represented by a 0 or 1. To count higher than 1, such bits (Binary Digits) are suspended together. A group of eight bits is known as a Byte. 1 Byte can represent numbers between zero (00000000) and 255 (11111111), or 28 = 256 distinct positions. Of course, these bytes may also be combined to represent larger numbers. The computer represents all characters and numbers internally in the same fashion. 

In practice, memory is measured in Kilobytes (KB) or Megabytes (MB). A Kilobyte is not exactly, as one might expect, 1000 Bytes. Rather, the correct amount is 210, i.e. 1024 bytes. Similarly, a megabyte is not 10002, i.e. 1,000,000 bytes, but instead 10242, i.e. 1, 048,576 bytes. This is a remarkable difference. By the time we reach a gigabyte (i.e. 10243 bytes), the difference between the base two and base ten amounts is almost 71 megabytes.

Both computer memory and disk space are measured in these units. But it’s important not to confuse these two. "12800 KB RAM" refers to the amount of main memory the computer provides to its CPU, whereas "128 MB disk" symbolises the amount of space that is available for the storage of files, data, and other types of permanent information. 

Basic Units of Data Storage

Bit: The Smallest Unit of Data

A bit is the smallest unit of memory in a computer. It can either be 0 or 1, representing the binary system that all computers rely on. This binary system forms the foundation of all digital data.

Nibble: A Step Up from a Bit

A nibble is made up of 4 bits, which is half of a byte. Nibbles are sometimes used in computing, though they're not as common as bytes. A nibble can also be represented as a single hexadecimal digit.

Byte: The Basic Unit for Data Storage

A byte is a unit of data that consists of eight bits, and it is used to represent characters like letters, numbers, or symbols in a computer. One byte can store one character, such as "A" or "7." Storage in computers is typically measured in multiples of bytes, with common units like kilobytes (KB), megabytes (MB), and gigabytes (GB).

Historically, the term kilobyte (KB) was used to represent 1,024 bytes, but for simplicity, many people began referring to it as 1,000 bytes. This led to confusion, especially as file sizes grew larger. To address this, organizations like the IEC and NIST introduced new terms like kibibyte (KiB) for 1,024 bytes and mebibyte (MiB) for 1,048,576 bytes. However, the old terms like kilobyte and megabyte, still commonly used to mean 1,000 bytes and 1,000,000 bytes, have remained popular despite these changes.

Unfortunately, it seems that the actions of these regulators have not helped to clarify the difference between the kilobyte and the kibibyte. The fact that word "kilobyte" has simply become too deep-rooted in international culture.

Larger Units of Data Storage

As data sizes increase, we move into larger units that can handle more information.

Kilobyte

The kilobyte is the smallest unit of memory measurement but greater than a byte. A kilobyte is 103 or 1,000 bytes abbreviated as ‘K’ or ‘KB’. It antecedes the Mega Byte, which contains 1,000,000 bytes. One kilobyte is technically 1,000 bytes, therefore, kilobytes are often used synonymously with kibibytes, which contain exactly 1,024 bytes (210). 
Kilobytes are mostly used to measure the size of small files. For example, a simple text document may contain 10 KB of data and therefore it would have a file size of 10 kilobytes. Graphics of small websites are often between 5 KB and 100 KB in size. Individual files typically take up a minimum of four kilobytes of disk space. 

1 KB = 1,024 Bytes

Megabyte

One megabyte is equal to 1,000 KBs and antecedes the gigabyte (GB) unit of memory measurement. A megabyte is 106 or 1,000,000 bytes and is abbreviated as "MB". 1 MB is technically 1,000, 000 bytes, therefore, megabytes are often used synonymously with mebibytes, which contain exactly 1, 048, 576 bytes (220). 
Megabytes are mostly used to measure the size of large files. For example, a high-resolution JPEG image might range in size from 1-5 megabytes. A 3-minute song saved in a compressed version may be roughly 3MB in size, and the uncompressed version may take up to 30 MB of disk space. Compact Disk’s capacity is measured in megabytes (approx 700 to 800 MB), whereas the capacity of most other forms of media drives, such as hard drives and flash drives, is generally measured in gigabytes or terabytes. 

1 MB = 1024KB = 1,048,576 Bytes

Gigabyte

One gigabyte is equal to 1,000 MBs and precedes the terabyte(TB) unit of memory measurement. A gigabyte is 109 or 1,000,000,000 bytes and is abbreviated as "GB”. 1 GB is technically 1,000,000,000 bytes, therefore, gigabytes are used synonymously with gibibytes, which contain exactly 1,073,741,824 bytes (230). 
Gigabytes, are sometimes also abbreviated as "gigs, " and are often used to measure a storage device's capacity. e.g., a standard DVD drive can hold 4.7 GB of data. Storage devices that hold 1, 000 GB of data or more are measured in terabytes. 

1 GB = 1024MB = 1,048,576 KB = 1,073,741,824 Bytes

Terabyte

One terabyte is equal to 1,000 GBs and precedes the petabyte(PB) unit of memory measurement. A terabyte is 1012 or 1,000,000,000,000 bytes and is abbreviated as "TB". 1 TB is technically 1 trillion bytes, therefore, terabytes and tebibytes are used synonymously, which contains exactly 1, 099, 511, 627, 776 bytes (1, 024 GB) (240). 
Mostly the storage capacity of large storage devices is measured in TeraBytes. Around 2007, consumer hard drives reached a capacity of 1 TeraByte. Now, HDDs are measured in Terabytes e.g., a typical internal HDD may hold 2 Terabytes of data whereas some servers and high-end workstations that contain multiple hard drives may even have a total storage capacity of over 10 Terabytes. 

1 TB = 1024 GB = 1,048,576 
MB = 8,388,608 KB = 1,099,511,627,776 Bytes

Petabyte

One petabyte is equal to 1,000 TBs and precedes the exabyte unit of memory measurement. A petabyte is 1015 or 1,000,000,000,000,000 bytes and is abbreviated as "PB". A petabyte is smaller in size than a pebibyte, which contains exactly 1, 125 899 906, 842, and 624 (250) bytes. 
Most storage devices can hold a maximum of a few TBs, therefore, petabytes are rarely used to measure the memory capacity of a single device. Instead, PetaBytes are used to measure the total data stored in large networks or server farms. For example, Internet Giants like Google and Facebook store more than over 100 PBs of data on their data servers. 

1 PB = 1024 TB = 1,048,576 GB = 1,073,741,824 
MB = 1,099,511,627,776 KB = 1,125,899,906,842,624 Bytes

Exabyte

One exabyte is equal to 1, 000 PBs and precedes the zettabyte unit of memory measurement. An exabyte is 1018 or 1,000,000,000,000,000,000 bytes and is abbreviated as "EB". Exabytes are lesser than exbibytes, which contain exactly 1,152,921,504,606,846, and 976 (260) bytes. 
The exabyte unit of memory measurement is so large, that it is not used to measure the capacity of storage devices. Even the data storage capacity of the biggest cloud storage centers is measured in PetaBytes, which is a fraction of 1 EB. Instead, exabytes measure the amount of data over multiple data storage networks or the amount of data that is being transferred over the Internet for a certain amount of time. E.g., several hundred exabytes of data are transferred over the Internet every year. 

1 EB = 1024 PB = 1,048,576 TB = 1,073,741,824 
GB = 1,099,511,627,776 MB = 1,125,899,906,842,624 KB =
1,152,921,504,606,846,976 Bytes

ZettaByte

One zettabyte is equal to 1, 000 exabytes or 1021 or 1,000,000,000,000,000,000,000 bytes. A zettabyte is a little bit smaller than a zebibyte contains 1,180,591,620, 717,411,303,424 (270) bytes, and is abbreviated as "ZB". One zettabyte contains one billion TBs or one sextillion bytes which means it will take one billion one-terabyte hard drives to store one zettabyte of data. Generally, Zettabyte is used to measure large amounts of data and all the data in the world is just a few zettabytes. 

1 ZB = 1024 EB = 1,048,576 PB = 1,073,741,824
TB = 1,099,511,627,776 GB = 1,125,899,906,842,624 MB =
1,152,921,504,606,846,976 KB = 1,180,591,620,717,411,303,424 Bytes

Yottabyte

A yottabyte is the largest SI unit of data measurement. It is equal to 1,000 zettabytes and contains 1,000,000,000,000,000,000,000,000 bytes, which is abbreviated as "YB." In decimal terms, 1 yottabyte (YB) contains 1,000,000,000,000,000,000,000,000 bytes or 10^24 bytes.

In binary terms, however, the yottabyte is slightly larger, corresponding to 1,024 zettabytes and 1,208,925,819,614,629,174,706,176 bytes. This is called a yobibyte (YiB) and contains exactly 2^80 bytes.

While the yottabyte is a massive measurement, it’s rarely used in practical contexts since the total amount of data in the world is far smaller than this. However, for completeness: 

1 YB = 1,000 ZB
1 YB = 1,048,576 EB
1 YB = 1,073,741,824 PB
1 YB = 1,099,511,627,776 TBz 1 YB = 1,125,899,906,842,624 GB
1 YB = 1,152,921,504,606,846,976 MB
1 YB = 1,180,591,620,717,411,303,424 KB
1 YB = 1,208,925,819,614,629,174,706,176 Bytes


So, 1 yottabyte (decimal) contains 10^24 bytes, while 1 yobibyte (binary) contains 2^80 bytes.

Bronto Byte, Geop Byte, and Sagan Byte are not real units of data storage that we use today. They are theoretical or hypothentical terms to imagine how much data we could store in the future, way beyond what we can handle now.

Right now, the biggest unit we use is a yottabyte, which is still much smaller than these made-up terms. So, these large units like Bronto Byte or Sagan Byte don’t really exist or get used for storing data at the moment.

Some Important Notes:

  • The size of a disk with one KB is typically 1024 Bytes although 1,000 Bytes of data might be mentioned
  • The download speed Kbps is typically 1,000 Bits per second, not 1,024 Bits per second.
  • In general it is a good idea to consider 1KB as around 1000 bytes and 1MB as around 1000 KBs. Please note there is only a difference of just 5% between 1024 and 1000

Tabular Representation of Various Memory Sizes 

NameEqual ToSize (In Bytes)
1 Bit1/8 Byte1
Nibble4 Bits1/2 Byte (rare)
Byte8 Bits1
Kilobyte1,024 Bytes1,024
Megabyte1,024 Kilobytes1,048,576
Gigabyte1,024 Megabytes1,073,741,824
Terabyte1,024 Gigabytes1,099,511,627,776
Petabyte1,024 Terabytes1,125,899,906,842,624
Exabyte1,024 Petabytes1,152,921,504,606,846,976
Zettabyte1,024 Exabytes1,180,591,620,717,411,303,424
Yottabyte1,024 Zettabytes1,208,925,819,614,629,174,706,176

Data Transfer Speeds

When transferring data between devices, speed is an important consideration. Data transfer speed can be measured in bits per second (bps) or bytes per second (Bps). Here’s a breakdown of common data transfer rates:

  • 1 bit per second (bps) is the smallest unit of data transfer speed.
  • 1 byte per second (Bps) is equivalent to 8 bits per second.
  • 1 kilobyte per second (KBps) = 1,024 bytes per second.
  • 1 megabyte per second (MBps) = 1,024 kilobytes per second.
  • 1 gigabyte per second (GBps) = 1,024 megabytes per second.

The fastest data transfer speed recorded was 1.84 petabits per second (Pbps) in October 2022, which translates to a speed of approximately 14.7 billion megabits per second (Mbps).

Conclusion

Understanding memory and data storage units is essential in today’s world of technology. From bits and bytes to massive units like yottabytes, these measurements help us comprehend the storage and processing capabilities of our devices. While the decimal and binary systems may sometimes seem confusing, knowing the difference between them can help you make more informed decisions when it comes to data transfer, storage, and capacity


Similar Reads