Binary addition
0+0=0 · 0+1=1 · 1+1=10
When a column totals two, write 0 and carry 1. A total of three is written 11: write 1 and carry 1.
Convert binary to decimal or decimal to binary, calculate with binary numbers, and get exact hexadecimal, octal, bit-length, and step-by-step results.
Optional leading signs, 0b prefixes, spaces, and underscores are supported.
1011₂ + 1101₂ = 11000₂ (24₁₀)
Binary is a base-2 number system. Starting at the right, each bit represents a power of 2. Multiply every bit by its place value and add the results.
1×2³ + 0×2² + 1×2¹ + 0×2⁰ = 10₁₀
1×2⁵ + 1×2³ + 1×2² + 1×2⁰ = 45₁₀
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255₁₀
Write the powers of two below the bits, keep the powers whose bit is 1, and add them. For 101101₂, add 32 + 8 + 4 + 1 to get 45₁₀.
Repeatedly divide the decimal integer by 2 and record each remainder. Read the remainders from bottom to top. For 45, the result is 101101₂.
0+0=0 · 0+1=1 · 1+1=10
When a column totals two, write 0 and carry 1. A total of three is written 11: write 1 and carry 1.
1−0=1 · 1−1=0 · 10−1=1
Borrowing 1 from the next binary column gives 10₂, which is worth two in the current column.
101₂ × 11₂ = 1111₂
Multiply by each bit, shift each partial product left by its position, then add the partial products.
1010₂ ÷ 11₂ = 11₂ R1₂
Compare the divisor with leading groups, subtract when it fits, bring down the next bit, and keep any final remainder.
Use this quick-reference chart for common base-2 values. Four binary bits make one hexadecimal digit.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 2 | 10 | 2 | 2 |
| 3 | 11 | 3 | 3 |
| 4 | 100 | 4 | 4 |
| 5 | 101 | 5 | 5 |
| 6 | 110 | 6 | 6 |
| 7 | 111 | 7 | 7 |
| 8 | 1000 | 8 | 10 |
| 9 | 1001 | 9 | 11 |
| 10 | 1010 | A | 12 |
| 11 | 1011 | B | 13 |
| 12 | 1100 | C | 14 |
| 13 | 1101 | D | 15 |
| 14 | 1110 | E | 16 |
| 15 | 1111 | F | 17 |
| 16 | 10000 | 10 | 20 |
| 17 | 10001 | 11 | 21 |
| 18 | 10010 | 12 | 22 |
| 19 | 10011 | 13 | 23 |
| 20 | 10100 | 14 | 24 |
Inspect bitmasks, flags, shifts, permissions, and low-level integer values.
Understand subnet masks, IPv4 octets, protocol fields, and packet data.
Work with logic gates, registers, microcontrollers, and hardware states.
Check homework and practice base conversion or binary arithmetic step by step.
Multiply each bit by 2 raised to its position, starting with position 0 at the right, then add the values. For example, 1010₂ = 8 + 2 = 10₁₀.
Divide the decimal integer by 2 repeatedly and record each remainder. Read the remainders from bottom to top. For example, 45₁₀ = 101101₂.
Add from right to left. The key rule is 1 + 1 = 10₂: write 0 and carry 1 to the next column. The calculator performs this exactly for positive or negative integers.
Subtract from right to left. When subtracting 1 from 0, borrow from the next bit: 10₂ − 1₂ = 1₂. A negative result is displayed with a leading minus sign.
Binary multiplication uses the same shift-and-add method as decimal long multiplication, but each partial product is either 0 or the first number because every multiplier bit is 0 or 1.
Binary long division repeatedly compares, subtracts, and shifts. This tool returns an integer quotient and remainder, so 1010₂ ÷ 11₂ gives quotient 11₂ and remainder 1₂.
1010₂ is 10₁₀ because 1×2³ + 0×2² + 1×2¹ + 0×2⁰ = 8 + 2.
Group bits into sets of four from the right, then convert each group to one hex digit. For example, 1111 1010₂ becomes FA₁₆. The live result panel does this automatically.
Yes. You can enter a leading minus sign. Negative values are displayed in sign-magnitude notation with a leading minus; the tool does not assume a fixed bit width for two’s complement.
A binary converter changes a value between number bases. A binary calculator performs arithmetic on two base-2 values. This page includes both tools in separate modes.
Useful tools selected for this workflow

Convert hexadecimal to decimal with exact large-number and fraction results, binary output, calculation steps, and signed two's-complement values.

Convert a string to a slug.

Convert time to Discord time format.

Convert between Gregorian calendar dates and Julian dates (ordinal date format). Julian date format uses yyddd or yyyyddd where yy/yyyy is the year and ddd is the day of year.

Convert weight and mass between different units including kilograms, pounds, ounces, grams, stone, and more. Fast and accurate weight conversion tool.

Convert files to Base64 and decode Base64 strings back to files.