Number Base Reference
| Base | Name | Digits | Used In |
|---|---|---|---|
| 2 | Binary | 0, 1 | Digital circuits, low-level programming |
| 8 | Octal | 0-7 | Unix file permissions |
| 10 | Decimal | 0-9 | Everyday numbers |
| 16 | Hexadecimal | 0-9, A-F | Colors, memory addresses, MAC addresses |
Convert between hexadecimal, decimal, binary, and octal number systems. Supports large numbers and negative values.
| Base | Name | Digits | Used In |
|---|---|---|---|
| 2 | Binary | 0, 1 | Digital circuits, low-level programming |
| 8 | Octal | 0-7 | Unix file permissions |
| 10 | Decimal | 0-9 | Everyday numbers |
| 16 | Hexadecimal | 0-9, A-F | Colors, memory addresses, MAC addresses |
Hex is compact — one hex digit represents exactly 4 bits. This makes it easy to read binary data. For example, 0xFF is much easier to read than 11111111.
Multiply each hex digit by 16 raised to its position (right to left, starting from 0). For example: 1A = 1×16¹ + 10×16⁰ = 16 + 10 = 26.
Try this related calculator.
Open →Try this related calculator.
Open →Try this related calculator.
Open →Enter a hexadecimal number (with or without 0x prefix). The calculator converts to decimal, binary, and octal.
Each hex position n (from right, starting at 0) contributes: digit_value × 16^n. Sum all positions for the decimal result.
Hex 2F = 2×16¹ + 15×16⁰ = 32 + 15 = 47. Hex BEEF = 11×4096 + 14×256 + 14×16 + 15 = 48,879.
Remember: A=10, B=11, C=12, D=13, E=14, F=15. For quick conversion of 2-digit hex: first digit × 16 + second digit. Hex is essential for web development, networking, and low-level programming.