BIN2DEC Function

BIN2DEC Function

BIN2DEC Function

Convert binary text to decimal numbers in Excel. Useful when you want a normal numeric value from a bit pattern or status word.

ExcelClash Team
PUBLISHED

Summary

BIN2DEC converts binary text into a decimal number. If you have a string of 1s and 0s and want the regular base-10 value behind it, BIN2DEC does that translation.

This is useful when a worksheet stores low-level flags or status values in binary, but your analysis needs a normal number. Once you convert the value to decimal, it becomes much easier to compare, sort, filter, or use in other formulas.

Purpose

Convert binary to decimal

Turns base-2 text into a base-10 number.

Return value

Number

Returns a numeric value you can use in formulas right away.

Syntax

=BIN2DEC(number)

number is the binary value you want to convert.

You can type the binary value directly in quotes or point to a cell that already contains it. The result is a normal decimal number, so after the conversion you can use it in ordinary math, sorting, and comparisons.

Arguments

  • number - [required] A binary value up to 10 characters long.

The input must be a valid binary value made only of 0 and 1. Excel allows up to 10 characters here, and at that length the leftmost bit is treated as the sign bit. If the text is too long or contains invalid characters, Excel returns #NUM!.

BIN2DEC vs similar functions

BIN2DEC is the right choice when the result needs to become a normal numeric value:

Function What it does Typical use Result
BIN2DEC Converts binary to decimal Read bit patterns as normal numbers Number
DEC2BIN Converts decimal to binary Format a number as bits Binary text
HEX2DEC Converts hex to decimal Read a hex value as a number Number
OCT2DEC Converts octal to decimal Read an octal value as a number Number

Using BIN2DEC

The simplest use is converting a bit pattern into a number you can work with more easily. A value like 1011 is clear if you think in binary, but many reports and calculations are easier in decimal, so BIN2DEC gives you that decimal result right away.

There is one important limit. BIN2DEC supports binary values up to 10 characters. Within that format, Excel treats a 10-character value whose leftmost bit is 1 as a signed negative number. That is why 1111111111 returns -1 instead of a large positive result.

Shorter binary values do not use that same sign behavior in the same way. For example, 10000001 is only 8 characters, so Excel reads it as the positive decimal value 129. That difference is worth remembering when you work near the 10-bit boundary.

Example 1 - Convert 1011 to decimal

This example shows the core use of BIN2DEC. The binary text 1011 represents 8 + 2 + 1, so Excel returns the decimal value 11. It is the simplest case of taking a bit pattern and turning it into a number that can be sorted, compared, and reused in later formulas.

=BIN2DEC("1011") // Returns 11
Check Answer
Challenge #1
Target: Sheet1!F1
Basic Binary Conversion

Convert binary "1011" to decimal. Formula: =BIN2DEC("1011").

Example 2 - Read an 8-bit value

A full 8-bit string such as 11111111 is often easier to inspect in decimal once you no longer need to see each individual bit. BIN2DEC returns 255, which is useful when a binary flag field has to be reported as a normal integer or checked against numeric thresholds elsewhere in the sheet.

=BIN2DEC("11111111") // Returns 255
Check Answer
Challenge #2
Target: Sheet1!F2
8-Bit Flag Total

Convert 8-bit binary "11111111" to decimal. Formula: =BIN2DEC("11111111").

Example 3 - Decode a signed 10-bit value

This example matters because BIN2DEC treats 10-character binary inputs differently from shorter ones. The value 1111111111 is interpreted as a signed 10-bit number, so Excel returns -1 instead of a large positive result. That behavior is important whenever the worksheet stores signed engineering values in fixed-width binary form.

=BIN2DEC("1111111111") // Returns -1
Check Answer
Challenge #3
Target: Sheet1!F3
Negative Signed Link

Convert 10-bit binary "1111111111" (Signed -1) to decimal. Formula: =BIN2DEC("1111111111").

Example 4 - Convert 10000001

This binary value starts with 1, but it is only 8 characters long, so Excel does not apply the 10-bit signed interpretation. The result is the positive decimal value 129. That contrast with the previous example helps explain why input width is part of the meaning of the value, not just its appearance.

=BIN2DEC("10000001") // Returns 129
Check Answer
Challenge #4
Target: Sheet1!F4
Diagnostic Word Audit

Convert "10000001" to decimal. Formula: =BIN2DEC("10000001").

Quick recap

  • Converts binary to decimal: BIN2DEC returns a normal numeric value.
  • Supports up to 10 characters: That is the main size limit for this function.
  • 10-bit values can be signed: A 10-character binary value starting with 1 can return a negative result.
  • Shorter values can still be positive: An 8-bit value like 10000001 returns 129.
  • Useful for status and flag data: It helps when raw bits need to become readable numbers.
Tactical Arena
Select Scenario:
Share BIN2DEC Function!

Tell your friends about this post

Discussion

ExcelClash is an interactive platform designed to level up your Excel skills through real-world exercises and challenges. Sharpen your logic, solve real spreadsheet problems, and learn faster.

© 2026 ExcelClash, Inc. All rights reserved.