Tool to make binary conversions. Binary is a numeric system using base 2 used in informatics, symbols used in binary notation are generally zero and one (0 and 1).

dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day! You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? Contact-me!

Tool to make binary conversions. Binary is a numeric system using base 2 used in informatics, symbols used in binary notation are generally zero and one (0 and 1).

A bit (contraction of binary digit) is a symbol in the binary notation: 0 or 1.

Why defining a number of bits?

In computer informatics, size is limited, numbers are stocked in memory cells of size N where N is the number of bits.

how many bits are necessary to represent a number?

This depends on the size of the number, here are the min-max intervals:

0-1

1

2-3

2

4-7

3

8-15

4

16-31

5

32-63

6

64-127

7

128-255

8

256-511

9

512-1023

10

1024-2047

11

2048-4095

12

2^(n-1) - (2^n)-1

n

What is 1's complement?

In informatics, one's complement is writing a number negatively inversing 0 and 1.

Example: 0111 becomes 1000, so 7 becomes -7

What is 2's complement?

In informatics, one's complement is writing a number negatively inversing 0 and 1 and adding 1.

Example: 0111 becomes 1001

Why is there 10 kinds of people in the world?

There are 10 kinds of people in the world, those that understand binary, and those that don't...

10 in binary equals 2 in decimal.

Ask a new question

Source code

dCode retains ownership of the source code of the script Binary Code. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, etc.) which dCode owns rights can be transferred after sales quote. So if you need to download the Binary Code script for offline use, for you, your company or association, see you on contact page !

dCode uses cookies to customize the site content, analyze user behavior and adapt dCode to your use. Some data is stored and collected for advertising purposes and may be shared with our partners. OK