💻

Number Base Converter

Convert any integer between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Essential for computer science students, programmers, and electronics engineers. Enter a number in any base and get all four representations instantly.

Frequently Asked Questions

How do you convert decimal to binary?+

Divide the decimal number by 2 repeatedly, noting remainders. Read remainders bottom to top. Example: 13 ÷ 2 = 6 r1, 6 ÷ 2 = 3 r0, 3 ÷ 2 = 1 r1, 1 ÷ 2 = 0 r1. Reading remainders upward: 1101. So 13 in decimal = 1101 in binary.

What is hexadecimal used for?+

Hexadecimal is used extensively in computing because one hex digit = exactly 4 binary bits. This makes hex a compact way to represent binary data. Uses: memory addresses, color codes (#FF5733 in CSS), machine code, network MAC addresses, and cryptographic hashes.

What is the relationship between binary and octal?+

Every octal digit represents exactly 3 binary bits. Group binary digits from right in sets of 3: 1011010 = 1|011|010 = 1|3|2 in octal = 132. Similarly, hex uses groups of 4 binary bits.