Number Base Converter
Binary, Octal, Decimal, Hexadecimal Converter
A free online tool to convert between binary, octal, decimal, and hexadecimal in real time. Supports large numbers with BigInt, features a bit display and ASCII reference table -- perfect for programming and computer science learning.
Decimal
No prefix
Decimal only accepts digits 0-9
Binary
0b
Binary only accepts 0 and 1
Octal
0o
Octal only accepts digits 0-7
Hexadecimal
0x
Hexadecimal only accepts 0-9 and A-F
Bit Display
Number Base Conversion Reference
| Decimal | Binary | Octal | Hex |
|---|
| 2^n | Decimal | Hex | Common Usage |
|---|---|---|---|
| 2^0 | 1 | 1 | - |
| 2^1 | 2 | 2 | - |
| 2^2 | 4 | 4 | - |
| 2^3 | 8 | 8 | - |
| 2^4 | 16 | 10 | 1 hex digit |
| 2^7 | 128 | 80 | ASCII range |
| 2^8 | 256 | 100 | 1 byte |
| 2^10 | 1,024 | 400 | 1 KB |
| 2^16 | 65,536 | 10000 | Max port number |
| 2^20 | 1,048,576 | 100000 | 1 MB |
| 2^24 | 16,777,216 | 1000000 | RGB color |
| 2^32 | 4,294,967,296 | 100000000 | IPv4 address space |
| Decimal | Hex | Char | Description |
|---|