Base Converter
Synchronously convert numbers between Binary (Base 2), Decimal (Base 10), Hexadecimal (Base 16), Octal (Base 8), and arbitrary radix bases from 2 to 36 with step-by-step polynomial decompositions.
Synchronous Multi-Base Inputs
Step-by-Step Binary to Decimal Bit Expansion Proof
Base Radix Conversion Definition & Formulas
A positional numeral base (radix b) represents quantities as polynomial sums of powers of b. Converting from base b to decimal uses polynomial expansion, while converting from decimal to base b uses successive Euclidean integer division with remainders.
Positional Radix Number Systems & Polynomial Expansion
In any positional number system with radix $b \ge 2$, an $n$-digit integer $(d_{n-1} d_{n-2} \dots d_1 d_0)_b$ represents the exact mathematical sum:
Where each digit $d_i \in \{0, 1, \dots, b-1\}$.
The Core Computer Science Bases (Binary, Octal, Decimal & Hex)
Binary (Base 2)
Uses digits $\{0, 1\}$. Represents the physical on/off states of silicon transistors. The fundamental language of modern digital computing.
Hexadecimal (Base 16)
Uses digits $\{0\text{–}9, \text{A}\text{–}\text{F}\}$. Exactly packs 4 binary bits per hex character, standard for memory addresses, UUIDs, and CSS colors.
Successive Division & Remainder Conversion Algorithm
To convert a decimal integer $N$ into target base $b$:
Direct Bit Grouping (Octal 3-Bit & Hex 4-Bit Nibble Tables)
| Decimal | Binary (4-bit Nibble) | Octal (Base 8) | Hex (Base 16) |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 5 | 0101 | 5 | 5 |
| 10 | 1010 | 12 | A |
| 15 | 1111 | 17 | F |
Step-by-Step Worked Multi-Base Solutions
Convert Decimal 43 into Binary (Base 2).
1. $43 \div 2 = 21$ remainder $1$
2. $21 \div 2 = 10$ remainder $1$
3. $10 \div 2 = 5$ remainder $0$
4. $5 \div 2 = 2$ remainder $1$
5. $2 \div 2 = 1$ remainder $0$
6. $1 \div 2 = 0$ remainder $1$
Read remainders from bottom to top: 43₁₀ = 101011₂.
Common Pitfalls & Overflow in Fixed-Bit Registers
Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.
Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.