toolqik

86 · Encode & Convert

Text to Binary

Convert text to binary code, one 8-bit group per byte, UTF-8 aware.

Runs in your browser
Values are
Separator
Format
Result

  

About this tool

Type any text and see it in binary, the 0s and 1s a computer actually stores. Each byte is shown as 8 bits, so Hi becomes 01001000 01101001. Choose how bytes are separated (space, none, comma or new line) and whether to add a 0b prefix.

How text becomes binary

  1. Each character is encoded as UTF-8 bytes. English letters are one byte each, with the same values as ASCII: H = 72.
  2. Each byte is written in base 2, padded to 8 digits: 72 = 64 + 8 = 01001000.
  3. Characters outside ASCII take more bytes: é is two bytes, an emoji four.

UTF-8 bytes or code points?

Computers store text as bytes, usually in UTF-8: English letters take one byte each (the same values as ASCII), while é takes two bytes (C3 A9) and most emoji four (👋 = F0 9F 91 8B). Choose UTF-8 bytes to see or decode the real bytes, as in files, network packets and hex dumps. Unicode code points gives one number per character instead (é = 233, 👋 = 128075). ASCII only rejects anything outside the 128 ASCII characters.

Examples

A      → 01000001
a      → 01100001
Hello  → 01001000 01100101 01101100 01101100 01101111
é      → 11000011 10101001
👋     → 11110000 10011111 10010001 10001011

Decode it again with binary to text, or see the same bytes in hexadecimal with text to hex.

FAQ

How do I convert text to binary?

Type or paste the text. Each character is converted to 8-bit binary bytes (UTF-8), separated by spaces by default.

What is “A” in binary?

01000001 (65 in decimal). Lowercase “a” is 01100001 (97).

Why are some characters more than 8 bits?

Characters outside ASCII take 2 to 4 bytes in UTF-8, so é is 16 bits and most emoji 32 bits.

Can I get binary without spaces?

Yes. Choose “None” as the separator for one continuous string of bits.

esc
↑↓ navigate↵ open