๐ข Base Converter
โ๏ธ Bitwise Operations
๐ Quick Reference: 0โ15 in All Bases
| Dec | Hex | Oct | Binary | Dec | Hex | Oct | Binary |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0000 | 8 | 8 | 10 | 1000 |
| 1 | 1 | 1 | 0001 | 9 | 9 | 11 | 1001 |
| 2 | 2 | 2 | 0010 | 10 | A | 12 | 1010 |
| 3 | 3 | 3 | 0011 | 11 | B | 13 | 1011 |
| 4 | 4 | 4 | 0100 | 12 | C | 14 | 1100 |
| 5 | 5 | 5 | 0101 | 13 | D | 15 | 1101 |
| 6 | 6 | 6 | 0110 | 14 | E | 16 | 1110 |
| 7 | 7 | 7 | 0111 | 15 | F | 17 | 1111 |
โ FAQ
How do I convert binary to decimal?
Multiply each bit by its positional power of 2 (from right: 2โฐ, 2ยน, 2ยฒ, โฆ) and sum them. For example: 1010 = 1ร8 + 0ร4 + 1ร2 + 0ร1 = 10. This calculator does it instantly โ just type the binary number in the BIN field.
How do I convert decimal to hex?
Repeatedly divide by 16, recording remainders (0โ9 as digits, 10โ15 as AโF). Read remainders bottom-up. For example: 255 รท 16 = 15 rem 15 โ FF. Or just type 255 in the decimal field above.
What is the difference between AND, OR, and XOR?
AND: output 1 only when both bits are 1 (masking). OR: output 1 when at least one bit is 1 (setting bits). XOR: output 1 when exactly one bit is 1 (toggling bits). XNOR is XOR inverted โ output 1 when bits are equal.
What is two's complement?
Two's complement is the standard way to represent negative integers in binary. To negate: invert all bits (NOT), then add 1. In 8-bit: โ1 = 11111111 = 0xFF = 255 unsigned. This calculator shows unsigned values; for signed interpretation note that MSB=1 means negative in two's complement.