Decimal to Binary Converter
Type a decimal number and see its bits.
Works in your browser. Nothing you type is sent to us.
Converted in your browser, with whole numbers of any size. Nothing you type is sent to us.
Decimal to Binary Converter at a glance
- Price
- Free
- Data sent to us
- None, it runs in your browser
- Sign-up
- Not needed
- Bases
- 2, 8, 10, 16 and any from 2 to 36
- Size
- Whole numbers of any length
- Widths
- 8, 16, 32, 64 bits, two's complement
How to use Decimal to Binary Converter
- Type the numberType or paste it into the box for its base. The other boxes fill in as you type.
- Read the bitsThe bits are drawn below with their places; small numbers are written as a sum of powers of two.
- Pick a width if it mattersFor negative numbers or register values, choose 8, 16, 32 or 64 bits to see two's complement and the signed value.
Type a decimal number and see it in binary, grouped in fours, with every bit drawn under its place value, and hex and octal alongside. For a negative number, pick a width and it is written the way a computer stores it, in two's complement.
How it works
Decimal to Binary Converter is a web page that does its work on your own device. Everything you type or choose is worked out by your browser and never sent to a server, so nothing is stored and there is nothing to delete. There is no account, no sign-up and no limit on how often you use it.
Doing it by hand
Divide by two and write down the remainders until you reach zero, then read them from the bottom up: 42 gives 0, 1, 0, 1, 0, 1, so 101010.
Questions
How do I write -5 in binary?
Pick a width, such as 8 bits: -5 is stored as 1111 1011, which is 256 - 5 = 251 unsigned.
Other shortcuts
Binary, Hex and Decimal Converter · Binary to Decimal Converter · Hex to Decimal Converter


