Binary Converter โ Convert Text & Numbers to Binary Online Free
Instantly convert text to binary code, binary back to text, decimal numbers to binary, and binary to decimal. Also converts to hex and octal. Free, private, works in your browser.
๐ป Binary Converter
Select a conversion mode โ output updates as you type
All Number Bases
How Binary Works
Binary is the fundamental language of computers. Every piece of digital data โ text, images, video, programs โ is ultimately stored as sequences of 0s and 1s.
Binary uses only two digits: 0 and 1. Each position represents a power of 2 โ just like decimal uses powers of 10. 1101 = 8+4+0+1 = 13.
One binary digit is called a bit. 8 bits = 1 byte, which can represent 256 different values (0-255). A byte stores one ASCII character.
Text is stored by converting each character to its ASCII code, then to binary. "A" โ 65 โ 01000001. "Hello" = 5 bytes = 40 bits.
Hexadecimal (base-16) is a compact way to write binary. Every 4 bits = 1 hex digit. 1111 0000 = F0. Programmers use hex to read binary more easily.
Electronic transistors have two states โ on and off โ making binary the natural choice. A transistor that is on = 1, off = 0. Modern CPUs have billions of transistors.
Octal (base-8) groups binary in sets of 3 bits. Used in Unix file permissions (chmod 755) where each digit represents read/write/execute access.
Binary Conversion Examples
A โ ASCII 65 โ 64+1 โ 2โถ+2โฐ โ 01000001. Each text character becomes an 8-bit binary byte.
13 = 8+4+1 = 2ยณ+2ยฒ+2โฐ โ 1101. Divide by 2 repeatedly: 13รท2=6r1, 6รท2=3r0, 3รท2=1r1, 1รท2=0r1 โ read remainders bottom to top: 1101.
1ร2ยณ + 0ร2ยฒ + 1ร2ยน + 0ร2โฐ = 8+0+2+0 = 10. Read each bit position as a power of 2 and add them up.
Frequently Asked Questions
How do I convert text to binary?
Each character is converted to its ASCII code, then the code is converted to an 8-bit binary number. For example: H=72=01001000, e=101=01100101, l=108=01101100, and so on. This tool does it automatically โ just type in the left box.
How do I convert a decimal number to binary?
Repeatedly divide by 2, writing down the remainder each time, until you reach 0. Read the remainders from bottom to top. Example: 10 โ 10รท2=5r0, 5รท2=2r1, 2รท2=1r0, 1รท2=0r1 โ binary: 1010.
How do I convert binary to decimal?
Multiply each bit by its place value (powers of 2) and add. For 1010: (1ร8)+(0ร4)+(1ร2)+(0ร1) = 8+0+2+0 = 10. The rightmost bit is 2โฐ=1, next is 2ยน=2, 2ยฒ=4, 2ยณ=8, and so on.
What is a bit and a byte?
A bit is a single binary digit โ either 0 or 1. A byte is 8 bits grouped together, which can represent values from 0 (00000000) to 255 (11111111). One byte stores one ASCII character. 1,024 bytes = 1 kilobyte, 1,024 kilobytes = 1 megabyte.
What is binary used for in programming?
Binary is used in bitwise operations (AND, OR, XOR, NOT), bit flags, permission systems (Unix chmod), network masks, graphics color channels, compression algorithms, and any low-level systems programming where individual bits need to be manipulated.
Is my text sent to a server?
No. All conversion happens entirely in your browser using JavaScript. Your text is never sent to any server, never stored, and never shared.
Related Converters
Convert text to ASCII codes and ASCII codes back to text.
Convert CMYK color values to RGB and HEX instantly.
Convert between degrees, radians, gradians, and arcminutes.
Convert between square meters, acres, hectares, and square feet.
Generate UUID v1, v4, v5 and v7 identifiers in bulk.
Count words, characters, sentences and paragraphs.