Binary Converter
Convert between binary, decimal, hexadecimal, and octal instantly. Understand number systems used in computing and programming.
Embed this toolAdvertisement
Number Systems in Computing
Computers operate in binary because electronic circuits naturally have two states: on (1) and off (0). Every program, image, and video on your device is ultimately represented as a sequence of binary digits. However, binary numbers become unwieldy for humans — the decimal number 255 is 11111111 in binary, which is hard to read and prone to errors.
Hexadecimal solves this problem by grouping binary digits into sets of four. Since 2^4 = 16, each hex digit (0–9, A–F) represents exactly four binary bits. This makes hex the preferred notation for memory addresses, color codes, and binary file formats. For example, web colors use #RRGGBB format where each pair is a hex byte (0–255). Our Color Converter can translate between hex colors and other formats.
Octal (base-8) was popular in early computing systems like the PDP-8 and IBM mainframes. Today, it lives on primarily in Unix file permissions, where chmod commands like 755 set read, write, and execute permissions for owner, group, and others.
Common Conversions Reference
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 8 | 1000 | 8 | 10 |
| 10 | 1010 | A | 12 |
| 16 | 10000 | 10 | 20 |
| 32 | 100000 | 20 | 40 |
| 64 | 1000000 | 40 | 100 |
| 100 | 1100100 | 64 | 144 |
| 128 | 10000000 | 80 | 200 |
| 255 | 11111111 | FF | 377 |
| 512 | 1000000000 | 200 | 1000 |
| 1024 | 10000000000 | 400 | 2000 |
Advertisement
External References
Explore more developer tools with our Color Converter for hex color codes.