Convert integers between binary, octal, decimal, hexadecimal and any base from 2 to 36, with step-by-step math, bitwise operations and two’s complement view.
Show step-by-step conversion
-1, -128, 0xFF, 0b10000000| Dec | Binary | Octal | Hex |
|---|
Why do computers use binary?
Why is hexadecimal used in programming?
0xDEADBEEF) instead of 32. Memory addresses, colors (#FF8800) and byte dumps are almost always shown in hex.How does step-by-step conversion work?
1A3 in base 16: 1·16² + 10·16¹ + 3·16⁰ = 256 + 160 + 3 = 419.Decimal → base: divide by the base repeatedly, collect remainders, read them bottom-up.
What is two's complement?
-2ⁿ⁻¹ … 2ⁿ⁻¹-1, so 8-bit signed runs from -128 to 127. The leftmost bit acts as the sign bit.What are bitwise operations used for?
What bases does this converter support?
This number base converter translates integers between binary, octal, decimal, hexadecimal and any custom base from 2 through 36. Type a value, pick the input base, and four common bases update instantly with a copyable result for each.
Every conversion shows the math: place-value expansion when going to decimal, and successive division with remainders when going from decimal. For example, 1A3 in base 16 expands to 1·16² + 10·16¹ + 3·16⁰ = 256 + 160 + 3 = 419 in decimal.
The Bitwise tab computes AND, OR, XOR, NOT and shift left/right on 32-bit operands. The Two’s Complement tab shows 8-, 16- and 32-bit signed and unsigned views, so you can see how -1 becomes 0xFF, 0xFFFF or 0xFFFFFFFF.