Binary Converter
Convert between binary, decimal, and text with this free online binary converter tool.
How to Use the Binary Converter
Decimal to Binary
- Select the "Decimal to Binary" tab
- Enter a decimal number
- Click "Convert" to see the binary representation
- Click the copy button to copy the result to your clipboard
Binary to Decimal
- Select the "Binary to Decimal" tab
- Enter a binary number (using only 0s and 1s)
- Click "Convert" to see the decimal representation
- Click the copy button to copy the result to your clipboard
Text to Binary
- Select the "Text to Binary" tab
- Enter the text you want to convert
- Click "Convert" to see the binary representation (8 bits per character)
- Click the copy button to copy the result to your clipboard
Binary to Text
- Select the "Binary to Text" tab
- Enter a binary string (8 bits per character, spaces optional)
- Click "Convert" to see the text representation
- Click the copy button to copy the result to your clipboard
About Binary Numbers
Binary is a base-2 number system that uses only two digits: 0 and 1. It's the foundation of digital computing and is used to represent all data in computers.
Binary Basics
In binary, each position represents a power of 2, starting from the rightmost digit (2^0 = 1) and increasing as you move left (2^1 = 2, 2^2 = 4, 2^3 = 8, etc.).
Binary to Decimal Conversion
To convert binary to decimal, multiply each digit by its corresponding power of 2 and sum the results.
Binary: 1 0 1 1
Position values: 2^3 2^2 2^1 2^0
Calculation: 1×8 + 0×4 + 1×2 + 1×1
Decimal: 8 + 0 + 2 + 1 = 11
Decimal to Binary Conversion
To convert decimal to binary, divide the number by 2 repeatedly and record the remainders in reverse order.
Decimal: 13
13 ÷ 2 = 6 remainder 1
6 ÷ 2 = 3 remainder 0
3 ÷ 2 = 1 remainder 1
1 ÷ 2 = 0 remainder 1
Binary (reading remainders from bottom to top): 1101
Text to Binary
In computing, text is converted to binary using character encoding standards like ASCII or UTF-8. Each character is represented by a specific binary sequence.
FAQs
Why do computers use binary?
Computers use binary because electronic components can easily represent two states: on/off, high/low voltage, or magnetic polarities. This makes binary the most natural number system for digital electronics.
What is a bit and a byte?
A bit (binary digit) is the smallest unit of data in computing, representing either a 0 or a 1. A byte is a group of 8 bits, which can represent 256 different values (2^8).
How are negative numbers represented in binary?
Negative numbers are typically represented using methods like two's complement, where the leftmost bit indicates the sign (0 for positive, 1 for negative) and the remaining bits represent the magnitude with some mathematical adjustments.