Binary Calculator
Convert between binary, decimal, and hexadecimal numbers.
Enter a Number
Table of Contents
Binary Number System
The binary number system is a base-2 number system that uses only two digits: 0 and 1. Each position in a binary number represents a power of 2.
Conversion Methods
Here are the methods for converting between number systems:
-
1Binary to Decimal: Multiply each digit by its corresponding power of 2 and sum the results
-
2Decimal to Binary: Divide by 2 repeatedly and use the remainders
-
3Binary to Hexadecimal: Group binary digits into sets of 4 and convert each group
-
4Hexadecimal to Binary: Convert each hex digit to its 4-bit binary equivalent
For example, to convert 1010 from binary to decimal:
Binary - Practical Examples
Example 1 Computer Data
Binary is the fundamental language of computers, where each bit represents a 0 or 1.
1 byte = 8 bits = 2⁸ possible values
Example 2 Digital Images
Binary is used to represent pixel values in digital images.
Black and white image: 0 = black, 1 = white
Example 3 Boolean Logic
Binary is used to represent boolean values in programming.
false = 0, true = 1