Decimal to Binary Converter
About this tool
About Decimal to Binary Converter
Type an ordinary number into the Decimal row and its binary form appears straight away, with octal, hexadecimal and base 36 alongside. Turn on Group digits to split the bits into nibbles of four, which makes long patterns easy to read and compare with documentation. Large values stay exact, so 18446744073709551615 becomes sixty-four 1s rather than a rounded approximation. Negative numbers have two answers, and you get both: the plain form with a minus sign, and the two's complement bit pattern computers actually store, at the bit width you choose in the Two's complement panel or the smallest one that fits. That is the value you need for bit masks, embedded registers, network protocols and exam questions about signed integers. Need the reverse? Edit the binary row and the decimal updates, so one page covers both directions.
Built and maintained by Abhi JainUpdated
How to Convert Decimal to Binary
- 1
Enter the decimal number
Type it into the Decimal row. A minus sign and digit separators are accepted.
- 2
Copy the binary
Copy the Binary row. For negative numbers, pick a Bit width in Two's complement and copy the pattern.
Decimal to Binary Converter: questions and answers
How do you convert decimal to binary by hand?
Divide by 2 repeatedly and write down each remainder. Read the remainders from last to first. For 13: 13→6 r1, 6→3 r0, 3→1 r1, 1→0 r1, so 13 is 1101.
How is a negative number written in binary?
Computers use two's complement: invert every bit of the positive value and add 1. In 8 bits, 5 is 00000101, so −5 is 11111010 + 1 = 11111011.
How many bits do I need for a number?
An unsigned number n needs floor(log2 n) + 1 bits, so 255 needs 8 and 256 needs 9. A signed number needs one more bit for the sign. The converter shows the bits needed.
What is 1000 in binary?
1111101000. That is 512 + 256 + 128 + 64 + 32 + 8 = 1000.
More Number Base Converter presets
Related tools
- Text to BinaryConvert text to binary (8-bit UTF-8 bytes) and binary back to text.
- Text to HexConvert text to hexadecimal UTF-8 bytes or code points, and hex back to text.
- Hash GeneratorMD5, SHA-1, SHA-256, SHA-384 and SHA-512 of any text, with HMAC and expected-hash check.
- Scientific CalculatorFull scientific calculator with trig in degrees or radians, logs, powers, factorials, memory, history and keyboard input.
- Roman Numeral ConverterConvert numbers to Roman numerals and back, with validation and the overline for large numbers.