Base Converter — Free Online Number Base Converter
Convert numbers between binary, octal, decimal, hexadecimal, and any custom base from 2 to 36 with instant results and step-by-step explanations.
Result
Base 10 → Base 2
Conversion Steps
Convert 255 (decimal) to base 2: 11111111
All Common Bases
Base Conversion Reference Table
| Decimal | Binary | Octal | Hexadecimal |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 16 | 10000 | 20 | 10 |
| 100 | 1100100 | 144 | 64 |
| 255 | 11111111 | 377 | FF |
| 1024 | 10000000000 | 2000 | 400 |
Related Calculators
Scientific Notation Calculator
Convert numbers to and from scientific notation with arithmetic operations.
Roman Numeral Converter
Convert between Roman numerals and decimal numbers with step-by-step breakdown.
Number to Words Converter
Convert any number into English words with ordinal support.
Percentage Calculator
Calculate percentages instantly with five different operation modes.
Scientific Calculator
Advanced calculations with trigonometry, logarithms, and scientific functions.
Ohm's Law Calculator
Calculate voltage, current, resistance, and power in electrical circuits.
About this calculator
Base Conversion Formulas
Any Base to Decimal
Value = d_n × b^n + d_(n-1) × b^(n-1) + ... + d_0 × b^0 Decimal to Any Base
Repeatedly divide by target base, record remainders in reverse Any Base to Any Base
Step 1: Convert to decimal | Step 2: Convert decimal to target Variables Explained
- b (Base/Radix): The number of unique digits in the number system. Decimal has base 10, binary has base 2, and hexadecimal has base 16. The base determines the positional value of each digit.
- d (Digit): Each position in a number holds a digit value from 0 to (base - 1). In hexadecimal, digits include 0-9 and A-F (where A=10 through F=15). In base 36, digits extend through Z=35.
- n (Position): The position of each digit, counted from right to left starting at 0. The rightmost digit is at position 0, the next at position 1, and so on. Each position represents b^n in value.
Step-by-Step Example
Convert 1A3 from hexadecimal (base 16) to binary (base 2):
- Convert each hex digit to decimal: 1=1, A=10, 3=3
- Calculate decimal value: 1 × 16^2 + 10 × 16^1 + 3 × 16^0 = 256 + 160 + 3 = 419
- Convert 419 to binary by repeated division: 419/2=209 r1, 209/2=104 r1, 104/2=52 r0, 52/2=26 r0, 26/2=13 r0, 13/2=6 r1, 6/2=3 r0, 3/2=1 r1, 1/2=0 r1
- Read remainders from bottom to top: 110100011
Alternatively, you can convert each hex digit directly to its 4-bit binary equivalent: 1=0001, A=1010, 3=0011, giving 000110100011 or 110100011 without leading zeros. This shortcut works because 16 is a power of 2.
Sources
- Khan Academy — Number Systems: khanacademy.org
- NIST — Digital Computing Standards: nist.gov
- Mozilla Developer Network — CSS Color Values: developer.mozilla.org
Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.
Last updated: November 3, 2026