Binary/Hex/Decimal Converter
Convert numbers between binary, hexadecimal, decimal, and octal with real-time conversion and step-by-step explanations.
Enter a number in any base and instantly see the equivalent values in all other number systems. This tool provides bit visualisation, ASCII character display, and detailed conversion steps.
All processing happens in your browser - your data is never sent to our servers.
| Decimal | Binary | Octal | Hexadecimal | Description |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | Zero |
| 1 | 1 | 1 | 1 | One |
| 2 | 10 | 2 | 2 | Two |
| 7 | 111 | 7 | 7 | Max 3-bit value |
| 8 | 1000 | 10 | 8 | Octal base |
| 10 | 1010 | 12 | A | Decimal base |
| 15 | 1111 | 17 | F | Max 4-bit value (nibble) |
| 16 | 10000 | 20 | 10 | Hex base |
| 32 | 100000 | 40 | 20 | Space (ASCII) |
| 64 | 1000000 | 100 | 40 | @ (ASCII) |
| 127 | 1111111 | 177 | 7F | Max 7-bit value (ASCII) |
| 128 | 10000000 | 200 | 80 | 2^7 |
| 255 | 11111111 | 377 | FF | Max 8-bit value (byte) |
| 256 | 100000000 | 400 | 100 | 2^8 |
| 1024 | 10000000000 | 2000 | 400 | 1 Kilobyte |
| 65535 | 1111111111111111 | 177777 | FFFF | Max 16-bit value |
- Select the input base - Choose the number system of the value you want to convert (Binary, Octal, Decimal, or Hexadecimal).
- Enter your number - Type the number in the input field. The converter validates your input based on the selected base.
- View instant results - All conversions appear automatically as you type.
- Copy results - Click the copy button next to any result to copy it to your clipboard.
- Explore the details - View the bit visualisation, ASCII character (if applicable), and step-by-step conversion explanation.
Understanding Number Bases
Binary (Base 2)
Uses only 0 and 1. The foundation of all digital computing. Each digit represents a power of 2.
Octal (Base 8)
Uses digits 0-7. Historically used in computing as a compact binary representation (3 bits per digit).
Decimal (Base 10)
Uses digits 0-9. The standard number system used in everyday life.
Hexadecimal (Base 16)
Uses 0-9 and A-F. Widely used in programming for memory addresses, colour codes, and byte values.
- Base64 Encoder/Decoder Encode and decode Base64 strings
- Hash Generator Generate MD5, SHA-256 hashes
- JSON Formatter Format and validate JSON
- Colour Picker Pick colours with hex values
- Unit Converter Convert between units
Hex Digits
| A = 10 | B = 11 |
| C = 12 | D = 13 |
| E = 14 | F = 15 |
Powers of 2
| 2^4 = 16 | 2^8 = 256 |
| 2^10 = 1024 | 2^16 = 65536 |
Common Prefixes
0b- Binary (e.g., 0b1010)0o- Octal (e.g., 0o12)0x- Hex (e.g., 0xFF)
Hexadecimal is commonly used in web colour codes:
#FF0000 Red (255, 0, 0)
#00FF00 Green (0, 255, 0)
#0000FF Blue (0, 0, 255)
#FFFFFF White (255, 255, 255)