Number Systems Converter
Convert numbers between binary, octal, decimal, hexadecimal, and any custom base from 2 to 36 in real time.
How to Convert Between Number Systems
- Enter the number you want to convert in the input field.
- Select the base of your input (e.g., decimal, binary, hexadecimal, or custom).
- The calculator instantly shows the equivalent in all common bases.
- Use the custom base field to convert to any base from 2 to 36.
クイックリファレンス
| 変換元 | 変換先 |
|---|---|
| 2 + 3 | 5 |
| 12 × 12 | 144 |
| √144 | 12 |
| 2¹⁰ | 1,024 |
| π | 3.14159 |
| e | 2.71828 |
使用例
- •Programming — convert a decimal color value to hexadecimal for CSS styling.
- •Computer science class — translate binary machine code to decimal for debugging.
- •Embedded systems — convert between octal permission codes and decimal in Unix.
計算式
To convert from base b to decimal: multiply each digit by b raised to the power of its position (from right, starting at 0) and sum. To convert from decimal to base b: repeatedly divide by b and collect remainders.
よくある質問
What are the most common number systems?
Binary (base 2) is used by computers, octal (base 8) was common in early computing, decimal (base 10) is everyday counting, and hexadecimal (base 16) is widely used in programming for memory addresses and colors.
How do I convert binary to decimal?
Multiply each binary digit by 2 raised to its position power (right to left, starting at 0) and sum. For example, 1101₂ = 1×8 + 1×4 + 0×2 + 1×1 = 13.
What digits are used in hexadecimal?
Hexadecimal uses digits 0–9 for values 0–9 and letters A–F for values 10–15. For example, FF in hex equals 255 in decimal.