Decimal to Binary Converter
Example
Input:
255
Output:
11111111
About this converter
Decimal (base 10) and Binary (base 2) are two notations for the same integers; programmers live between them because computers think in binary, humans in decimal, and hex is the compact spelling of binary (one hex digit is exactly four bits). This converter parses the input digit-by-digit in base 10 and re-emits it in base 2 using arbitrary-precision arithmetic, so values far beyond 2^53 — memory addresses, hashes as numbers, packed flags — convert exactly, and invalid digits for the source base are reported by name.
Frequently Asked Questions
How do I convert decimal to binary by hand?
Convert through place values: multiply each digit by its place value in the source base and add (that gives decimal), then repeatedly divide by the target base and read the remainders upward — or use this page and check the result both ways.
Are negative numbers supported?
Yes — a leading minus sign is honoured in both directions.
Related Developer Tools
Decimal to Hex Converter
Convert decimal numbers to hexadecimal instantly - free and in your browser.
Decimal to Octal Converter
Convert decimal numbers to octal instantly - free and in your browser.
Hex to Binary Converter
Convert hexadecimal numbers to binary instantly - free and in your browser.
Hex to Decimal Converter
Convert hexadecimal numbers to decimal instantly - free and in your browser.
Number Base Converter
Convert numbers between binary, octal, decimal and hex.
Hash Generator
MD5, SHA-1, SHA-256 and more hashes for text and files.
Base64 Encoder & Decoder
Encode text or files to Base64 and decode back, UTF-8 safe.