Binary, Decimal and Hex Converter – Any Base From 2 to 36

Convert a number between binary, octal, decimal, hexadecimal and any base from 2 to 36, with the place-value expansion and bitwise views shown.

Free & Instant•Version: v1.0•Formula, examples and assumptions

Calculator InputsFormula v1.0

Use digits and letters A–Z for values ten and above.

Calculated Output

Value = Σ digitᵢ × baseⁱ; the same value is then re-expressed by repeated division by the target base

Value in base 2

11111101010
Decimal2026
Binary11111101010
Octal3752
Hexadecimal7EA
Base 361KA
16-bit binary with nibbles grouped0000 0111 1110 1010
Bits set to 18
Bytes needed for the unsigned value2
As a hexadecimal colour code#0007EA
Place-value expansion6 × 10^0 = 6 + 2 × 10^1 = 20 + 2 × 10^3 = 2000

• Whole numbers only: any fractional part of the input is truncated. The value is treated as unsigned, so two's-complement negatives are not produced.

Instant Browser CalculationNo Server Logging

Step-by-Step Mathematical Working

Read the input 2026 in base 10, multiplying each digit by a power of 10.
Expansion: 6 × 10^0 = 6 + 2 × 10^1 = 20 + 2 × 10^3 = 2000 = 2026.
Convert 2026 to base 2 by repeated division: 11111101010.
The same value in binary is 11111101010, which is 8 set bits.

Formula and method

Value = Σ digitᵢ × baseⁱ; the same value is then re-expressed by repeated division by the target base

Every base writes the same value with a different set of place values: base 2 uses powers of two, base 16 powers of sixteen. Hexadecimal is popular in computing because each hex digit maps cleanly to four binary bits.

Variables

Source base
The base of the number you are entering, from 2 to 36
Value
The digits as typed, using A–Z for values ten and above
Target base
The base you want the result in

Worked example

Decimal 2026 is 11111101010 in binary, 7EA in hexadecimal and 3752 in octal. Hexadecimal 0xFF is 255, and binary 1011 0101 is 181.

Who this calculator is for

Developers reading memory addresses and bitmasks, students learning place value, and anyone decoding colour codes or hardware registers.

Complete guide to the binary, decimal and hex converter – any base from 2 to 36

Every figure below comes from this calculator itself. The method is Value = Σ digitᵢ × baseⁱ; the same value is then re-expressed by repeated division by the target base, applied to the tool's default inputs and then stress-tested one input at a time.

What the Binary, Decimal and Hex Converter – Any Base From 2 to 36 works out

Binary, Decimal and Hex Converter – Any Base From 2 to 36 answers one specific question: Convert a number between binary, octal, decimal, hexadecimal and any base from 2 to 36, with the place-value expansion and bitwise views shown. It is written for developers reading memory addresses and bitmasks, students learning place value, and anyone decoding colour codes or hardware registers.

The method is Value = Σ digitᵢ × baseⁱ; the same value is then re-expressed by repeated division by the target base. The inputs are Source base, Target base, Number to convert. With the default values - Source base = 10, Target base = 2, Number to convert = 2026 - the result is Value in base 2: 11111101010.

Reading the output line by line

Alongside 11111101010 this method reports 10 supporting quantities: Decimal: 2026; Binary: 11111101010; Octal: 3752; Hexadecimal: 7EA. Conversion results carry the reverse direction and the exact factor alongside the answer, which is how you check the arithmetic rather than trust it.

The arithmetic as executed: Read the input 2026 in base 10, multiplying each digit by a power of 10. Expansion: 6 × 10^0 = 6 + 2 × 10^1 = 20 + 2 × 10^3 = 2000 = 2026. Convert 2026 to base 2 by repeated division: 11111101010. The same value in binary is 11111101010, which is 8 set bits. Reproduce the steps once by hand; if your numbers match, the model and your inputs are consistent.

How to interpret the answer

Every base writes the same value with a different set of place values: base 2 uses powers of two, base 16 powers of sixteen. Hexadecimal is popular in computing because each hex digit maps cleanly to four binary bits.

In this case 11111101010 together with decimal of 2026 is a single scenario, not a forecast range. Move the input you are least sure of, and watch the two figures change in step.

Common mistakes to avoid

Reading 1010 in base 2 as one thousand and ten. Losing leading zeros in binary, which changes the byte width even though the value is the same. Using lowercase letters inconsistently when a system requires uppercase. Assuming a bit pattern starting with 1 is negative: two's-complement interpretation depends on the register width.

Read the inputs back once before trusting the figure: Source base, Target base, Number to convert and confirm each entry matches its label, including whether a quantity is entered in the unit the label names. Test one alternative scenario so you can see how sensitive the answer really is.

Limitations and responsible use

Handles whole numbers only; fractional parts are truncated. Treats the value as unsigned, so it does not produce two's-complement negatives.

The figures above hold within those limits and not outside them. The formula, the substitution and the units are all printed so you can check the arithmetic yourself; whether the inputs describe your real situation is something only you can confirm. For a consequential decision, confirm the current figure independently, because published values change between editions.

Frequently asked questions

How do I convert hex to decimal?

Multiply each digit by 16 to the power of its position from the right, then add: 0x2A = 2 × 16 + 10 = 42.

Why is hexadecimal used in computing?

Each hex digit is exactly four binary bits, so 8 hex digits describe a 32-bit value compactly and unambiguously.

What is 1111 1111 in decimal?

255, which is the largest value an 8-bit unsigned byte can hold.

Related searches for this calculator

People also look for binary converter, hex to decimal, decimal to binary, binary to decimal calculator and base converter. Everything on this page is calculated in your browser from the formula shown above.

Related Conversion Calculators

Explore another calculator in this subject.