Skip to content
Embed

Paste this on your site. The attribution link is required and is what makes embedding free.

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

11111111

Base 10 → Base 2

Conversion Steps

Convert 255 (decimal) to base 2: 11111111

All Common Bases

Base 2:11111111
Base 8:377
Base 10:255
Base 16:FF
Base 32:7V
Base 36:73

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

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):

  1. Convert each hex digit to decimal: 1=1, A=10, 3=3
  2. Calculate decimal value: 1 × 16^2 + 10 × 16^1 + 3 × 16^0 = 256 + 160 + 3 = 419
  3. 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
  4. 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

Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.

Last updated: November 3, 2026