Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal. Three tiers: Quick, Extended with bit pattern visualisation and ASCII table, and Professional with IEEE 754 breakdown, two's complement, and bitwise operations.
Type a number in any field โ all other bases update automatically. Supports non-negative integers.
How to Use This Converter
Click or type into any field. The active field is highlighted. All other bases update automatically. Binary input only accepts 0s and 1s; hexadecimal accepts 0โ9 and AโF. The binary result is grouped into nibbles (4-bit groups) for readability.
The Extended Calculator shows a visual bit pattern and includes an ASCII character reference table. The Professional Calculator adds IEEE 754 floating point breakdown, two's complement, and bitwise operations.
Number Base Reference Table
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 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 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 11 | 1011 | 13 | B |
| 12 | 1100 | 14 | C |
| 13 | 1101 | 15 | D |
| 14 | 1110 | 16 | E |
| 15 | 1111 | 17 | F |
| 16 | 10000 | 20 | 10 |
| 32 | 100000 | 40 | 20 |
| 64 | 1000000 | 100 | 40 |
| 128 | 10000000 | 200 | 80 |
| 255 | 11111111 | 377 | FF |
How Number Bases Work
Each position in a number represents a power of the base. In decimal (base 10), the rightmost digit is 10โฐ = 1, the next is 10ยน = 10, then 10ยฒ = 100. In binary (base 2): positions represent 1, 2, 4, 8, 16, 32 ... In hexadecimal (base 16): digits 0โ9 and AโF represent values 0โ15.
| Base | Value |
|---|---|
| Decimal (10) | 255 |
| Binary (2) | 11111111 |
| Octal (8) | 0o377 |
| Hexadecimal (16) | 0xFF |
| Base 36 | 73 |
Two's Complement (8-bit signed)
| Representation | Value |
|---|---|
| Signed decimal | -42 |
| Two's complement (8-bit) | 11010110 |
| Unsigned value | 214 |
| Hex | 0xD6 |
Bitwise Operations Calculator
| Operation | Decimal | Binary |
|---|---|---|
| A = 60 | 60 | 00111100 |
| B = 13 | 13 | 00001101 |
| A AND B | 12 | 00001100 |
| A OR B | 61 | 00111101 |
| A XOR B | 49 | 00110001 |
| NOT A | 195 | 11000011 |
| A << 1 (left shift) | 120 | 01111000 |
| A >> 1 (right shift) | 30 | 00011110 |
IEEE 754 Single Precision (32-bit) Breakdown
| Field | Bits | Value |
|---|---|---|
| Sign (bit 31) | 0 | Positive |
| Exponent (bits 30โ23) | 10000000 | 128 (bias 127 โ 1) |
| Mantissa (bits 22โ0) | 10010001111010111000011 | 4781507 |