Number Base Converter
Convert between Binary, Octal, Decimal, and Hexadecimal
No data is sent to any server — everything runs client-side
Type in any field — the others update in real-time. Supports large numbers via BigInt.
Understanding Number Bases
A number base (or radix) defines how many unique digits are used to represent numbers. We use base-10 (decimal) in everyday life because we have 10 fingers. Computers use base-2 (binary) because transistors have two states (on/off). Hexadecimal (base-16) is a convenient shorthand for binary — each hex digit maps to exactly 4 binary digits.
Quick Reference
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 2 | 10 | 2 | 2 |
| 4 | 100 | 4 | 4 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 15 | 1111 | 17 | F |
| 16 | 10000 | 20 | 10 |
| 32 | 100000 | 40 | 20 |
| 64 | 1000000 | 100 | 40 |
| 127 | 1111111 | 177 | 7F |
| 128 | 10000000 | 200 | 80 |
| 255 | 11111111 | 377 | FF |
| 256 | 100000000 | 400 | 100 |
When to Use
CSS Colors
Hex color codes (#FF5733) are base-16 RGB values. Convert to decimal to find the exact R/G/B values (255, 87, 51).
Bitwise Operations
Debug bit flags, permissions (chmod 755 = 111 101 101), and bitwise AND/OR/XOR operations by viewing values in binary.
Memory Addresses
Memory addresses and pointers are displayed in hex. Convert to decimal for offsets or binary for bit-level analysis.
Network & IP
Subnet masks (255.255.255.0 = 11111111.11111111.11111111.00000000), IPv6 addresses (hex), MAC addresses (hex).
Related Tools
Built by JDApplications