Text To Binary

Convert text to binary, hex, octal or decimal bytes

Convert any text - including emoji and accented letters - into binary (or hex, octal or decimal) using UTF-8, with a character-by-character breakdown.
Try an example:

Output will appear here...

About Text To Binary

How it works

  1. Each character is converted to its Unicode code point (e.g. "H" is U+0048).
  2. The code point is encoded as UTF-8: 1 byte for basic Latin letters, 2-4 bytes for accented letters, other alphabets and emoji.
  3. Each byte is written as 8 binary digits (or in hex, octal or decimal). The table below shows the breakdown for every character.

What you need

  • Any text.

Tips

  • Emoji take 4 bytes (32 bits) each, which is why they make binary output much longer.
  • Use hex output to compare with what you see in a hex editor or network capture.

Runs in your browser. Everything happens in your browser - the text you enter is never uploaded.

Frequently asked questions

Why does "é" become 16 bits?+

In UTF-8, characters beyond basic ASCII need more than one byte. "é" (U+00E9) is stored as two bytes: 11000011 10101001.

What is the difference between ASCII and UTF-8?+

ASCII covers 128 characters in 7 bits. UTF-8 is backwards compatible with ASCII and extends it to all of Unicode using 1 to 4 bytes per character.