Skip to main content
CalcChef

Binary Converter

Convert text to binary and binary back to text in UTF-8: Hello is 01001000 01100101 01101100 01101100 01101111. A second tab converts whole numbers. How it works

Use the Binary Converter

Text → binary
Binary (UTF-8)
01001000 01100101 01101100 01101100 01101111

Text is encoded as UTF-8 and shown as 8-bit groups: an ASCII letter is one group, é is two and an emoji is four. A lone surrogate half becomes U+FFFD. Binary back to text accepts groups separated by spaces, or one unbroken run whose length is a multiple of 8.

Reference: 0 to 16

The numbers 0 to 16 in decimal, binary, octal and hexadecimal
DecimalBinaryOctalHex
0000
1111
21022
31133
410044
510155
611066
711177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F
16100002010

About the Binary Converter

The letter A is 01000001 in binary: its character code, 65, written in 8 bits. “Hi” is 01001000 01101001 and “Hello” is 01001000 01100101 01101100 01101100 01101111. This binary converter turns text into binary and binary back into text using UTF-8, and a second tab converts whole numbers between binary, decimal, octal and hexadecimal.

The alphabet in binary (8-bit codes)

UppercaseBinary (uppercase)LowercaseBinary (lowercase)
A01000001a01100001
B01000010b01100010
C01000011c01100011
D01000100d01100100
E01000101e01100101
F01000110f01100110
G01000111g01100111
H01001000h01101000
I01001001i01101001
J01001010j01101010
K01001011k01101011
L01001100l01101100
M01001101m01101101
N01001110n01101110
O01001111o01101111
P01010000p01110000
Q01010001q01110001
R01010010r01110010
S01010011s01110011
T01010100t01110100
U01010101u01110101
V01010110v01110110
W01010111w01110111
X01011000x01111000
Y01011001y01111001
Z01011010z01111010

A lowercase letter differs from its capital in one bit, the third from the left, which is worth 32.

Digits and punctuation in binary

DigitBinary (digit)CharacterBinary (character)
000110000space00100000
100110001!00100001
200110010"00100010
300110011'00100111
400110100(00101000
500110101)00101001
600110110,00101100
700110111.00101110
800111000?00111111
900111001@01000000

These are the codes of the characters. The number 5 is 101 in binary, but the character “5” in a piece of text is 00110101.

Words and symbols in binary

TextBinary (UTF-8)
A01000001
Hi01001000 01101001
No01001110 01101111
Yes01011001 01100101 01110011
Hello01001000 01100101 01101100 01101100 01101111
hello01101000 01100101 01101100 01101100 01101111
I love you01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101
é11000011 10101001
€11100010 10000010 10101100
😀11110000 10011111 10011000 10000000

Common numbers in binary, octal and hexadecimal

DecimalBinaryOctalHexadecimal
321000004020
64100000010040
100110010014464
12711111111777F
1281000000020080
25511111111377FF
256100000000400100
1000111110100017503E8
1024100000000002000400
655351111111111111111177777FFFF

From the Number bases tab, which is the same converter as the separate Number Base Converter page. The numbers 0 to 16 are listed in the reference table inside the tool.

Frequently asked questions

What is A in binary?
01000001. A is character 65, and 65 = 64 + 1, so only the bits worth 64 and 1 are on. Lowercase a is 01100001.
How do you write Hello in binary?
01001000 01100101 01101100 01101100 01101111: one 8-bit group for each of H, e, l, l, o. All-lowercase hello starts with 01101000 instead.
How do I convert binary to text?
Split the binary into groups of 8 bits, read each group as a number, and look up the character with that code. 01001000 01101001 is 72 and 105, which spells “Hi”. In the tool, press the switch button to change to Binary → text. It accepts groups separated by spaces, or one unbroken run whose length is a multiple of 8.
What is 255 in binary?
11111111, eight ones, the largest value that fits in one byte. It is FF in hexadecimal and 377 in octal. Use the Number bases tab for numbers: the text tab would encode the three characters 2, 5 and 5 instead.
Why do some characters give more than 8 bits?
UTF-8 uses one byte for ASCII characters and two to four bytes for everything else. é is two bytes (11000011 10101001), € is three and the emoji 😀 is four.
How are negative numbers and fractions handled?
A negative number keeps a minus sign, so −5 is shown as -101. The converter does not produce two’s complement and does not convert fractions.

Related Tools

View all tools