Binary Translator
Type text to get binary, or paste binary to read the text. Works with accents and emoji, and shows the same bytes in hex, decimal and octal.
2 characters · 2 bytes · 16 bits
Character by character
Each character, its Unicode number (code point) and the UTF-8 bytes that store it.
| Character | Code point | UTF-8 bytes (binary) | Decimal |
|---|---|---|---|
| H | U+0048 | 01001000 | 72 |
| i | U+0069 | 01101001 | 105 |
Why use this binary translator?
Computers store every letter as a number, and every number as bits. This translator shows that in both directions as you type: text to the binary a computer would store, and binary back to text. It uses UTF-8, the encoding of the web, so é, ü, Chinese characters and emoji translate correctly, and it shows the same bytes as hex, decimal or octal. Paste binary in almost any layout (with or without spaces, commas, new lines or 0b) and it is read; if a digit is wrong or missing, it tells you exactly where.
How to translate binary
- Type or paste text in Text to get its binary, or paste binary in the second box to get the text. Each box updates the other.
- Pick Hex, Dec or Oct to see the same bytes as other numbers, or to decode hex, decimal or octal into text.
- Choose what goes between bytes (a space, nothing, a comma or a new line) and whether each byte gets a 0b or 0x prefix.
- Copy either side, save a .txt file or share a link. Open Character by character to see how each character becomes bytes.
The binary alphabet
Every capital and small letter as the byte that stores it, in ASCII and UTF-8 alike. Capitals run from 01000001 (A, 65) and small letters from 01100001 (a, 97): the only difference is the bit worth 32, third from the left.
| Letter | Capital | Small |
|---|---|---|
| A a | 01000001 | 01100001 |
| B b | 01000010 | 01100010 |
| C c | 01000011 | 01100011 |
| D d | 01000100 | 01100100 |
| E e | 01000101 | 01100101 |
| F f | 01000110 | 01100110 |
| G g | 01000111 | 01100111 |
| H h | 01001000 | 01101000 |
| I i | 01001001 | 01101001 |
| J j | 01001010 | 01101010 |
| K k | 01001011 | 01101011 |
| L l | 01001100 | 01101100 |
| M m | 01001101 | 01101101 |
| N n | 01001110 | 01101110 |
| O o | 01001111 | 01101111 |
| P p | 01010000 | 01110000 |
| Q q | 01010001 | 01110001 |
| R r | 01010010 | 01110010 |
| S s | 01010011 | 01110011 |
| T t | 01010100 | 01110100 |
| U u | 01010101 | 01110101 |
| V v | 01010110 | 01110110 |
| W w | 01010111 | 01110111 |
| X x | 01011000 | 01111000 |
| Y y | 01011001 | 01111001 |
| Z z | 01011010 | 01111010 |
The digits 0 to 9 are text characters too, stored as 00110000 to 00111001: 0 is 00110000, 1 is 00110001, 2 is 00110010, and so on. A space is 00100000.
How to read binary by hand
A byte is 8 bits, and each position has a value, doubling from right to left: 1, 2, 4, 8, 16, 32, 64, 128. Add the values wherever there is a 1. For 01001000 that is 64 + 8 = 72, and character 72 is H. Then look the number up in the ASCII table below, or let the translator do it. Try it: tap the bits.
64 + 8 = 72 · hex 48 · character H
How text becomes binary: ASCII, Unicode and UTF-8
Text becomes binary in two steps. First, every character has a number in Unicode, the catalogue of all characters: A is 65 (written U+0041), é is 233 (U+00E9), 😀 is 128,512 (U+1F600). Then an encoding turns that number into bytes. The web uses UTF-8, which stores the first 128 characters, the old ASCII set, in a single byte and everything else in two to four bytes whose leading bits say how many bytes belong together:
| Bytes | Code points | Bit pattern | Example |
|---|---|---|---|
| 1 | U+0000 – U+007F | 0xxxxxxx | A U+0041 01000001 |
| 2 | U+0080 – U+07FF | 110xxxxx 10xxxxxx | é U+00E9 11000011 10101001 |
| 3 | U+0800 – U+FFFF | 1110xxxx 10xxxxxx 10xxxxxx | € U+20AC 11100010 10000010 10101100 |
| 4 | U+10000 – U+10FFFF | 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx | 😀 U+1F600 11110000 10011111 10011000 10000000 |
So "Hi" takes two bytes, while a single emoji takes four. The x positions hold the code point's own bits: é is 233, 11101001 in binary, split as 00011 and 101001 into 11000011 10101001.
The same bytes in binary, hex, decimal and octal
Binary, hexadecimal, decimal and octal are four ways to write the same numbers. This is "Hello" in each:
| Format | "Hello" |
|---|---|
| Binary | 01001000 01100101 01101100 01101100 01101111 |
| Hex | 48 65 6C 6C 6F |
| Decimal | 72 101 108 108 111 |
| Octal | 110 145 154 154 157 |
Programmers favour hex because one hex digit is exactly four bits, so a byte is always two digits: 01001000 splits into 0100 and 1000, which are 4 and 8, hex 48. You'll meet the same bytes as %48 in web addresses (see the URL encoder), packed into letters and digits by Base64, and as numbers in any base in the number base converter.
Common words in binary
| Text | Binary (UTF-8) |
|---|---|
| Hi | 01001000 01101001 |
| Hello | 01001000 01100101 01101100 01101100 01101111 |
| Yes | 01011001 01100101 01110011 |
| No | 01001110 01101111 |
| I love you | 01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101 |
Why binary sometimes won't decode
- A missing or extra digit. Bytes are 8 digits; drop one and every following byte shifts. With spaces between bytes the translator names the bad group; without them it tells you how many digits are left over.
- 7-bit ASCII. Some puzzles write each character in 7 bits (1001000 for H). With spaces that just works; without spaces, a length that divides by 7 but not by 8 is read as 7-bit groups, and the translator says so.
- Latin-1 instead of UTF-8. Older tools write é as the single byte 11101001; UTF-8 needs two, 11000011 10101001. Bytes that aren't valid UTF-8 are read as Latin-1 instead, with a note.
- Numbers versus text. The character "5" is the byte 00110101, but the number 5 is 101 in binary. To convert numbers rather than text, use the number base converter.
- Wrong format. 48 65 6C is hex, not decimal. Paste it into the wrong tab and the translator recognises the format and switches.
ASCII table: codes 0 to 127
The first 128 characters are the same in ASCII, Latin-1 and UTF-8. Codes 0 to 31 and 127 are control codes (new line is 10, tab is 9), which is why they show as names.
Show all 128 codes in decimal, hex, octal and binary
| Dec | Hex | Oct | Binary | Character |
|---|---|---|---|---|
| 0 | 00 | 000 | 00000000 | NUL |
| 1 | 01 | 001 | 00000001 | SOH |
| 2 | 02 | 002 | 00000010 | STX |
| 3 | 03 | 003 | 00000011 | ETX |
| 4 | 04 | 004 | 00000100 | EOT |
| 5 | 05 | 005 | 00000101 | ENQ |
| 6 | 06 | 006 | 00000110 | ACK |
| 7 | 07 | 007 | 00000111 | BEL |
| 8 | 08 | 010 | 00001000 | BS |
| 9 | 09 | 011 | 00001001 | TAB |
| 10 | 0A | 012 | 00001010 | LF |
| 11 | 0B | 013 | 00001011 | VT |
| 12 | 0C | 014 | 00001100 | FF |
| 13 | 0D | 015 | 00001101 | CR |
| 14 | 0E | 016 | 00001110 | SO |
| 15 | 0F | 017 | 00001111 | SI |
| 16 | 10 | 020 | 00010000 | DLE |
| 17 | 11 | 021 | 00010001 | DC1 |
| 18 | 12 | 022 | 00010010 | DC2 |
| 19 | 13 | 023 | 00010011 | DC3 |
| 20 | 14 | 024 | 00010100 | DC4 |
| 21 | 15 | 025 | 00010101 | NAK |
| 22 | 16 | 026 | 00010110 | SYN |
| 23 | 17 | 027 | 00010111 | ETB |
| 24 | 18 | 030 | 00011000 | CAN |
| 25 | 19 | 031 | 00011001 | EM |
| 26 | 1A | 032 | 00011010 | SUB |
| 27 | 1B | 033 | 00011011 | ESC |
| 28 | 1C | 034 | 00011100 | FS |
| 29 | 1D | 035 | 00011101 | GS |
| 30 | 1E | 036 | 00011110 | RS |
| 31 | 1F | 037 | 00011111 | US |
| 32 | 20 | 040 | 00100000 | Space |
| 33 | 21 | 041 | 00100001 | ! |
| 34 | 22 | 042 | 00100010 | " |
| 35 | 23 | 043 | 00100011 | # |
| 36 | 24 | 044 | 00100100 | $ |
| 37 | 25 | 045 | 00100101 | % |
| 38 | 26 | 046 | 00100110 | & |
| 39 | 27 | 047 | 00100111 | ' |
| 40 | 28 | 050 | 00101000 | ( |
| 41 | 29 | 051 | 00101001 | ) |
| 42 | 2A | 052 | 00101010 | * |
| 43 | 2B | 053 | 00101011 | + |
| 44 | 2C | 054 | 00101100 | , |
| 45 | 2D | 055 | 00101101 | - |
| 46 | 2E | 056 | 00101110 | . |
| 47 | 2F | 057 | 00101111 | / |
| 48 | 30 | 060 | 00110000 | 0 |
| 49 | 31 | 061 | 00110001 | 1 |
| 50 | 32 | 062 | 00110010 | 2 |
| 51 | 33 | 063 | 00110011 | 3 |
| 52 | 34 | 064 | 00110100 | 4 |
| 53 | 35 | 065 | 00110101 | 5 |
| 54 | 36 | 066 | 00110110 | 6 |
| 55 | 37 | 067 | 00110111 | 7 |
| 56 | 38 | 070 | 00111000 | 8 |
| 57 | 39 | 071 | 00111001 | 9 |
| 58 | 3A | 072 | 00111010 | : |
| 59 | 3B | 073 | 00111011 | ; |
| 60 | 3C | 074 | 00111100 | < |
| 61 | 3D | 075 | 00111101 | = |
| 62 | 3E | 076 | 00111110 | > |
| 63 | 3F | 077 | 00111111 | ? |
| 64 | 40 | 100 | 01000000 | @ |
| 65 | 41 | 101 | 01000001 | A |
| 66 | 42 | 102 | 01000010 | B |
| 67 | 43 | 103 | 01000011 | C |
| 68 | 44 | 104 | 01000100 | D |
| 69 | 45 | 105 | 01000101 | E |
| 70 | 46 | 106 | 01000110 | F |
| 71 | 47 | 107 | 01000111 | G |
| 72 | 48 | 110 | 01001000 | H |
| 73 | 49 | 111 | 01001001 | I |
| 74 | 4A | 112 | 01001010 | J |
| 75 | 4B | 113 | 01001011 | K |
| 76 | 4C | 114 | 01001100 | L |
| 77 | 4D | 115 | 01001101 | M |
| 78 | 4E | 116 | 01001110 | N |
| 79 | 4F | 117 | 01001111 | O |
| 80 | 50 | 120 | 01010000 | P |
| 81 | 51 | 121 | 01010001 | Q |
| 82 | 52 | 122 | 01010010 | R |
| 83 | 53 | 123 | 01010011 | S |
| 84 | 54 | 124 | 01010100 | T |
| 85 | 55 | 125 | 01010101 | U |
| 86 | 56 | 126 | 01010110 | V |
| 87 | 57 | 127 | 01010111 | W |
| 88 | 58 | 130 | 01011000 | X |
| 89 | 59 | 131 | 01011001 | Y |
| 90 | 5A | 132 | 01011010 | Z |
| 91 | 5B | 133 | 01011011 | [ |
| 92 | 5C | 134 | 01011100 | \ |
| 93 | 5D | 135 | 01011101 | ] |
| 94 | 5E | 136 | 01011110 | ^ |
| 95 | 5F | 137 | 01011111 | _ |
| 96 | 60 | 140 | 01100000 | ` |
| 97 | 61 | 141 | 01100001 | a |
| 98 | 62 | 142 | 01100010 | b |
| 99 | 63 | 143 | 01100011 | c |
| 100 | 64 | 144 | 01100100 | d |
| 101 | 65 | 145 | 01100101 | e |
| 102 | 66 | 146 | 01100110 | f |
| 103 | 67 | 147 | 01100111 | g |
| 104 | 68 | 150 | 01101000 | h |
| 105 | 69 | 151 | 01101001 | i |
| 106 | 6A | 152 | 01101010 | j |
| 107 | 6B | 153 | 01101011 | k |
| 108 | 6C | 154 | 01101100 | l |
| 109 | 6D | 155 | 01101101 | m |
| 110 | 6E | 156 | 01101110 | n |
| 111 | 6F | 157 | 01101111 | o |
| 112 | 70 | 160 | 01110000 | p |
| 113 | 71 | 161 | 01110001 | q |
| 114 | 72 | 162 | 01110010 | r |
| 115 | 73 | 163 | 01110011 | s |
| 116 | 74 | 164 | 01110100 | t |
| 117 | 75 | 165 | 01110101 | u |
| 118 | 76 | 166 | 01110110 | v |
| 119 | 77 | 167 | 01110111 | w |
| 120 | 78 | 170 | 01111000 | x |
| 121 | 79 | 171 | 01111001 | y |
| 122 | 7A | 172 | 01111010 | z |
| 123 | 7B | 173 | 01111011 | { |
| 124 | 7C | 174 | 01111100 | | |
| 125 | 7D | 175 | 01111101 | } |
| 126 | 7E | 176 | 01111110 | ~ |
| 127 | 7F | 177 | 01111111 | DEL |
Other ways to encode a message: the Morse code translator turns text into dots and dashes you can hear, the Roman numeral converter writes numbers the Roman way, and the hash generator turns text into a fingerprint of its bytes.
Frequently asked questions
How do I translate binary to text?
Paste the binary into the Binary box and the text appears in the Text box as you type. Groups of 8 digits (bytes) can be separated by spaces, commas or new lines, or written with no separators at all; 0b prefixes are fine. Each byte is a number from 0 to 255, and the numbers are read as UTF-8 text, so accented letters and emoji come out right. If a digit is missing or isn't 0 or 1, the translator says which group is wrong.
How do I convert text to binary?
Type or paste the text in the Text box and its binary appears instantly. Each character becomes one or more bytes of 8 digits: H is 01001000 and i is 01101001, so "Hi" is 01001000 01101001. Choose a separator (space, none, comma or new line) and switch to Hex, Decimal or Octal to see the same bytes as other numbers.
What is "hello" in binary?
"hello" is 01101000 01100101 01101100 01101100 01101111. With a capital H, "Hello" starts with 01001000 instead: capital and small letters differ by exactly one bit, the third digit from the left (worth 32).
What does 01001000 01101001 mean?
It spells "Hi". 01001000 is 64 + 8 = 72, the code for H, and 01101001 is 64 + 32 + 8 + 1 = 105, the code for i. Paste any binary message into the Binary box to decode it the same way.
How many bits are in a letter?
In UTF-8, the encoding used by the web, the letters A to Z, the digits and common punctuation take one byte: 8 bits. Accented letters such as é take two bytes (16 bits), most other alphabets two or three, and emoji four bytes (32 bits). Plain ASCII only needs 7 bits per character, which is why its first bit is always 0 when written as a byte.
What is the difference between ASCII and UTF-8?
ASCII is a 1960s code with 128 characters: English letters, digits, punctuation and control codes, numbered 0 to 127. UTF-8 is a way to store every Unicode character, over 150,000 of them, in 1 to 4 bytes. It keeps ASCII exactly as it was, so for English text the binary is identical, and uses more bytes only for other characters.
Why does another translator give a different binary for é or emoji?
Many simple translators write each character's code number instead of its UTF-8 bytes, so é (code 233) becomes 11101001, while UTF-8 stores it as 11000011 10101001. Both describe é, in different encodings. This translator writes UTF-8, and when it decodes bytes that aren't valid UTF-8 it reads them one byte per character (Latin-1) and tells you, so binary from those tools still decodes.
How do I write my name in binary?
Type your name into the Text box: each letter becomes 8 digits. "Ada", for example, is 01000001 01100100 01100001. Copy the result, or press Share to send a link that opens with your binary already decoded.
What is "I love you" in binary?
"I love you" is 01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101. The 00100000 bytes are the spaces between the words.
Can it convert hex, decimal or octal to text?
Yes. Pick Hex, Decimal or Octal above the second box and paste the numbers; the text appears as you type. Hex can be written as 48 65 6C, 0x48, \x48, %48 or 48656C, so "Hi" in hex is 48 69. If you paste numbers in another format than the one selected, the translator recognises them and switches.
How do you read a binary number?
Each of the 8 digits in a byte has a place value, from left to right 128, 64, 32, 16, 8, 4, 2 and 1. Add up the place values where there is a 1: 01000001 is 64 + 1 = 65, the code for A. The byte explorer on this page lets you flip the bits and watch the number and the character change.
Is my text uploaded anywhere?
No. Translating, decoding and the character table all run in your browser, and nothing is sent to a server. The last text and your settings stay in this browser's local storage. A share link carries the text after the # in the address, a part browsers never send to the website.
Related tools
More free, private, browser-based utilities — no upload, no sign-up.