Free forever · No sign-up

Text to Binary Converter

Convert any text to binary code instantly — every character becomes its UTF-8 binary. Free, fast, no sign-up.

Last updated: October 2026

Your data stays in your browser.

Recent

No recent conversions yet.

How to convert text to binary

  1. Take each character and get its UTF-8 byte values (for A-Z these match the ASCII codes).
  2. Convert each byte to 8-bit binary.
  3. Join the bytes with spaces — that's your binary code.

Example: "Hi" → H = 72 = 01001000, i = 105 = 01101001 → 01001000 01101001.

Background reading: the ASCII standard and UTF-8 on Wikipedia.

Conversion table

Uppercase A–Z with code points and 8-bit binary. Lowercase a–z are 97–122 and digits 0–9 are 48–57.

CharCode pointBinary
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

Powers of 2

PowerValue
201
212
224
238
2416
2532
2664
27128
28256
29512
2101024
2112048
2124096
2138192
21416384
21532768
21665536

Text to binary in code

Python

' '.join(format(b, '08b') for b in "Hi".encode())
# → '01001000 01101001'

JavaScript

const bytes = new TextEncoder().encode("Hi");
[...bytes].map(b => b.toString(2).padStart(8, "0")).join(" ");
// → '01001000 01101001'

C

#include <stdio.h>

int main(void) {
    const char *s = "Hi";
    for (int i = 0; s[i] != '\0'; i++) {
        for (int bit = 7; bit >= 0; bit--)
            putchar(((s[i] >> bit) & 1) ? '1' : '0');
        putchar(' ');
    }
    putchar('\n');  /* → 01001000 01101001 */
    return 0;
}

Real-world applications

Common mistakes

Common values

  • A = 01000001 (65)
  • Z = 01011010 (90)
  • a = 01100001 (97)
  • space = 00100000 (32)
  • 0 = 00110000 (48)
  • ! = 00100001 (33)

Key takeaways

  • Each character is stored as its code point — ‘A’ is 65.
  • Plain ASCII text uses 8 bits (one byte) per character.
  • UTF-8 keeps ASCII identical and uses multiple bytes for other scripts and emoji.
  • Group output in 8s to read one character per group.

Frequently asked questions

How do I convert text to binary?

Convert each character to its UTF-8 bytes, then each byte to 8-bit binary. The converter above does it instantly.

What is “hello” in binary?

“Hello” in binary is 01001000 01100101 01101100 01101100 01101111.

Does it support emoji and non-English text?

Yes — it uses UTF-8, so emoji and non-Latin scripts convert correctly.

How many bits is one character?

In UTF-8, A–Z take 8 bits each, but emoji and many non-Latin characters take 16–32 bits.

What is the binary for a space?

A space is byte 32, which is 00100000 in binary.

What is ‘A’ in binary?

‘A’ is code point 65 = 01000001 in 8-bit binary.

Does this handle emoji?

Yes — the encoder uses UTF-8, so emoji become multi-byte sequences (for example 😀 is 4 bytes = 32 bits).

Why is each character 8 bits?

Plain ASCII/UTF-8 text stores one character per byte (8 bits), which is why the output is grouped in 8s.

Need the reverse? Try our binary to text converter.

More converters

Add this converter to your website

Embed our free binary to decimal converter on your own site with one line of code:

<script src="https://binary-to-decimal-28z.pages.dev/embed.js"></script>