Definitions for various units in binary coding, including bits, bytes, megabytes, and gigabytes. A bit is the smallest unit in binary code, holding one of two values: 0 or 1. A byte is made up of 8 bits. One million bytes is referred to as a megabyte, and one billion bytes is a gigabyte.