MATH · LIVE

Binary / Hex / Decimal Converter

Type any number in any base — binary, octal, decimal or hexadecimal — and all other representations update instantly.

Binary Base 2
Octal Base 8
Decimal Base 10
Hexadecimal Base 16

Bit visualizer

Enter a number above to see its bits

Quick examples

Number base conversion explained

Computers store all data in binary (base 2), but humans interact with data in decimal (base 10). Hexadecimal (base 16) and octal (base 8) are convenient shorthands that developers use when working with bytes, memory addresses, colors, and bitwise operations.

Common conversions

Binary to decimal: multiply each bit by its positional power of 2 and sum. Decimal to hex: repeatedly divide by 16, mapping remainders to hex digits (10=A, 11=B, ..., 15=F). This tool handles all conversions instantly as you type.

What is hexadecimal used for?

Hex is used for memory addresses, color codes (#RRGGBB), error codes, bytecodes, and network MAC addresses. Each hex digit represents exactly 4 bits, making it a compact representation of binary data.

What is the largest number this tool handles?

This tool uses JavaScript BigInt, so it handles arbitrarily large integers — up to the field character limit. For 64-bit integers specifically, the max is 18,446,744,073,709,551,615 in decimal.

Can I convert negative numbers?

Prefix the decimal value with a minus sign (e.g. -42). Two's complement representation is shown in the bit visualizer for negative values.