Number Base Converter
Convert between binary, decimal, hexadecimal, and octal number systems.
Number Systems Explained
| System | Base | Digits Used | Used For |
|---|---|---|---|
| Binary | 2 | 0, 1 | Computers, digital electronics |
| Octal | 8 | 0-7 | Unix permissions, legacy systems |
| Decimal | 10 | 0-9 | Everyday counting |
| Hexadecimal | 16 | 0-9, A-F | Colors, memory addresses, programming |
Common Conversions
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 15 | 1111 | 17 | F |
| 16 | 10000 | 20 | 10 |
| 255 | 11111111 | 377 | FF |
| 256 | 100000000 | 400 | 100 |
Hex Color Codes
Hexadecimal is commonly used for colors in web design:
- #FF0000 = Red (255, 0, 0)
- #00FF00 = Green (0, 255, 0)
- #0000FF = Blue (0, 0, 255)
- #FFFFFF = White (255, 255, 255)
- #000000 = Black (0, 0, 0)