Number Base Converter

Convert between binary, decimal, hexadecimal and other number bases

Convert numbers seamlessly between binary, decimal, hexadecimal, octal, and other number bases. Our number base converter is essential for programming, computer science, digital electronics, color codes, network addressing, and understanding how computers represent and process numerical data.

Result

1 bin = 1 oct

Results are provided for general informational purposes only. Always verify important calculations independently. Learn more

Popular Number Base Converter Conversions

Understanding Number Base Converter

Number base conversion is fundamental to computer science, programming, digital electronics, and understanding how computers represent and manipulate data. While humans naturally use decimal (base 10), computers operate using binary (base 2), and programmers frequently use hexadecimal (base 16) and octal (base 8) for compact representation of binary data. Whether you're debugging code, specifying colors in web design, configuring network addresses, working with file permissions, or studying computer architecture, converting between number bases helps you understand and communicate numerical data in the format most appropriate for each context.

Decimal (base 10) is the number system humans use daily, employing ten digits (0-9) with each position representing a power of 10. The number 365 means 3×10² + 6×10¹ + 5×10⁰ = 300 + 60 + 5. While intuitive for everyday arithmetic, decimal is inefficient for representing how computers actually work because computers use electrical signals with two states (on/off), naturally mapping to binary. Decimal remains essential as the human-readable interface to numerical data, and all other bases ultimately convert to decimal for human comprehension and arithmetic operations.

Binary (base 2) is the fundamental number system of computers, using only two digits (0 and 1) to represent all data. Each binary digit (bit) corresponds to an electrical state: 0 for off, 1 for on. The binary number 1010 means 1×2³ + 0×2² + 1×2¹ + 0×2⁰ = 8 + 0 + 2 + 0 = 10 in decimal. While binary perfectly represents computer hardware, long binary numbers become unwieldy for humans. Hexadecimal (base 16) provides a compact alternative, using digits 0-9 and letters A-F (representing 10-15), where each hex digit represents exactly four binary bits. The hex number 2F equals 47 decimal or 00101111 binary. Octal (base 8) uses digits 0-7 and was historically popular in computing; each octal digit represents three binary bits, but hex has largely replaced it in modern usage.

Number base conversions have critical applications across computing fields: web developers specify colors using hexadecimal codes (#FF5733 for red-orange); programmers debug code by examining binary flags and bit masks; network engineers configure IP addresses and subnet masks using binary and decimal; system administrators set file permissions using octal notation (chmod 755); computer science students learn binary arithmetic and logic gates; embedded systems programmers work with binary registers and memory addresses; and cybersecurity professionals analyze hexadecimal memory dumps. Whether you're designing a website, writing low-level code, configuring network settings, or studying computer architecture, understanding number base conversion bridges the gap between human-readable numbers and computer-internal representations.

Number Base Conversion

DEC to BIN

Formula: Convert to binary by dividing by 2

Example: 10 decimal = 1010 binary

HEX to DEC

Formula: Convert each hex digit

Example: FF hex = 255 decimal

Real-World Examples

Web Color Codes and Design

Web designers specify colors using hexadecimal RGB codes like #FF5733. This breaks down as Red=FF (255), Green=57 (87), Blue=33 (51). Each pair of hex digits represents color intensity from 00 (0, none) to FF (255, full). Converting hex to decimal helps understand color mixing: #FF0000 is pure red (255,0,0), #00FF00 is pure green (0,255,0), and #FFFFFF is white (255,255,255). Understanding these conversions helps designers fine-tune colors precisely.

#FF5733: FF(hex)=255(dec), 57(hex)=87(dec), 33(hex)=51(dec) = RGB(255,87,51)

File Permissions and Unix/Linux Systems

Unix/Linux file permissions use octal notation. The command "chmod 755 file.txt" sets permissions where 7 (owner: read+write+execute), 5 (group: read+execute), 5 (others: read+execute). Each octal digit converts to binary: 7=111 (rwx), 5=101 (r-x), 4=100 (r--). The binary bits represent read (4), write (2), and execute (1) permissions. Understanding octal-to-binary conversion is essential for managing Linux file security and access control.

755 octal: 7=111(rwx), 5=101(r-x), 5=101(r-x); 4+2+1=7, 4+0+1=5

Binary Arithmetic and Computer Science

Adding binary numbers works like decimal but carries at 2 instead of 10. Adding 1011 (11 decimal) + 0110 (6 decimal) = 10001 (17 decimal). Understanding binary arithmetic is fundamental to computer architecture, digital circuit design, and low-level programming. Binary addition, subtraction, and bitwise operations (AND, OR, XOR) form the basis of all computer calculations, from simple math to complex cryptographic algorithms.

1011(bin) + 0110(bin) = 10001(bin); 11(dec) + 6(dec) = 17(dec)

IP Address and Subnet Calculations

IP addresses like 192.168.1.100 convert to binary for subnet calculations. 192=11000000, 168=10101000, 1=00000001, 100=01100100. Combined: 11000000.10101000.00000001.01100100. Subnet masks like 255.255.255.0 become 11111111.11111111.11111111.00000000 in binary. Network engineers use these conversions to determine network ranges, calculate available hosts, and configure routers. Understanding decimal-to-binary conversion is essential for network administration and troubleshooting.

192.168.1.100 = 11000000.10101000.00000001.01100100 in binary

Quick Reference Conversion Table

FromTo
10 decimal1010 binary
255 decimalFF hex
16 decimal10 hex

Frequently Asked Questions