Skip to content

Number Base Converter

Convert numbers between binary, octal, decimal, hexadecimal and base 36 — with bit widths, two's complement and byte breakdowns.

Number base converter

Updates as you type
Source base
Interpret input as ?
Value
Number ? 0–9
DEC
Presets
Bit width (binary padding & two’s complement)
Width ? auto
Signed mode ?
Display (optional)
Digit grouping ?
Hex case

Formula

To decimal — positional sum
N = di · bi

Each digit di at position i (counted from the right, starting at 0) contributes di × bi, where b is the source base.

From decimal — divide by the target base
  1. Divide the decimal value by the target base.
  2. Record the remainder as the next digit (right-to-left).
  3. Replace the value with the quotient.
  4. Repeat until the quotient is 0.
Worked example — your input
Source: (base ) → decimal
Positional expansion
Divide-by-base table (target base 16)
Step Value ÷ base Remainder Digit
Reading digits bottom-up →
Powers of 2
201
2416
28256
2101.024
21665.536
2324.294.967.296
Hex digits
A101010
B111011
C121100
D131101
E141110
F151111