Translate data between human and machine languages instantly.
Binary is the fundamental language of computers. It is a base-2 numeral system that uses only two symbols: 0 and 1.
While humans use the decimal system (base-10) likely because we have ten fingers, computers use binary because of electricity. A transistor in a computer processor can be either OFF (0) or ON (1). By combining billions of these switches, computers can represent complex data like images, video, and the webpage you are reading right now.
To convert a decimal number to binary manually, you use the "Divide by 2" method:
Binary strings get very long very quickly. Hexadecimal (Base-16) is used as a shorthand. It uses numbers 0-9 and letters A-F.
One Hex digit represents exactly 4 binary bits (a "nibble"). This makes it perfect for color codes (like #FFFFFF) and memory addresses.
Computers don't understand letters like 'A' or 'B'. They use standards like ASCII (American Standard Code for Information Interchange).
In ASCII, every character is assigned a number.
'A' is 65 (Binary: 01000001)
'a' is 97 (Binary: 01100001)
Because it's easier to build hardware that detects two clearly distinct states (high voltage vs low voltage) than ten distinct states.
A byte is a unit of digital information that consists of 8 bits. It can represent 256 different values (0 to 255).