Understanding file sizes | Bytes, KB, MB, GB, TB, PB, EB, ZB, YB - GeeksforGeeks (2024)

The memory of a Computer is any physical device that is capable of storing information whether it is large or small and stores it temporarily or permanently. For example, Random Access Memory (RAM), is a type of volatile memory that stores information for a short time, on an integrated circuit used by the Operating System.

Memory can be either volatile or non-volatile. Volatile memory is a type of memory that loses its contents when the computer or hardware device is switched off. RAM is an example of a volatile memory i.e. if your computer gets rebooted while working on a program, you lose all the unsaved data. Non-volatile memory is a memory that keeps its contents saved even in the case of power loss. EPROM((Erasable Programmable ROM) is an example of non-volatile memory.

Table of Content

  • Memory
  • Characteristics of Main Memory
  • Units of Memory
  • Types of File Sizes
  • Tabular Representation of Various Memory Sizes
  • Data Transfer Speeds:
  • FAQ- Understanding File Sizes

Memory

Computer Memory is the hardware part of the system that stores data, information, and instructions. It is a device where data is stored, data is processed and instructions required for data processing are also stored. Computer memory stores both types of data that is, input and output.

Types of Computer Memory

  • Primary Memory
  • Secondary Memory
  • Cache Memory

1. Primary Memory

Primary Memory is called as main memory of the System. During computer operations, it stores data, programs, and instructions. It is commonly called Semiconductor Memory or Volatile Memory. Primary Memory is faster than Secondary Memory.

2. Secondary Memory

Secondary Memory is used to store a heavy amount of data or information. The data or information stored in Secondary Memory is permanent and secondary memory is slower than primary memory, but secondary memory can’t be directly accessible by the CPU.

3. Cache Memory

Cache Memory is faster memory that helps in fastening the speed of the CPU. Cache Memory is used to store the data that is frequently required by the CPU. Whenever the system gets off, data present in the cache memory gets lost.

Characteristics of Main Memory

  • Semiconductor memories.
  • Faster than secondary memories.
  • A computer cannot run without primary memory.
  • It is the working memory of the computer.
  • Usually volatile memory.
  • Data is lost in case the power is switched off.

Units of Memory

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 Megabyte.

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” symbolizes the amount of space that is available for the storage of files, data, and other types of permanent information.

Types of File Sizes

  • Bit
  • Nibble
  • Byte
  • Kilo Byte
  • Mega Byte
  • Giga Byte
  • Tera Byte
  • Peta Byte
  • EXA Byte
  • Zetta Byte
  • Yotta Byte

Bit

In a computer, data is stored in the form of 0s and 1s. We can store each and every data in a computer with the help of 0s and 1s. Each digit, either 0 or 1, is called a Bit. The Bit is the smallest unit of memory. Bit simply refers to the binary digit.

Nibble

Nibble is just a greater version of Bit. It is a combination of 4 bits of binary digits or half of an Octet. A nibble can be represented by a single hexadecimal digit.

Byte

In computer systems, a unit of data that is eight binary digits long is known as a byte. A byte is a unit that computers use to represent a character such as a letter, number, or a typographic symbol (for example, “h”, “7”, or “$”). A byte can also grasp a string of bits that need to be used in some larger units of application processes (e.g., the stream of bits that composes a visual image for a program that represents images or the string of bits that composes the machine code of a computer program).
A Byte is abbreviated with a big “B” whereas a bit is abbreviated with a small “b”. Computer storage is generally measured in multiples of the byte. For example, a 640 MB hard drive holds a nominal 640 million bytes – or megabytes – of data. Byte multiples are made up of exponents of 2 and are generally expressed as a “rounded-off” decimal number. For example, two megabytes or 2 million bytes are 2,097,152 (decimal) bytes.

The Conflict: Once a Kilo Byte was considered truly massive at a time. Some felt that writing 210 was a bit unwise and also confuse others. 1,024 bytes appeared to be slightly awkward, and for ease of use, the kilobyte began to be referred to simply as 1,000 bytes of data and just ignore the left 24 Bytes. The majority might assume that the Kilo Byte is just 1, 000 Bytes of data but that’s not the case. This was done as the people with no knowledge of binary will not get the extra 24 bytes of storage.

As time passed, and we started to use Mega Byte (MB), it became harder to neglect 24 KB of data, but not hard enough. when Giga Byte was started to use it became very hard to ignore 24 MB of storage. Now imagine ignoring 24 GB or even 24 TB of data.

The Solution: Since it was hard to ignore such a large amount of data, they started to call KB 1024 Bytes, 1 GB as 1024 MB, etc. But now it was too late, people now know that the KB was 1, 000 Bytes and not 1, 024 Bytes. An effort was set by the American organization NIST (National Institute of Standards and Time) and the International Electrotechnical Commission (IEC) to resolve the issue.

As it was very difficult to make small modifications as it tends to big changes to the world of science and technology, it was decided in 1998 that “kibibyte (KiB)” would be used to signify 1,024 bytes while the Kilo Byte would be retained solely for 1,000 bytes. Similarly “mebibyte (MiB)” would be used to represent 1,048,576 bytes while a megabyte (MB) still referred to 1,000,000 bytes.

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.

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 lesser 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

One yottabyte is equal to 1,000 zettabytes. It is the largest SI unit of memory measurement. A yottabyte is 1024 ZettaBytes or 1,000,000,000,000,000,000,000,000 bytes and is abbreviated as “YB”. It is a little bit smaller than yobibyte, which contains exactly 1, 208, 925, 819, 614, 629, 174, 706, and 176 bytes (280) bytes.

1 yottabyte contains one septillion bytes which is the same as one trillion TBs. It is a very large number that humans can evaluate. There is no practical use for such a large measurement unit because all the data in the world is made of just a few zettabytes.

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

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)
    Bit1 Bit1/8
    Nibble4 Bits1/2 (rare)
    Byte8 Bits1
    Kilobyte1024 Bytes1024
    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:

    File transfer speed or data transfer speed refers to the speed at which data is transmitted from one source to another. Typically measured in bits or bytes per second. Some of the file transfer speeds are:

    Bits per Second(bps): It is the smallest unit of data transfer speed or file transfer speed.

    Bytes per Second(Bps): 1Bps = 8bps. 1 byte=8 bits.

    Kilobyte per second (KBps): 1kBps= 1024 Bps. 1kB = 1024 Bytes.

    Megabyte per second (KBps): 1MBps= 1024 KBps. 1MB = 1024 Kilobytes.

    Gigabyte per Second (GBps): 1GBps= 1024 MBps. 1 GB= 1024 Megabytes.

    Terabyte per Second (TBps): 1TBps= 1024 GBps. 1 TB= 1024 Gigabytes.

    Petabyte per Second (PBps): 1GBps= 1024 Kbps. 1 GB= 1000 Terabytes.

    The fastest data transfer speed achieved is 1.84 petabits per second (Pbps) on October 2022. Which is 14720000000 Megabits per second(mbps).

    FAQ- Understanding File Sizes

    Q1. What are file sizes in order?

    File Size from smallest to largest in order:

    1. Bit (b)
    2. Byte (B)
    3. Kilobyte (KB)
    4. Megabyte (MB)
    5. Gigabyte (GB)
    6. Terabyte (TB)
    7. Petabyte (PB)
    8. Exabyte (EB)
    9. Zettabyte (ZB)
    10. Yottabyte (YB)

    Q2. Which is bigger: MB or KB?

    MB is bigger than KB.

    Q3. How many Gigabytes are there in 1 Terabyte?

    There are 1024 GB in 1 TB.

    Q4. How long does it take to transfer 1tb?

    It would take just over 4 hours and 45 minutes to transfer the data at the theoretical 60 MB/s speed.

    Q5. How fast is SSD transfer?

    HDDs have a copy speed of 30 to 150 MB per second (MB/s), whereas standard SATA SSDs have a 500 MB/s copy speed. The top speeds achieved by more recent NVMe SSDs are between 3,000 and 3,500 MB/s.

    Q6. How many Bits are there in a Byte?

    There are 8 bits in a Byte.



    A

    Akanksha_Rai

    Improve

    Next Article

    What is a Storage Device? Definition, Types, Examples

    Please Login to comment...

    Understanding file sizes | Bytes, KB, MB, GB, TB, PB, EB, ZB, YB - GeeksforGeeks (2024)

    FAQs

    Understanding file sizes | Bytes, KB, MB, GB, TB, PB, EB, ZB, YB - GeeksforGeeks? ›

    Bytes are expressed in large numbers using metric prefixes. Each increase in units represents 1,000 of the previous unit. A kilobyte (KB) is 1,000 bytes, and one megabyte (MB) is 1,000 kilobytes. One gigabyte (GB) is equal to 1,000 megabytes, while a terabyte (TB) is 1,000 gigabytes.

    What is KB, mb, GB, TB, PB? ›

    Bytes are expressed in large numbers using metric prefixes. Each increase in units represents 1,000 of the previous unit. A kilobyte (KB) is 1,000 bytes, and one megabyte (MB) is 1,000 kilobytes. One gigabyte (GB) is equal to 1,000 megabytes, while a terabyte (TB) is 1,000 gigabytes.

    What are the file sizes in order from smallest to largest? ›

    File sizes are measured in Bytes (B), Kilobytes (KB), Megabytes (MB), Gigabytes (GB), Terabytes (TB) and so on.

    What is GB vs TB vs PB vs EB? ›

    1,024 megabytes equal one gigabyte. 1,024 gigabytes equal one terabyte. 1,024 terabytes equal one petabyte (PB) 1,024 petabytes equal an exabyte.

    What is the order of bytes from smallest to biggest? ›

    The order of units of data storage from smallest to largest begins with Bit, followed by Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte, Exabyte etc. The relationship between each unit of data storage is that each unit is exactly 1,024 (2^10) of the prior unit.

    What does YB mean in bytes? ›

    What is a yottabyte (YB)? A yottabyte (YB) is a measure of theoretical storage capacity and data volumes equal to 2 to the 80th power bytes, or approximately a million trillion megabytes (MB). This measure is used to denote the size of data. The prefix yotta is based on the Greek letter iota.

    What is an EB file size? ›

    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.

    What is the explanation of file sizes? ›

    File size is a measure of how much data a computer file contains or, alternately, how much storage it consumes. Typically, file size is expressed in units of measurement based on the byte.

    How do I know which file is the largest? ›

    Click the Size header above the file list to sort by size. It's one of the column headers above the list of files. This makes the biggest files in the selected size range appear at the top of the list. If you click this header again, the order will reverse.

    How many KB is considered a large file? ›

    Small (10 – 100 KB) Medium (100 KB – 1 MB) Large (1 MB – 16 MB)

    What is bigger than YB? ›

    Of the SI defined units, there is only one that is bigger than the Yottabyte (YB). That is the Yobibyte (YiB). 1 YiB is just over 208 ZB greater than 1 YB.

    What is the difference between TB and ZB? ›

    The number of bytes is equal to 2 to the 70th power, also expressed as 1 sextillion bytes. One zettabyte is approximately equal to 1,000 exabytes or 1 billion terabytes.

    What does EB stand for in storage? ›

    An extraordinarily large unit of digital data, one Exabyte (EB) is equal to 1,000 Petabytes or one billion gigabytes (GB).

    What is KB, MB, gb, TB smallest to largest? ›

    Computer Storage Units Smallest to Largest
    • Bit is an eighth of a byte* ...
    • Byte: 1 Byte. ...
    • Kilobyte: 1 thousand or, 1,000 bytes. ...
    • Megabyte: 1 million, or 1,000,000 bytes. ...
    • Gigabyte: 1 billion, or 1,000,000,000 bytes. ...
    • Terabyte: 1 trillion, or 1,000,000,000,000 bytes. ...
    • Petabye: 1 quadrillion, or 1,000,000,000,000,000 bytes.
    Feb 15, 2024

    Which is bigger, KB or gb or MB? ›

    KB, MB, GB - A kilobyte (KB) is 1,024 bytes. A megabyte (MB) is 1,024 kilobytes. A gigabyte (GB) is 1,024 megabytes.

    Is KB smaller than MB? ›

    Kilobytes are smaller than megabytes, which in turn are smaller than gigabytes.

    What does PB mean in data storage? ›

    What is a petabyte? A petabyte (PB) is a unit of data storage that represents 1,000,000,000,000,000 bytes or 10^15 bytes. It is 1000x larger than a terabyte (TB) and one million times larger than a gigabyte (GB).

    What is PB in Internet speed? ›

    A petabyte is a measure of memory or data storage capacity that is equal to 2 to the 50th power of bytes. There are 1,024 terabytes (TB) in a petabyte and approximately 1,024 PB make up one exabyte.

    How do you remember KB MB GB TB? ›

    Introduce the mnemonic “Burger King Makes Great Toast” for memorizing the order of data sizes “Byte, Kilobyte, Megabyte, Gigabyte, and Terabyte” to aid students remembering this information.

    What does PB stand for in computers? ›

    Petabyte (PB), a unit of information equivalent to 1000 terabytes which is used, for example, to quantify computer memory or storage capacity.

    References

    Top Articles
    In August 2024, consumer prices increased by 1.9% year on year - Informations rapides - 215
    Daniel Niculae știe ce transfer pregătește Șumudică la Rapid: "L-am vrut și noi acum doi ani" | Sport.ro
    Jobs Hiring Start Tomorrow
    Orange Craigslist Free Stuff
    Pa Pdmp Log In
    Weather Radar For East Coast
    M&T Bank Atm Locations Near Me
    Urology Match Spreadsheet
    Sutter Health Candidate Login
    Wmlink/Sspr
    8 Garden Sprayers That Work Hard So You Don't Have To
    Japan’s Dagashi Treats: A Tasty Trip Down Memory Lane – Umami bites
    Housing Intranet Unt
    Craigslist Furniture By Owner Dallas
    10 Teacher Tips to Encourage Self-Awareness in Teens | EVERFI
    Legend Of Krystal Forums
    Banned in NYC: Airbnb One Year Later
    Huniepop Jessie Questions And Answers
    Overton Funeral Home Waterloo Iowa
    Amy Riley Electric Video
    Liquor World Sharon Ma
    Myzynrewards
    Review: 'Letters From Iwo Jima' a masterpiece - CNN.com
    Lima Crime Stoppers
    Meritain Prior Authorization List
    How to Get Into UCLA Medical School: Requirements and Strategies — Shemmassian Academic Consulting
    Frankie Beverly, the Maze singer who inspired generations of fans with lasting anthems, dies at 77
    25+ Irresistible PowerXL Air Fryer Recipes for Every Occasion! – ChefsBliss
    Insidekp.kp.org Myhr Portal
    Rubios Listens Com
    Nationsotc.com/Bcbsri
    They Cloned Tyrone Showtimes Near Showbiz Cinemas - Kingwood
    Courtney Callaway Matthew Boynton
    18443168434
    Kino am Raschplatz - Vorschau
    Warrior Badge Ability Wars
    Alloyed Trident Spear
    Joy Ride 2023 Showtimes Near Amc Ward Parkway
    La Monja 2 Pelicula Completa Tokyvideo
    Lipidene Reviews 2021
    Heatinghelp The Wall
    G122 Pink Pill
    Sdn Md 2023-2024
    Lol Shot Io Unblocked
    Stihl Blowers For Sale Taunton Ma
    Stellaris Archaeological Site
    Minute Clinic Schedule 360
    Craigslist Lasalle County Il
    Ncaa Wrestling Bracket Challenge
    Natalya Neidhart: Assembling the BOAT
    Lucio Volleyball Code
    Online Reading Resources for Students & Teachers | Raz-Kids
    Latest Posts
    Article information

    Author: Arielle Torp

    Last Updated:

    Views: 5347

    Rating: 4 / 5 (61 voted)

    Reviews: 92% of readers found this page helpful

    Author information

    Name: Arielle Torp

    Birthday: 1997-09-20

    Address: 87313 Erdman Vista, North Dustinborough, WA 37563

    Phone: +97216742823598

    Job: Central Technology Officer

    Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

    Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.