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.

CharacterCode pointUTF-8 bytes (binary)Decimal
HU+00480100100072
iU+006901101001105

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

  1. 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.
  2. Pick Hex, Dec or Oct to see the same bytes as other numbers, or to decode hex, decimal or octal into text.
  3. Choose what goes between bytes (a space, nothing, a comma or a new line) and whether each byte gets a 0b or 0x prefix.
  4. 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.

Letters A to Z in binary, capital and small
LetterCapitalSmall
A a0100000101100001
B b0100001001100010
C c0100001101100011
D d0100010001100100
E e0100010101100101
F f0100011001100110
G g0100011101100111
H h0100100001101000
I i0100100101101001
J j0100101001101010
K k0100101101101011
L l0100110001101100
M m0100110101101101
N n0100111001101110
O o0100111101101111
P p0101000001110000
Q q0101000101110001
R r0101001001110010
S s0101001101110011
T t0101010001110100
U u0101010101110101
V v0101011001110110
W w0101011101110111
X x0101100001111000
Y y0101100101111001
Z z0101101001111010

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:

BytesCode pointsBit patternExample
1U+0000 – U+007F0xxxxxxxA U+0041
01000001
2U+0080 – U+07FF110xxxxx 10xxxxxxé U+00E9
11000011 10101001
3U+0800 – U+FFFF1110xxxx 10xxxxxx 10xxxxxx€ U+20AC
11100010 10000010 10101100
4U+10000 – U+10FFFF11110xxx 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"
Binary01001000 01100101 01101100 01101100 01101111
Hex48 65 6C 6C 6F
Decimal72 101 108 108 111
Octal110 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

TextBinary (UTF-8)
Hi01001000 01101001
Hello01001000 01100101 01101100 01101100 01101111
Yes01011001 01100101 01110011
No01001110 01101111
I love you01001001 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
ASCII codes 0 to 127
DecHexOctBinaryCharacter
00000000000000NUL
10100100000001SOH
20200200000010STX
30300300000011ETX
40400400000100EOT
50500500000101ENQ
60600600000110ACK
70700700000111BEL
80801000001000BS
90901100001001TAB
100A01200001010LF
110B01300001011VT
120C01400001100FF
130D01500001101CR
140E01600001110SO
150F01700001111SI
161002000010000DLE
171102100010001DC1
181202200010010DC2
191302300010011DC3
201402400010100DC4
211502500010101NAK
221602600010110SYN
231702700010111ETB
241803000011000CAN
251903100011001EM
261A03200011010SUB
271B03300011011ESC
281C03400011100FS
291D03500011101GS
301E03600011110RS
311F03700011111US
322004000100000Space
332104100100001!
342204200100010"
352304300100011#
362404400100100$
372504500100101%
382604600100110&
392704700100111'
402805000101000(
412905100101001)
422A05200101010*
432B05300101011+
442C05400101100,
452D05500101101-
462E05600101110.
472F05700101111/
4830060001100000
4931061001100011
5032062001100102
5133063001100113
5234064001101004
5335065001101015
5436066001101106
5537067001101117
5638070001110008
5739071001110019
583A07200111010:
593B07300111011;
603C07400111100<
613D07500111101=
623E07600111110>
633F07700111111?
644010001000000@
654110101000001A
664210201000010B
674310301000011C
684410401000100D
694510501000101E
704610601000110F
714710701000111G
724811001001000H
734911101001001I
744A11201001010J
754B11301001011K
764C11401001100L
774D11501001101M
784E11601001110N
794F11701001111O
805012001010000P
815112101010001Q
825212201010010R
835312301010011S
845412401010100T
855512501010101U
865612601010110V
875712701010111W
885813001011000X
895913101011001Y
905A13201011010Z
915B13301011011[
925C13401011100\
935D13501011101]
945E13601011110^
955F13701011111_
966014001100000`
976114101100001a
986214201100010b
996314301100011c
1006414401100100d
1016514501100101e
1026614601100110f
1036714701100111g
1046815001101000h
1056915101101001i
1066A15201101010j
1076B15301101011k
1086C15401101100l
1096D15501101101m
1106E15601101110n
1116F15701101111o
1127016001110000p
1137116101110001q
1147216201110010r
1157316301110011s
1167416401110100t
1177516501110101u
1187616601110110v
1197716701110111w
1207817001111000x
1217917101111001y
1227A17201111010z
1237B17301111011{
1247C17401111100|
1257D17501111101}
1267E17601111110~
1277F17701111111DEL

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.

Advertisement