Number Base Converter
Convert between Binary, Octal, Decimal, and Hexadecimal
Instant conversion between different number systems. Perfect for programmers, students, and anyone working with computer science.
Binary (Base 2)
Uses digits: 0, 1
Octal (Base 8)
Uses digits: 0-7
Decimal (Base 10)
Uses digits: 0-9
Hexadecimal (Base 16)
Uses: 0-9, A-F
Quick Reference Table
| Decimal | Binary | Octal | Hexadecimal |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 2 | 10 | 2 | 2 |
| 3 | 11 | 3 | 3 |
| 4 | 100 | 4 | 4 |
| 5 | 101 | 5 | 5 |
| 6 | 110 | 6 | 6 |
| 7 | 111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 15 | 1111 | 17 | F |
| 16 | 10000 | 20 | 10 |
| 31 | 11111 | 37 | 1F |
| 32 | 100000 | 40 | 20 |
| 63 | 111111 | 77 | 3F |
| 64 | 1000000 | 100 | 40 |
| 127 | 1111111 | 177 | 7F |
| 128 | 10000000 | 200 | 80 |
| 255 | 11111111 | 377 | FF |
Number Systems Explained
Binary (Base 2)
Fundamental to all digital electronics. Each digit represents a power of 2. Used in computer memory, processors, and digital logic.
Octal (Base 8)
Historical importance in computing. Each octal digit represents 3 binary digits. Still used in Unix file permissions.
Decimal (Base 10)
The standard number system we use daily. Based on powers of 10. Most intuitive for human understanding.
Hexadecimal (Base 16)
Compact representation of binary. Each hex digit = 4 binary digits. Widely used for colors, memory addresses, and debugging.
Common Use Cases
- 🔢 Programming: Convert between bases for bitwise operations and debugging
- 🎨 Web Design: Convert hex color codes to RGB decimal values
- 💾 Memory Addresses: Read hexadecimal memory addresses in decimal
- 🔐 File Permissions: Understand Unix octal permission values
- 🎓 Learning: Computer science education and understanding low-level programming
- ⚙️ Hardware: Configure embedded systems and microcontrollers
Related Tools
Explore more tools that might help you
SQL Formatter
Format and beautify SQL queries
JSON to CSV
Convert JSON to CSV format
JSON Formatter
Format and validate JSON data
Base64 Encoder
Encode/decode Base64 strings
HTML Entities
Encode/decode HTML entities
YAML to JSON
Convert YAML to JSON