Number Base Converter
Binary
(base 2)
0b
Octal
(base 8)
0o
Decimal
(base 10)
Hexadecimal
(base 16)
0x
Base
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Bit Visualization
Group by:
4
8
0
0
1
0
1
0
1
0
8-bit = 0010 1010
Conversion Steps
Decimal: 42
Binary: 101010 (each digit is a power of 2)
Octal: 52 (group binary by 3 bits)
Hex: 2A (group binary by 4 bits)
Bitwise Operations
Operand A (decimal)
Operation
AND
OR
XOR
NOT
<< SHL
>> SHR
Operand B (decimal)
255 & 15
DEC
15
BIN
1111
HEX
F