Number Base Converter
Free online Number Base Converter.
Calculator
How to Use
- Enter the number you want to convert in the source base field
- Select the source base (binary, octal, decimal, or hexadecimal)
- Select the target base for the conversion result
- View the converted number with step-by-step positional value breakdown
Formula
Decimal to Binary: repeatedly divide by 2, record remainders\nBinary to Decimal: sum of d_i x 2^i for each bit position\nHex to Decimal: sum of d_i x 16^i\nGeneral: value = sum(d_i x base^i) for each digit position i
Example Calculations
Decimal to binary
Input: Decimal: 42
Result: Binary: 101010
Hex to decimal
Input: Hex: FF
Result: Decimal: 255
About This Calculator
Convert between binary, octal, decimal, and hexadecimal number systems. Free number base converter with step-by-step division and positional notation shown.
Our number base converter is free, easy to use, and provides instant results. All calculations are performed in your browser for privacy and speed.
Related Calculators
Frequently Asked Questions
How do you convert decimal 255 to binary?
Divide by 2 repeatedly, recording remainders: 255=127R1, 127=63R1, 63=31R1, 31=15R1, 15=7R1, 7=3R1, 3=1R1, 1=0R1. Read up: 11111111.
What is hexadecimal used for?
Programming for memory addresses, color codes (#FF0000=red), and compact binary representation. Each hex digit represents 4 binary bits.
How do you convert binary 10110 to decimal?
Positions right to left: 0x1+1x2+1x4+0x8+1x16 = 0+2+4+0+16 = 22.
Why do computers use binary?
Transistors have two states (on/off), making binary natural. Distinguishing two voltage levels is more reliable than many.