Decimal ↔ Binary Converter

Convert numbers between decimal and binary — or any other base.

● Your data is processed locally in your browser and is never uploaded to our servers.

How it works

Binary writes numbers with powers of 2: 13 = 8 + 4 + 1 = 1101. The converter uses arbitrary-precision integers (BigInt), so numbers of any size convert exactly, including negatives (written with a minus sign). Separators like spaces and underscores in the input are ignored, and prefixes 0b, 0o and 0x are understood.