File Size

What is a File Size?

A file size indicates the space taken up by the file on the storage medium such as the hard drive, USB flash drive or even cloud storage. The file size can be measured in different units such as:

These units actually represent how much data can actually be stored in a given file.

Understanding File Size in Computer

Understanding File Size in Computer

The computers of today can store a lot more data than the ones that were available twenty years ago.

However, every computer comes with a definite amount of storage which may turn out to be very limited if you store large files in it.

For example, a computer with a standard hard disk drive can store about 10,000 GIFs of your pet dog but may not have enough storage to store even 10 full-length movies about dogs.

Therefore, it is important to know about the file size.

Typically, the common unit of measurement of file sizes is bytes. A byte is typically referred to as the sequence of 8 bits.

A bit is the smallest size of digital information. This is enough for representing a single alphanumeric character and therefore considered as a single unit of information.

In technical terms, a bit is represented either as an ‘on’ or an ‘off’ which the computer CPU processes as ‘1’ for ‘on’ and ‘0’ for ‘off.’

8 bits make 1 byte and it is this byte that is used to pass information in the basic form – its characters.

Any letter or number such as ‘A’, ‘B’ or ‘5’ will be stored in the hard disk of the computer as 1 byte or as 8 bits.

For example, to store the letter ‘R’ the computer uses bytes or 8 bits denoted as ‘01010010’.

Read Also:  What is Optane Memory? Uses, Pros & Cons

This means that if a document contains 100 characters and is stored in the computer, it will use 800 bits or 100 bytes, excluding any additional data regarding the file that is a part of the file or any other overhead is involved.

At this point, it is important to note for any computer user that there are several non-alphanumeric characters including characters of foreign languages or specific symbols that typically uses multiple bytes.

Based on this measurement, larger files are measured as follows:

As said earlier, different files on the computer have different sizes. For example:

However, if you want to know about file size then the above information is enough to know.

But, if you want to check it out yourself or determine the file size on a regular basis then you will need to know a few more things.

Consider a small text file of 5 letters only, HELLO for example.

Given the fact that a single letter needs 1 byte to store, quite naturally you will calculate and think that the word will take up 5 bytes of space. Simple math!

Well, try it out and then look at the metadata of the file stored to find out the total file size.

You will find that it is a file of 6 bytes and not 5 bytes as you rightfully expected since you have typed only 5 letters – H, E, L, L, and O and every letter needs 1 byte of space.

Read Also:  What is Direct Memory Access (DMA)? Function, Types & More

Well, the discrepancy is due to the fact that the editor will automatically add a new line to the file which will also need another byte to be represented.

Therefore, representing the entire file in bytes, it will look like this when the binary form is considered:

As for the larger files, a much larger space than a couple of bytes will be required to store them in the hard disk.

For example, a standard 400 x 400 image, say of your face, would need as much as 22,096 bytes of hard disk space to store it.

And, a small movie of about 33 seconds would take up a whopping 4,614,170 bytes of space depending on the type.

Usually, to keep things simple, while talking about larger files, larger units are considered to start with, such as a kilobyte.

Considering that, the tentative storage spaces taken up by different files will be as follows:

You can compare file sizes of different computers easily because the file sizes do not change much from one computer to another.

This is because the computers are quite consistent in their units.

Typically, the file sizes may change depending on whether or not the file is ‘compressed’ and, if it is so, then to what degree it has been compressed.

For example, 1 GB of hard disk space can store an uncompressed video or uncompressed video.

On the other hand, if a video is compressed and is of the same low resolution, the same space in the hard disk can store a 1-hour long video.

Now you may ask, how big is too big for the computer hard disk. Well, it all depends on the context.


The process to convert file sizes is pretty simple and pretty much similar to converting standard metric system units. Here they are:

Read Also:  What is MIMO Technology? Function & Advantages

To convert bits to bytes, you will have to divide the number of bits by 8 because one byte is equal to 8 bits.

On the other hand, in order to convert bytes to bits, you simply have to multiply the byte count with 8 for the same reason.

If you want to convert bytes to kilobytes, all you have to do is divide the byte count by 1024, and multiply the kilobyte figure with 1024 to get the number of bytes.

And, if you want to convert kilobytes to megabytes, you will need to divide the kilobyte amount by 1024 and the quotient will give you the value in MB.

Conversely, the MB value needs to be multiplied by 1024 to get the kilobyte value.

Similarly, the process goes on for converting megabyte value to gigabyte value, and the gigabyte value to terabyte value, and the terabyte value to petabyte value.

Therefore, for converting file sizes, you will have to remember three things such as:

This means that, if you want to convert byte to gigabyte, you will need to divide the byte value by 1024 three separate times – once to get the kilobyte amount, once to get the megabyte amount, and once to get the final gigabyte amount.


It is very helpful for any computer user to know about the file sizes in detail.

This will help them not only to know how large the file actually is but also identify the limitations of the different storage devices.

That was the whole idea of this article.