Number Base Converter
Convert between binary, decimal, and hexadecimal number systems
About Number Systems
Binary System (Base 2)
Example: 1010 (binary) = 10 (decimal) = A (hex)
Conversion: Sum powers of 2 where digit is 1. 1010 = (1×8) + (0×4) + (1×2) + (0×1) = 10.
The fundamental language of computers. Each binary digit (bit) represents an on/off state. Eight bits make a byte (can represent 0-255).
Decimal System (Base 10)
Example: 42 (decimal) = 101010 (binary) = 2A (hex)
Conversion to binary: Divide by 2 and record remainders: 42 → 101010.
The standard human numbering system. Used in everyday counting. Each position represents a power of 10, making arithmetic intuitive.
Hexadecimal System (Base 16)
Example: 2A (hex) = 42 (decimal) = 101010 (binary)
Conversion: 2A = (2×16) + (10×1) = 42. Each hex digit represents exactly 4 binary digits (nibble).
Widely used in computing as a compact representation of binary. One hex digit = 4 bits, two hex digits = 1 byte (8 bits).
Conversion Examples
Binary | Decimal | Hexadecimal |
---|---|---|
0000 | 0 | 0 |
0001 | 1 | 1 |
1010 | 10 | A |
1111 | 15 | F |
101010 | 42 | 2A |
11111111 | 255 | FF |
0 Comments