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

Example: 11111111 = 255 in decimal

Octal (Base 8)

Uses digits: 0-7

Example: 377 = 255 in decimal

Decimal (Base 10)

Uses digits: 0-9

Example: 255 (standard number system)

Hexadecimal (Base 16)

Uses: 0-9, A-F

Example: FF = 255 in decimal

Quick Reference Table

DecimalBinaryOctalHexadecimal
0000
1111
21022
31133
410044
510155
611066
711177
81000108
91001119
10101012A
15111117F
16100002010
3111111371F
321000004020
63111111773F
64100000010040
12711111111777F
1281000000020080
25511111111377FF

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