130 of 149 tools live Roadmap LatestImage to Text

Decimal to Binary Converter

Type a decimal number and see its bits.

Works in your browser. Nothing you type is sent to us.

Bits

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

Takes about 1 minute. You need a whole number in any base.

  1. Type the numberType or paste it into the box for its base. The other boxes fill in as you type.
  2. Read the bitsThe bits are drawn below with their places; small numbers are written as a sum of powers of two.
  3. 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.
Binary, Hex and Decimal Converter: Type a number in any base and see it in all the others, with every bit drawn.

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

More

Privacy policy · Support · Changelog

Suggest a tool

Tell us what the tool should do. If we build it, we will let you know.

Used only to reply to you. See our Privacy Policy.