Base-N Number Converter
Convert numbers between any bases (binary, octal, decimal, hex). Free online base converter.
The Base-N Number Converter transforms numbers between any numerical bases from 2 to 36. Convert between binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16), or any other base. Essential for computer science, digital electronics, and understanding number representation systems.
Base-N Number Converter
Formula: Value = Σ digitᵢ × baseⁱ; convert out by repeated division by the target base
Worked example
- 255 ÷ 2 = 127 remainder 1
- 127 ÷ 2 = 63 remainder 1
- 63 ÷ 2 = 31 remainder 1
- 31 ÷ 2 = 15 remainder 1
- 15 ÷ 2 = 7 remainder 1
- 7 ÷ 2 = 3 remainder 1
- 3 ÷ 2 = 1 remainder 1
- 1 ÷ 2 = 0 remainder 1
- Read the remainders from bottom to top.
Replace these values in the calculator above to compute your own numbers.
Common use cases
- Programming and debugging
- Digital electronics design
- Computer science education
- Hexadecimal color codes
- IP address manipulation
How to use
- Enter the number to convert
- Select the source base (2-36)
- Select the target base (2-36)
- Click convert for the result
- See conversions to common bases
FAQ
What are common number bases?
Binary (2): computers. Octal (8): Unix permissions. Decimal (10): everyday. Hexadecimal (16): colors, memory addresses.
How do bases above 10 work?
Letters represent values: A=10, B=11, ..., Z=35. So base 16 uses 0-9 and A-F.
How do I convert decimal to binary?
Repeatedly divide by 2 and record remainders. Read remainders backward. 13 = 1101 in binary.
Why is hexadecimal used in computing?
Each hex digit represents exactly 4 binary digits, making it a compact way to write binary values.
Related tools
- Scientific Notation ConverterConvert between standard and scientific notation. Free online scientific notation calculator.
- Roman Numeral ConverterConvert between Roman numerals and decimal numbers. Free online Roman numeral converter.
- Molar Mass CalculatorCalculate molar mass of chemical compounds. Free online molecular weight calculator.
- Geometric Sequence CalculatorCalculate geometric sequence terms and sums. Free online geometric progression calculator.
- Gas Law CalculatorCalculate gas properties using PV=nRT. Free online ideal gas law calculator.
- HEX to BinaryIn Utilities
- Binary to HEXIn Utilities
- Text to BinaryIn Utilities