Everyday counting uses decimal, or base ten, with the digits 0 through 9. Digital systems commonly represent information using binary, or base two, with just 0 and 1. The difference is not that binary numbers follow different arithmetic rules; the difference is how place values are grouped. A digit’s position tells you which power of the base it represents.
This guide focuses on ordinary unsigned whole numbers first, then looks at binary fractions, fixed-width values, and common interpretation mistakes. A bit string by itself is only a pattern. Its meaning can depend on whether it is read as a number, a character code, a signed value, or part of another data format. Knowing the conversion is useful, but knowing the context is just as important.
Place value in base ten
Consider the decimal number 472. Its digits mean 4 hundreds, 7 tens, and 2 ones: 4 × 100 + 7 × 10 + 2 × 1. Those place values are powers of ten, from right to left: 10⁰ = 1, 10¹ = 10, and 10² = 100. The notation is compact because the position carries information about the magnitude of each digit.
Decimal has ten possible digits because each position counts from 0 to 9 before carrying one into the next position. After 9 comes 10: the ones position returns to 0 and the tens position increases by one. This same carrying idea applies in any base. The allowed digits change, and the place values use powers of that base, but the structure remains familiar.
When reading a number, it can help to expand it into a sum of digit times place value. This expansion makes the system visible and gives a direct route for converting to another base. It also helps distinguish the value of a digit from its position: the digit 4 means four units of whichever place it occupies, not always four ones.
Place value in base two
Binary uses powers of two. From right to left, the first places are 2⁰ = 1, 2¹ = 2, 2² = 4, 2³ = 8, 2⁴ = 16, and 2⁵ = 32. A binary digit can only be 0 or 1, so a place either contributes its full value or contributes nothing. This is the basic reason binary is a natural fit for systems that represent two distinguishable states.
The binary string 1011₂ expands as 1 × 8 + 0 × 4 + 1 × 2 + 1 × 1. Add the selected place values: 8 + 2 + 1 = 11, so 1011₂ = 11₁₀. The small subscript identifies the base. In ordinary writing people often omit it when the context is obvious, but including it prevents confusion when discussing several number systems together.
Do not read 1011₂ as “one thousand eleven.” It is a sequence of four binary digits whose places have values 8, 4, 2, and 1. A leading zero does not change the value: 001011₂ also equals eleven. It may still matter in a digital representation because the number of bits can be part of a defined format.
Convert binary whole numbers to decimal
To convert a binary whole number, label the rightmost digit with 2⁰, then count upward by powers of two as you move left. Multiply each bit by its place value and add the results. For 11001₂, the places from left to right are 16, 8, 4, 2, and 1. The expansion is 1 × 16 + 1 × 8 + 0 × 4 + 0 × 2 + 1 × 1 = 25.
A useful shortcut is to add only the place values where the bit is 1. For 11001, select 16, 8, and 1; their sum is 25. Zeros still matter because they mark which positions are skipped. If you drop a zero and shift the remaining digits, you change the selected place values and therefore the number.
Try 100101₂. The place values are 32, 16, 8, 4, 2, and 1. The 1 bits select 32, 4, and 1, giving 37. The zeros in the 16, 8, and 2 places contribute nothing. A clear written column is especially helpful for longer strings, where it is easy to miscount a position when moving from right to left.
Worked example: convert 101101₂
Write the place values under the digits: 1 0 1 1 0 1 above 32 16 8 4 2 1. Multiply and add: 32 + 0 + 8 + 4 + 0 + 1 = 45. Therefore, 101101₂ = 45₁₀. Check by counting upward from a nearby power: 101000₂ is 40, and the remaining 101₂ is 5, so the total is 45.
The two methods check each other. The place-value expansion is systematic; the nearby-power split gives a quick independent sense check. If your result were 53, inspect whether you added the 8-bit place twice or misread a zero. A check is most useful when it uses a different path from the original calculation.
Convert decimal whole numbers to binary
One method repeatedly divides by two and records each remainder. Divide the decimal number by 2, note whether the remainder is 0 or 1, then divide the quotient by 2 again. Continue until the quotient is zero. Read the remainders from bottom to top, or in reverse order of production; that sequence is the binary number.
For 13: 13 ÷ 2 gives quotient 6 remainder 1; 6 ÷ 2 gives 3 remainder 0; 3 ÷ 2 gives 1 remainder 1; 1 ÷ 2 gives 0 remainder 1. Read the remainders upward from the last division: 1101₂. Check its value: 8 + 4 + 0 + 1 = 13.
Why reverse the remainders? The first remainder describes the rightmost place, the 2⁰ position. The next describes the 2¹ place, and so on. Recording the remainders in the order you find them writes the number backward relative to its usual left-to-right notation. A small arrow or a column labelled “read upward” helps avoid this common mistake.
A second route: subtract powers of two
You can also build a binary number by finding the largest power of two that fits, subtracting it, and continuing. To represent 45, the largest power not exceeding it is 32. Subtract to leave 13. The next power is 8, leaving 5; then 4 leaves 1; then 1 leaves 0. The selected places are 32, 8, 4, and 1, which makes the bits 101101₂.
Include zeroes for powers you skip. For 45, the ordered places are 32, 16, 8, 4, 2, 1. The number uses 32, not 16, uses 8 and 4, not 2, and uses 1. That pattern is 1 0 1 1 0 1. Omitting the skipped place values would produce a shorter and different binary string.
This subtraction method can be intuitive for small numbers and helps connect binary to powers of two. Repeated division is often easier to apply mechanically, especially to larger inputs. Use whichever procedure you can perform carefully, then check by converting the result back to decimal.
Count in binary
Binary counting follows the same carry principle as decimal, but a position has only two digits. Starting from zero, the sequence is 0, 1, 10, 11, 100, 101, 110, 111, 1000. After 1, the next position is needed, just as decimal needs a new place after 9. In binary, 10₂ means two in decimal, not ten.
Watching the rightmost bits change can reveal a pattern. The least significant bit alternates 0 and 1 each time. The next bit stays for two numbers, then changes; the next for four; the next for eight. This mirrors place values: each bit position changes at intervals set by its power of two. It is also why powers of two are useful for thinking about bit widths and combinations.
With n binary digits, there are 2ⁿ possible patterns, because each of the n positions has two choices. Four bits allow 2⁴ = 16 patterns, from 0000 through 1111. If all patterns represent unsigned integers, those values range from 0 to 15. The count of patterns is not the same as the highest value: zero is one of the patterns.
Binary fractions and the point
Places to the right of a binary point use negative powers of two: 2⁻¹ = one-half, 2⁻² = one-quarter, 2⁻³ = one-eighth, and so on. Thus 0.101₂ means 1 × 1/2 + 0 × 1/4 + 1 × 1/8 = 5/8 = 0.625 in decimal. The binary point plays a role like the decimal point, but the fractional place values are halves, quarters, eighths, and further powers of one-half.
A mixed number such as 10.11₂ has an integer part and a fractional part. The integer 10₂ is 2. The fraction .11₂ is 1/2 + 1/4 = 0.75. Together the value is 2.75 in decimal. Convert the two parts separately and then combine them; this reduces the chance of assigning an integer place to a fractional bit.
Not every decimal fraction has a finite binary representation. One-half is exactly .1₂, and one-quarter is .01₂, but one-tenth repeats in binary, much as one-third repeats in decimal. A computer or calculator may store a finite approximation, depending on its number format. Tiny display differences can arise from representation and rounding rather than from a conceptual error in the conversion.
Why bit width and leading zeroes matter
As a pure unsigned number, 101₂ and 00000101₂ both equal five. A digital protocol may nevertheless require an exact number of bits, such as an eight-bit field. In that case, leading zeroes are padding that preserves the required width. A program reading data needs to know whether those bits are part of the numeric value or part of a larger structured representation.
For an unsigned n-bit value, the range is 0 through 2ⁿ − 1. Four bits represent values from 0 to 15; eight bits represent 0 through 255. The smallest number of bits needed to represent a particular nonnegative integer depends on its size, while a storage format may reserve a fixed width regardless of the current value.
Signed binary numbers need an agreed convention. Many modern systems use two’s complement, where the leftmost bit has a special role in interpreting negative values. Under an eight-bit two’s-complement convention, the pattern 11111111 represents −1, whereas as an unsigned value it represents 255. The bit pattern alone does not tell you which interpretation to use; consult the format or data type definition.
Binary, bytes, and groups of bits
A bit is a binary digit, and a byte is commonly eight bits. For example, 00101101 is an eight-bit pattern; as an unsigned integer it equals 32 + 8 + 4 + 1 = 45. Grouping bits into fours can make a long string easier to read. A nibble such as 1101₂ is 13 in decimal, and two nibbles form one byte.
Hexadecimal, base sixteen, is often used as a compact way to write binary patterns because each hexadecimal digit corresponds neatly to four bits. The nibble 1101 is hexadecimal D. The byte 00101101 groups as 0010 and 1101, or 2D in hexadecimal. This does not change the underlying value; it changes the notation. Hex is especially common when inspecting addresses, colors, and low-level data.
Units for storage can cause a different kind of confusion. A bit and a byte are not interchangeable, and decimal prefixes such as kilo and binary-based quantities such as powers of 1024 may be used differently across contexts. Read the unit labels and product definitions rather than assuming a conversion from a displayed number alone. The binary conversion described here handles digit values, not every convention used to label storage capacity.
Use a calculator without losing the idea
A binary converter is handy for long strings or repeated checks, but the place-value method remains valuable. It lets you estimate the size of the result, notice an invalid digit, and understand why a tool returns a particular answer. Binary permits only 0 and 1; a string containing 2 is not a valid base-two numeral. Leading or trailing spaces may also affect a particular tool’s input handling.
When entering data, verify whether the converter expects a prefix such as 0b, a plain digit string, or a particular signed width. Some tools interpret a bit string as unsigned unless told otherwise. Others may provide text encoding or hexadecimal conversion rather than numeric conversion. Read the labels and use a harmless test case whose answer you already know, such as 1010₂ = 10₁₀.
If a result matters for programming, networking, data analysis, or a device configuration, compare it with the relevant specification and test it in context. A correct conversion can still be the wrong interpretation if the field is signed, uses a character encoding, or represents flags rather than a number. The tool answers the input you gave, not every question you intended.
Common conversion mistakes
One mistake is assigning powers of two from left to right starting at 2⁰. The rightmost digit is 2⁰; moving left increases the exponent. Another is reading the remainder sequence in the order it was produced instead of reversing it. A third is forgetting zero placeholders, which shift the position values of later digits.
It is also easy to confuse a binary numeral with a decimal numeral made from the same characters. 1001₂ is nine, while 1001₁₀ is one thousand and one. Use base labels whenever the context could be ambiguous. A subscript is a convenient notation in writing; in plain text, forms such as “1001 base 2” or “0b1001” can make the intended base clear.
Finally, avoid silently mixing numeric conventions. Converting 11111111₂ to 255 is correct for unsigned interpretation; converting it to −1 is correct in an eight-bit two’s-complement interpretation. Neither answer is universally right without context. Ask what the pattern represents, how many bits are specified, and which signed or encoding convention applies.
Frequently asked questions
Why do computers use binary?
Many digital circuits can reliably distinguish two states, which can be represented as 0 and 1. Binary arithmetic and logic provide a systematic way to represent numbers and other information. Actual systems involve electrical and physical details, but the two-symbol model is a useful foundation.
What is the fastest way to convert a small binary number?
Label the powers of two and add the places with a 1. For a decimal number, repeated division by two is a dependable method. Practice makes small conversions quick, while a converter is helpful for long strings.
Can a binary fraction be approximate?
Yes. Some decimal fractions repeat when written in base two, so finite-width systems store an approximation. Rounding can affect displayed results. The exact interpretation depends on the number format and precision.
Conclusion: see the places behind the digits
Binary becomes less intimidating when each position is treated as a power of two. For binary-to-decimal conversion, add the values selected by the 1 bits. For decimal-to-binary conversion, repeatedly divide by two or subtract powers of two, then check the result using the reverse method.
Keep the context in view: leading zeroes, bit width, signedness, fractions, and encodings can change what a pattern means. A small amount of place-value reasoning makes conversion more reliable and helps you use digital tools with confidence.
Try the technology calculators for conversions and related digital calculations. Check whether a tool expects a signed value or a particular bit width before relying on its output.