To convert a decimal number to octal, repeatedly divide the number by 8 and record the remainders. The octal number is obtained by reading the remainders from bottom to top.
Result: 17134₈
Result: 1726₈
Result: 12317₈
To convert a decimal number to hexadecimal, repeatedly divide the number by 16 and record the remainders. Replace remainders above 9 with their hexadecimal equivalents (A-F). The hexadecimal number is obtained by reading the remainders from bottom to top.
Result: 1E5C₁₆
Result: 3D6₁₆
Result: 14C7₁₆
To convert a decimal number to binary, repeatedly divide the number by 2 and record the remainders. The binary number is obtained by reading the remainders from bottom to top.
Result: 1100001101₂
Result: 11101011₂
Result: 10011001011101₂
Result: 1010011001111₂
To convert an octal number to decimal, multiply each digit by the corresponding power of 8 and sum the results.
Result: 2775₁₀
To convert a binary number to decimal, multiply each bit by the corresponding power of 2 and sum the results.
<table border="1">
<tr>
<th>Binary Digit</th>
<th>Power of 2</th>
<th>Value</th>
</tr>
<tr>
<td>1</td>
<td>2⁷ = 128</td>
<td>128</td>
</tr>
<tr>
<td>0</td>
<td>2⁶ = 64</td>
<td>0</td>
</tr>
<tr>
<td>1</td>
<td>2⁵ = 32</td>
<td>32</td>
</tr>
<tr>
<td>1</td>
<td>2⁴ = 16</td>
<td>16</td>
</tr>
<tr>
<td>0</td>
<td>2³ = 8</td>
<td>0</td>
</tr>
<tr>
<td>1</td>
<td>2² = 4</td>
<td>4</td>
</tr>
<tr>
<td>1</td>
<td>2¹ = 2</td>
<td>2</td>
</tr>
<tr>
<td>0</td>
<td>2⁰ = 1</td>
<td>0</td>
</tr>
</table>
Example: 10110110₂
Calculation: 128 + 0 + 32 + 16 + 0 + 4 + 2 + 0 = 182₁₀
| Conversion | Input | Output |
|---|---|---|
| 7772₁₀ → ₈ | 7772₁₀ | 17134₈ |
| 7772₁₀ → ₁₆ | 7772₁₀ | 1E5C₁₆ |
| 781₁₀ → ₂ | 781₁₀ | 1100001101₂ |
| 235₁₀ → ₂ | 235₁₀ | 11101011₂ |
| 9821₁₀ → ₂ | 9821₁₀ | 10011001011101₂ |
| 982₁₀ → ₈ | 982₁₀ | 1726₈ |
| 982₁₀ → ₁₆ | 982₁₀ | 3D6₁₆ |
| 5327₁₀ → ₂ | 5327₁₀ | 1010011001111₂ |
| 5327₁₀ → ₈ | 5327₁₀ | 12317₈ |
| 5327₁₀ → ₁₆ | 5327₁₀ | 14C7₁₆ |
| 5327₈ → ₁₀ | 5327₈ | 2775₁₀ |
| 7298₈ → ₁₀ | 7298₈ | 3792₁₀ |
| 10110110₂ → ₁₀ | 10110110₂ | 182₁₀ |
| A13F₁₆ → ₁₀ | A13F₁₆ | 41279₁₀ |
| B897A₁₆ → ₁₀ | B897A₁₆ | 756090₁₀ |
Mastering number base conversions is essential in computer programming and digital electronics. By understanding and applying systematic conversion methods, you can seamlessly navigate between decimal, binary, octal, and hexadecimal systems. Always ensure to follow the step-by-step processes to maintain accuracy and recognize any invalid inputs specific to each base.