Binary Converter
Convert text to binary and decode binary back to text using UTF-8, ASCII, or Unicode — or convert a binary number straight into decimal, hexadecimal, and octal.
Text ⇄ Binary Converter
Encode text into binary or decode binary bytes back into readable text.
Binary Number Converter
Convert a binary number — not encoded text — into decimal, hexadecimal, and octal at once.
About Binary
Binary is the fundamental language of computers, using only two digits (0 and 1) to represent all data. Every character, number, image, and program is ultimately stored and processed as binary code. For the reasoning behind that design — why digital hardware settled on two states instead of ten — see our guide on why computers use binary.
Encoding Formats
UTF-8 (8-bit)
- • Variable length (1-4 bytes)
- • Supports all Unicode characters
- • Web standard encoding
- • Backward compatible with ASCII
- • Best for: Modern applications
ASCII (7-bit codes)
- • Defines codes 0-127
- • Commonly padded to 8-bit bytes
- • A-Z, a-z, 0-9, punctuation
- • Simple and fast
- • Best for: English text only
UTF-16
- • Uses one or two 16-bit code units
- • Supports all Unicode code points
- • Surrogate pairs encode some characters
- • Byte order matters in stored files
- • Used by JavaScript strings and some APIs
Binary Examples
| Character | ASCII (Decimal) | Binary (8-bit) | Hexadecimal |
|---|---|---|---|
| A | 65 | 01000001 | 0x41 |
| a | 97 | 01100001 | 0x61 |
| 0 | 48 | 00110000 | 0x30 |
| ! | 33 | 00100001 | 0x21 |
| Space | 32 | 00100000 | 0x20 |
How to Read Binary with Powers of Two
Binary is a positional base-2 numeral system. Starting at the right, each position is worth twice the one before it: 1, 2, 4, 8, 16, 32, 64, and 128 in an 8-bit byte. Add only the positions that contain a 1. For example, 01000001 has the 64 and 1 positions switched on, so its decimal value is 65—the ASCII code for uppercase A. Leading zeros keep the byte at eight bits but do not change its numeric value.
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|
| 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Hexadecimal and octal work the same way, just with different groupings: every hex digit stands for 4 binary bits (1010 1100 = AC), and every octal digit stands for 3 binary bits (101 010 = 52). Use the Binary Number Converter above for an instant result, or the dedicated Binary to Hex and Binary to Octal converters for the full grouping breakdown.
Character Encoding: Code Points, Bytes, and Binary
A character, a Unicode code point, and a byte are not always the same thing. The letter A is Unicode code point U+0041 and UTF-8 stores it as one byte, 01000001. The emoji 😀 is U+1F600 and UTF-8 stores it as four bytes: 11110000 10011111 10011000 10000000. That is why this converter may report more bytes than visible characters. Decoding must use the same character encoding that produced the bytes; otherwise the result can contain replacement characters or mojibake.
00000000 is numeric zero and the NUL control byte in ASCII-compatible encodings. The printable character 0 is decimal 48, or00110000 in binary.Explore the Full Conversion Breakdown
The Binary Number Converter above gives you decimal, hex, and octal at a glance. For the full place-value math, worked examples, and reference tables behind each conversion, see the dedicated tools:
Converting the other direction? Try Decimal to Binary or Hex to Binary, or skip the binary step entirely with the decimal-to-hexadecimal converter. For binary arithmetic, use the Binary Calculator. And if you're translating human-readable text rather than numbers, the Binary Translator is focused specifically on UTF-8 text-to-binary conversion in both directions.
Bits, Bytes, and Data Units
| Unit | Size | Example |
|---|---|---|
| Bit | 1 bit | 0 or 1 |
| Nibble | 4 bits | 1010 (decimal 10) |
| Byte | 8 bits | 01000001 (letter 'A') |
| Word | 16 bits (2 bytes) | Two characters |
| Double Word | 32 bits (4 bytes) | Integer value |
| Quad Word | 64 bits (8 bytes) | Long integer |
Frequently Asked Questions
Why do computers use binary?
Computers use binary because digital circuits can reliably distinguish two voltage states, conventionally represented by 0 and 1. Combining those bits lets hardware store and process text, numbers, images, instructions, and other data.
What is the difference between text-to-binary and binary number conversion?
Text-to-binary first encodes characters as bytes using a standard such as UTF-8 or ASCII, then displays each byte in base 2. Binary number conversion treats the input as a mathematical value; for example, 1011 equals decimal 11. Both tools are available on this page.
What's the difference between bits and bytes?
A bit is one binary digit, either 0 or 1. A byte is a group of eight bits and can represent 256 possible patterns, from 00000000 through 11111111. Text encodings store characters as one or more bytes.
How many characters can binary represent?
Binary has no fixed character limit. One byte has 256 possible values, while an encoding decides what those values mean. ASCII defines 128 codes; Unicode defines far more characters, and UTF-8 represents them with sequences of one to four bytes.
Why is UTF-8 better than ASCII for modern text?
ASCII covers basic English letters, digits, punctuation, and control codes. UTF-8 preserves those same ASCII byte values while also representing scripts, symbols, and emoji from Unicode, so it is the safer default for modern web content.
Can I convert binary to hexadecimal?
Yes. Split the binary value into four-bit groups because each hexadecimal digit represents exactly four bits. For example, 1010 1100 becomes AC in hexadecimal. Enter the number in the Binary Number Converter above for an instant result, or use the dedicated Binary to Hex Converter for the full digit-by-digit breakdown.
Can I convert binary numbers to decimal here?
Yes. Use the Binary Number Converter above — enter 1011 to get decimal 11 instantly, along with hex and octal. The dedicated Binary to Decimal Converter also shows the full place-value math behind the result.
How do I convert a decimal number to binary?
Use the dedicated decimal-to-binary converter for numeric values. It repeatedly evaluates powers of two to produce a base-2 result; for example, decimal 25 becomes binary 11001.
What is endianness in binary data?
Endianness is the order in which the bytes of a multi-byte value are stored. Big-endian places the most significant byte first, while little-endian places the least significant byte first. It does not reverse the individual bits shown inside each byte.
How do you say 'I Love You' in binary?
In ASCII-compatible UTF-8, 'I Love You' is 01001001 00100000 01001100 01101111 01110110 01100101 00100000 01011001 01101111 01110101. Capitalization matters because uppercase and lowercase letters have different character codes.
How do you read 8-bit binary code?
Read an 8-bit value from right to left using place values 1, 2, 4, 8, 16, 32, 64, and 128. Add the place values whose bits are 1. For 01000001, 64 + 1 equals decimal 65, which represents uppercase A in ASCII.
What does 00000000 mean in binary?
As a number, 00000000 equals decimal 0. As an ASCII or UTF-8 byte, it is the NUL control character, not the printable digit 0. The digit 0 has ASCII byte 00110000, so the meaning depends on whether you are reading a number or encoded text.
What does 01101000 01100101 01101100 01101100 01101111 mean?
Those five 8-bit ASCII-compatible bytes decode to lowercase hello. The decimal byte values are 104, 101, 108, 108, and 111. Uppercase Hello starts with 01001000 instead because uppercase H has a different code.
Can an 8-bit binary value start with zero?
Yes. Leading zeros preserve a fixed byte width without changing the numeric value. For example, 00000001 and 1 both equal decimal 1, but 00000001 clearly shows one complete 8-bit byte, which is useful when decoding text or inspecting data.
ASCII to Binary Reference Table
Look up the 95 printable ASCII characters, including A–Z, a–z, 0–9, punctuation, and space. Each value is shown as an 8-bit byte for easy copying and comparison.
Showing 95 of 95 printable characters
| Character | Type | Decimal | Binary (8-bit) | Hex |
|---|---|---|---|---|
| Space | Space | 32 | 00100000 | 0x20 |
| ! | Symbol | 33 | 00100001 | 0x21 |
| " | Symbol | 34 | 00100010 | 0x22 |
| # | Symbol | 35 | 00100011 | 0x23 |
| $ | Symbol | 36 | 00100100 | 0x24 |
| % | Symbol | 37 | 00100101 | 0x25 |
| & | Symbol | 38 | 00100110 | 0x26 |
| ' | Symbol | 39 | 00100111 | 0x27 |
| ( | Symbol | 40 | 00101000 | 0x28 |
| ) | Symbol | 41 | 00101001 | 0x29 |
| * | Symbol | 42 | 00101010 | 0x2A |
| + | Symbol | 43 | 00101011 | 0x2B |
| , | Symbol | 44 | 00101100 | 0x2C |
| - | Symbol | 45 | 00101101 | 0x2D |
| . | Symbol | 46 | 00101110 | 0x2E |
| / | Symbol | 47 | 00101111 | 0x2F |
| 0 | Number | 48 | 00110000 | 0x30 |
| 1 | Number | 49 | 00110001 | 0x31 |
| 2 | Number | 50 | 00110010 | 0x32 |
| 3 | Number | 51 | 00110011 | 0x33 |
| 4 | Number | 52 | 00110100 | 0x34 |
| 5 | Number | 53 | 00110101 | 0x35 |
| 6 | Number | 54 | 00110110 | 0x36 |
| 7 | Number | 55 | 00110111 | 0x37 |
| 8 | Number | 56 | 00111000 | 0x38 |
| 9 | Number | 57 | 00111001 | 0x39 |
| : | Symbol | 58 | 00111010 | 0x3A |
| ; | Symbol | 59 | 00111011 | 0x3B |
| < | Symbol | 60 | 00111100 | 0x3C |
| = | Symbol | 61 | 00111101 | 0x3D |
| > | Symbol | 62 | 00111110 | 0x3E |
| ? | Symbol | 63 | 00111111 | 0x3F |
| @ | Symbol | 64 | 01000000 | 0x40 |
| A | Uppercase letter | 65 | 01000001 | 0x41 |
| B | Uppercase letter | 66 | 01000010 | 0x42 |
| C | Uppercase letter | 67 | 01000011 | 0x43 |
| D | Uppercase letter | 68 | 01000100 | 0x44 |
| E | Uppercase letter | 69 | 01000101 | 0x45 |
| F | Uppercase letter | 70 | 01000110 | 0x46 |
| G | Uppercase letter | 71 | 01000111 | 0x47 |
| H | Uppercase letter | 72 | 01001000 | 0x48 |
| I | Uppercase letter | 73 | 01001001 | 0x49 |
| J | Uppercase letter | 74 | 01001010 | 0x4A |
| K | Uppercase letter | 75 | 01001011 | 0x4B |
| L | Uppercase letter | 76 | 01001100 | 0x4C |
| M | Uppercase letter | 77 | 01001101 | 0x4D |
| N | Uppercase letter | 78 | 01001110 | 0x4E |
| O | Uppercase letter | 79 | 01001111 | 0x4F |
| P | Uppercase letter | 80 | 01010000 | 0x50 |
| Q | Uppercase letter | 81 | 01010001 | 0x51 |
| R | Uppercase letter | 82 | 01010010 | 0x52 |
| S | Uppercase letter | 83 | 01010011 | 0x53 |
| T | Uppercase letter | 84 | 01010100 | 0x54 |
| U | Uppercase letter | 85 | 01010101 | 0x55 |
| V | Uppercase letter | 86 | 01010110 | 0x56 |
| W | Uppercase letter | 87 | 01010111 | 0x57 |
| X | Uppercase letter | 88 | 01011000 | 0x58 |
| Y | Uppercase letter | 89 | 01011001 | 0x59 |
| Z | Uppercase letter | 90 | 01011010 | 0x5A |
| [ | Symbol | 91 | 01011011 | 0x5B |
| \ | Symbol | 92 | 01011100 | 0x5C |
| ] | Symbol | 93 | 01011101 | 0x5D |
| ^ | Symbol | 94 | 01011110 | 0x5E |
| _ | Symbol | 95 | 01011111 | 0x5F |
| ` | Symbol | 96 | 01100000 | 0x60 |
| a | Lowercase letter | 97 | 01100001 | 0x61 |
| b | Lowercase letter | 98 | 01100010 | 0x62 |
| c | Lowercase letter | 99 | 01100011 | 0x63 |
| d | Lowercase letter | 100 | 01100100 | 0x64 |
| e | Lowercase letter | 101 | 01100101 | 0x65 |
| f | Lowercase letter | 102 | 01100110 | 0x66 |
| g | Lowercase letter | 103 | 01100111 | 0x67 |
| h | Lowercase letter | 104 | 01101000 | 0x68 |
| i | Lowercase letter | 105 | 01101001 | 0x69 |
| j | Lowercase letter | 106 | 01101010 | 0x6A |
| k | Lowercase letter | 107 | 01101011 | 0x6B |
| l | Lowercase letter | 108 | 01101100 | 0x6C |
| m | Lowercase letter | 109 | 01101101 | 0x6D |
| n | Lowercase letter | 110 | 01101110 | 0x6E |
| o | Lowercase letter | 111 | 01101111 | 0x6F |
| p | Lowercase letter | 112 | 01110000 | 0x70 |
| q | Lowercase letter | 113 | 01110001 | 0x71 |
| r | Lowercase letter | 114 | 01110010 | 0x72 |
| s | Lowercase letter | 115 | 01110011 | 0x73 |
| t | Lowercase letter | 116 | 01110100 | 0x74 |
| u | Lowercase letter | 117 | 01110101 | 0x75 |
| v | Lowercase letter | 118 | 01110110 | 0x76 |
| w | Lowercase letter | 119 | 01110111 | 0x77 |
| x | Lowercase letter | 120 | 01111000 | 0x78 |
| y | Lowercase letter | 121 | 01111001 | 0x79 |
| z | Lowercase letter | 122 | 01111010 | 0x7A |
| { | Symbol | 123 | 01111011 | 0x7B |
| | | Symbol | 124 | 01111100 | 0x7C |
| } | Symbol | 125 | 01111101 | 0x7D |
| ~ | Symbol | 126 | 01111110 | 0x7E |
ASCII itself is a 7-bit standard (codes 0–127). The leading zero shown here pads each printable value to the 8-bit byte format commonly used in files, tutorials, and binary-to-text tools.
Related Tools
You might also find these tools useful
Base Converter
Convert whole numbers between binary, octal, decimal, hex, and custom bases 2-36 in one hub.
Binary Calculator
Add, subtract, multiply, and divide binary numbers for math and computer science exercises.
Binary to Decimal
Turn base-2 numbers into decimal values for programming, networking, and study notes.
Binary to HEX
Compress long binary strings into hexadecimal groups for code, memory, and color checks.
Decimal to Binary
Convert everyday base-10 numbers into binary with clear fixed-width output.
Decimal to HEX
Translate decimal values into compact hexadecimal notation for technical references.