File size measures the size of a computer file and is typically measured in bytes with a prefix. The smallest unit in computers is bit and comes from binary digit. A bit has only two digits - zero and one. The zero is also known as false (off) state and the one is known as true (on).
The bits are combined in groups in order to form larger units. The next unit larger than the bit is the byte which is formed by the combination of eight bits and can represent a value from 0 to 255 which is 2 to the power of 8 - all the possible combinations of the 8 bits that it includes.
The next larger units after the byte are named kilobyte, megabyte, gigabyte, terrabyte and so on which lead to great deal of confusion. Though the kilo prefix in the metric system means 1000 (e.g grams) in computers it means 1024 (e.g. bytes). In order to correct this mess the International Electrotechnical Commission (IEC) approved a new IEC International Standard in December 1998.