Number Base Converter
Convert numbers between different bases (binary, octal, decimal, hexadecimal).
Quick Reference
| Decimal | Binary | Hex |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 1 | 1 |
| 2 | 10 | 2 |
| 4 | 100 | 4 |
| 8 | 1000 | 8 |
| 10 | 1010 | A |
| 15 | 1111 | F |
| 16 | 10000 | 10 |
| 32 | 100000 | 20 |
| 64 | 1000000 | 40 |
| 128 | 10000000 | 80 |
| 255 | 11111111 | FF |
About Number Bases
Different number bases are used in computing for various purposes. Understanding these bases is essential for programming, especially for low-level operations, bitwise manipulation, and debugging.
Common Number Bases
- Binary (Base 2) - Uses 0 and 1, fundamental to computing
- Octal (Base 8) - Uses 0-7, used in Unix file permissions
- Decimal (Base 10) - Standard human counting system
- Hexadecimal (Base 16) - Uses 0-9 and A-F, common in programming
Common Uses
- Memory addresses (hex)
- Color codes (#RRGGBB)
- File permissions (octal)
- Bitwise operations (binary)