๐Ÿ’ฐ Financial Calculators โค๏ธ Health & Fitness Calculators ๐Ÿ“ Math Calculators ๐Ÿ”„ Conversion Calculators ๐Ÿ“Š Business Calculators ๐Ÿ—๏ธ Construction Calculators ๐Ÿ“… Date & Time Calculators ๐ŸŽ“ Education Calculators ๐Ÿš— Automotive Calculators ๐Ÿงฎ Everyday Calculators

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.

โšก Quick Calculator Get a fast estimate

Type a number in any field โ€” all other bases update automatically. Supports non-negative integers.

Decimal Value
255
Binary (grouped)
1111 1111
Hex
0xFF
Octal
0o377
Bits needed
8

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.

Need more detail?
๐Ÿ“Š Extended Calculator More options, charts, and scenario comparison
Base Conversions
Binary (base 2)
00101010
Octal (base 8)
0o52
Hexadecimal (base 16)
0x2A
Decimal
42
Bit Pattern (8-bit)
0706150413021100

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

Decimal 255 = 1111 1111 (binary) = FF (hex) = 377 (octal)

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.

Need full precision?
๐Ÿ”ฌ Professional Calculator Complete parameters, sensitivity analysis, and detailed breakdown
BaseValue
Decimal (10)255
Binary (2)11111111
Octal (8)0o377
Hexadecimal (16)0xFF
Base 3673
Two's Complement (8-bit signed)
RepresentationValue
Signed decimal-42
Two's complement (8-bit)11010110
Unsigned value214
Hex0xD6
Bitwise Operations Calculator
OperationDecimalBinary
A = 606000111100
B = 131300001101
A AND B1200001100
A OR B6100111101
A XOR B4900110001
NOT A19511000011
A << 1 (left shift)12001111000
A >> 1 (right shift)3000011110
IEEE 754 Single Precision (32-bit) Breakdown
32-bit Hex Representation
0x4048F5C3
FieldBitsValue
Sign (bit 31)0Positive
Exponent (bits 30โ€“23)10000000128 (bias 127 โ†’ 1)
Mantissa (bits 22โ€“0)100100011110101110000114781507
Binary: 01000000010010001111010111000011

Frequently Asked Questions

Computers use binary because electronic circuits have two stable states: on (1) and off (0). Representing numbers with just two states is physically simpler and more reliable than using ten states. Every number, text character, and instruction is ultimately stored as a sequence of 0s and 1s.
Hexadecimal is a shorthand for binary โ€” each hex digit represents exactly 4 binary bits (a nibble). So a byte (8 bits) is always 2 hex digits. This makes hex much easier to read than long binary strings. You see hex in colour codes (#FF5733), memory addresses (0x7FFF), and file formats.
Octal (base 8) is used in Unix/Linux file permission systems. For example, the permission 755 (rwxr-xr-x) is octal notation. Each octal digit represents 3 binary bits, making it convenient for 3-bit grouped permissions.
Multiply each binary digit by its positional power of 2 and sum the results. For example, 1011 binary: (1ร—8) + (0ร—4) + (1ร—2) + (1ร—1) = 8 + 0 + 2 + 1 = 11 decimal.

Related Calculators