Binary to Decimal Converter

Binary to Decimal Converter is evaluated from Number to Convert and Convert From. The calculation reports Decimal, Binary and Hexadecimal.

Results

Thanks — we’ve logged this for review.

About the Binary to Decimal Converter

Binary to Decimal Converter is treated here as a quantitative relation between Number to Convert and Convert From and Decimal, Binary, Hexadecimal and Octal.

The calculator uses a multi formula configuration. Each reported value is read as a direct evaluation of the stored rules with the declared field formats and units.

Formula basis:
Binary to decimal: sum of (bit x 2^position) for each bit

Interpret the outputs in the order shown by the result fields. Optional inputs affect only the outputs that depend on those variables.

Formula & How It Works

The calculation applies the following relations exactly as recorded in the metadata:

Binary to decimal: sum of (bit x 2^position) for each bit

Each output field is produced by substituting the supplied inputs into the relevant relation and then applying the declared rounding or text format.

Worked Examples

Example 1: IPv4 Subnet Mask Conversion

Inputs

value: 11111111111111111111111100000000 from_base: binary (base 2)
Decimal: 4294967040. Binary: 11111111111111111111111100000000. Hexadecimal: FFFFFF00. Octal: 37777777400. Number of Bits: 32 bits

With Number to Convert = 11,111,111,111,111,111,957,551,335,342,080 and Convert From = binary (base 2) as the stated inputs, the result is Decimal = 4294967040, Binary = 11111111111111111111111100000000 and Hexadecimal = FFFFFF00. Each value corresponds to the declared output fields.

Example 2: Decimal 255 — Maximum Byte Value

Inputs

value: 255 from_base: decimal (base 10)
Decimal: 0. Binary: 0. Hexadecimal: 0. Octal: 0. Number of Bits: 1 bits

With Number to Convert = 255 and Convert From = decimal (base 10) as the stated inputs, the result is Decimal = 0, Binary = 0 and Hexadecimal = 0. Each value corresponds to the declared output fields.

Example 3: ASCII 'A' Character Code

Inputs

value: 65 from_base: decimal (base 10)
Decimal: 0. Binary: 0. Hexadecimal: 0. Octal: 0. Number of Bits: 1 bits

With Number to Convert = 65 and Convert From = decimal (base 10) as the stated inputs, the result is Decimal = 0, Binary = 0 and Hexadecimal = 0. Each value corresponds to the declared output fields.

Example 4: Computer Memory — 1 KB

Inputs

value: 1024 from_base: decimal (base 10)
Decimal: 2. Binary: 10. Hexadecimal: 2. Octal: 2. Number of Bits: 2 bits

With Number to Convert = 1,024 and Convert From = decimal (base 10) as the stated inputs, the result is Decimal = 2, Binary = 10 and Hexadecimal = 2. Each value corresponds to the declared output fields.

Common Use Cases

  • Convert binary machine code to decimal
  • Understand IP address subnet masks
  • Learn number systems for computer science
  • Convert decimal to binary for programming