Text to Binary Converter

Instantly convert any text message into binary code. Free, private, and fast — encoding runs entirely in your browser.

A text to binary converter encodes each character as UTF-8 and writes every byte as eight bits.

Example: A = 01000001

This tool uses UTF-8 encoding. Letters and digits in English use one byte each; other characters can use two, three, or four bytes.

Last updated . Full ASCII table (decimal, hexadecimal, octal, and binary).

How to convert text to binary by hand

A text to binary converter maps each character to its numeric code (via UTF-8), then writes that number in base 2 with eight bits per byte.

  1. Pick a character (example: H).
  2. Find its ASCII code — H = 72. Use the ASCII table if needed.
  3. Convert 72 to binary with powers of 2: 64+8 = 72 → 01001000.
  4. Repeat for every character and join the bytes with spaces.
H (72) → 01001000
i (105) → 01101001
Hi → 01001000 01101001

Longer walkthrough: complete text to binary guide.

Text to binary examples

TextBinary
A01000001
a01100001
000110000
(space)00100000
Hi01001000 01101001
OK01001111 01001011
Hello01001000 01100101 01101100 01101100 01101111
Love01001100 01101111 01110110 01100101
Binary01000010 01101001 01101110 01100001 01110010 01111001

Character to ASCII code to binary

Take the word Hi! one character at a time. The ASCII code is the decimal number in the ASCII table. The binary column is that number written with eight bits. 72 is H, 105 is i, and 33 is the exclamation mark.

CharacterASCII codeBinary
H7201001000
i10501101001
!3300100001

Hi! = 01001000 01101001 00100001

Binary alphabet

Uppercase and lowercase are different codes. A is 65 (01000001) and a is 97 (01100001). The full chart, including digits and controls, is the ASCII table.

A–Z uppercase

LetterASCIIBinary
A6501000001
B6601000010
C6701000011
D6801000100
E6901000101
F7001000110
G7101000111
H7201001000
I7301001001
J7401001010
K7501001011
L7601001100
M7701001101
N7801001110
O7901001111
P8001010000
Q8101010001
R8201010010
S8301010011
T8401010100
U8501010101
V8601010110
W8701010111
X8801011000
Y8901011001
Z9001011010

a–z lowercase

LetterASCIIBinary
a9701100001
b9801100010
c9901100011
d10001100100
e10101100101
f10201100110
g10301100111
h10401101000
i10501101001
j10601101010
k10701101011
l10801101100
m10901101101
n11001101110
o11101101111
p11201110000
q11301110001
r11401110010
s11501110011
t11601110100
u11701110101
v11801110110
w11901110111
x12001111000
y12101111001
z12201111010

ASCII, UTF-8, and emoji

ASCII is 128 codes, from 0 to 127, and each one fits in a single byte. UTF-8 stores those same codes as the same single byte, then uses two, three, or four bytes for everything else. An emoji is not one “extra ASCII character”; it is a Unicode character whose UTF-8 form is four bytes.

TextEncodingBytesHexBinary
AASCII and UTF-814101000001
HiASCII and UTF-8248 6901001000 01101001
éUTF-8 only2C3 A911000011 10101001
😀UTF-8 only4F0 9F 98 8011110000 10011111 10011000 10000000

é looks like one letter and uses two bytes (C3 A9). The grinning face uses four bytes (F0 9F 98 80). Splitting those bytes apart and reading each one as its own ASCII letter produces garbage, not the original character.

Convert text to binary in code

Both snippets encode with UTF-8 and print each byte as eight bits. They match this site for the letter A.

JavaScript

const text = "A";
const bytes = new TextEncoder().encode(text);
const binary = [...bytes].map((byte) => byte.toString(2).padStart(8, "0")).join(" ");
// A → 01000001

Python

text = "A"
binary = " ".join(f"{byte:08b}" for byte in text.encode("utf-8"))
# A → 01000001

Frequently Asked Questions

How do I convert text to binary online?

Type or paste your text into the converter. Each character is encoded to UTF-8 bytes, and each byte is shown as an 8-bit binary string (for example A → 01000001).

Does text to binary support special characters?

Yes. The converter uses UTF-8, so emoji, accented letters, and symbols are supported. Multi-byte characters produce multiple 8-bit groups.

Is this text to binary tool free?

Completely free — no account, no daily limits, and conversion stays on your device.

What is the binary for “Hello”?

H=01001000, e=01100101, l=01101100, l=01101100, o=01101111 — so Hello = 01001000 01100101 01101100 01101100 01101111.

How do I convert text to binary by hand?

For ASCII, convert the character code to an 8-bit byte (A=65 → 01000001). For other text, encode it as UTF-8 first and convert each resulting byte. Join the bytes with spaces.

Related tools & guides