Binary Converter
Convert Binary, Decimal, Hexadecimal, Octal and Text instantly with this free online Binary Converter.
Binary Converter
This binary converter changes numbers and text between binary, decimal, hexadecimal, octal and ASCII. You can use it as a binary to decimal converter, a decimal to binary converter, a hex to binary or binary to hexadecimal converter, an octal to binary converter, a binary to text and text to binary converter, or an ASCII to binary converter and binary translator. Everything runs in your browser, so your input is never uploaded.
How to Use the Binary Converter
- Choose the format you are starting with in Convert from.
- Choose the format you want in Convert to.
- Type or paste your value. The result appears as you type.
- Read the step-by-step solution to see how the answer is worked out.
- Press Copy to copy the result, or Swap to reverse the conversion.
Binary Conversion Examples
- 5 in binary is 101
- 10 in binary is 1010
- 25 in binary is 11001
- 100 in binary is 1100100
- Binary 1010 to decimal is 10
- Binary 10101010 to hexadecimal is AA
Binary Conversion Table
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 1 | 1 | 1 | 1 |
| 2 | 10 | 2 | 2 |
| 3 | 11 | 3 | 3 |
| 4 | 100 | 4 | 4 |
| 5 | 101 | 5 | 5 |
| 8 | 1000 | 8 | 10 |
| 10 | 1010 | A | 12 |
| 15 | 1111 | F | 17 |
| 16 | 10000 | 10 | 20 |
| 25 | 11001 | 19 | 31 |
| 50 | 110010 | 32 | 62 |
| 100 | 1100100 | 64 | 144 |
| 255 | 11111111 | FF | 377 |
What Is Binary?
Binary is a number system that uses only two digits, 0 and 1. Computers use it because electronic circuits have two clear states, on and off. Each digit is called a bit, and eight bits make a byte. Text, images and programs are all stored as patterns of bits.
How Binary Conversion Works
Binary to decimal
Multiply each bit by a power of 2, starting with 2⁰ on the right, then add the results. For example, binary 1101 = 1 × 2³ + 1 × 2² + 0 × 2¹ + 1 × 2⁰ = 8 + 4 + 0 + 1 = 13.
Decimal to binary
Repeatedly divide the number by 2 and note each remainder. Reading the remainders from bottom to top gives the binary number. For example, 13 gives 1101.
Binary to hexadecimal
Split the bits into groups of four from the right and replace each group with one hex digit. 1010 1010 becomes AA.
Binary to octal
Split the bits into groups of three from the right and replace each group with one octal digit. 101 010 becomes 52.
Frequently Asked Questions
How do I convert text to binary?
Each character is turned into its UTF-8 bytes, and each byte is written as eight bits. The letter A is 01000001, and “Hello” is 01001000 01100101 01101100 01101100 01101111.
Why do some characters give more than 8 bits?
UTF-8 uses one to four bytes per character. Plain ASCII characters use one byte, while characters such as é or emoji use more.
What is the difference between ASCII and text here?
ASCII mode works with character codes from 0 to 127, such as 65 for A. Text mode accepts any Unicode text and uses UTF-8.
Can it convert very large numbers?
Yes. Whole numbers are handled with BigInt, so large values stay exact. Fractions and negative numbers are not supported yet.
Is my input sent to a server?
No. All conversions happen in your browser, and the tool keeps working offline once the page has loaded.