Number Base Converter
Convert between Binary, Octal, Decimal, and Hexadecimal
Valid characters: 0123456789
Quick Examples
| Decimal | Binary | Hexadecimal | Octal | |
|---|---|---|---|---|
| 255 | 11111111 | FF | 377 | |
| 42 | 101010 | 2A | 52 | |
| 128 | 10000000 | 80 | 200 | |
| 1024 | 10000000000 | 400 | 2000 |
Number Systems
- Binary (Base 2): Uses 0 and 1. Used in computing.
- Octal (Base 8): Uses 0-7. Used in Unix permissions.
- Decimal (Base 10): Uses 0-9. Standard number system.
- Hexadecimal (Base 16): Uses 0-9 and A-F. Used for colors and memory addresses.
Common Uses
- Colors: #FF0000 = rgb(255, 0, 0) = Red
- Permissions: 755 (octal) = rwxr-xr-x
- Memory: 0x7FFF = 32767 bytes
- Bit flags: 0b1010 = features 2 and 4 enabled