Binary & UTF-8

Text to Binary with UTF-8: English, Vietnamese, and Emoji

A visible character is not always one byte. Encode Keyboard converts text to UTF-8 first, then displays every byte as an eight-bit group so English, Vietnamese, and emoji follow the same reversible rule.

Quick answer

Key points

  • UTF-8 uses one to four bytes for a Unicode scalar value.
  • Each byte becomes exactly eight Binary digits in Encode Keyboard.
  • The round trip is exact only when the bits form valid UTF-8 bytes.
01

Visible characters and bytes are different layers

Unicode gives text characters abstract values. UTF-8 serializes those values as bytes: ASCII characters use one byte, while many Vietnamese letters use two and many emoji use four. RFC 3629 defines UTF-8 sequences of one to four octets.

Binary is simply another way to write each numeric byte. Encode Keyboard pads every byte to eight bits and separates groups with spaces for readability.

02

English, Vietnamese, and emoji examples

These examples show the hexadecimal UTF-8 bytes and the corresponding eight-bit groups:

  • A → 41 → 01000001 (one byte).
  • đ → C4 91 → 11000100 10010001 (two bytes).
  • á → C3 A1 → 11000011 10100001 (two bytes).
  • 👋 → F0 9F 91 8B → 11110000 10011111 10010001 10001011 (four bytes).
Example · Two ASCII characters
Hi01001000 01101001

H is byte 72 and i is byte 105. Each is rendered as eight bits.

03

Why look-alike text can produce different bits

Unicode can represent some visible forms in more than one sequence. A precomposed á and an a followed by a combining acute accent can look identical while using different code points and bytes.

Encode Keyboard preserves the input sequence; it does not silently normalize Unicode for Binary or Base64. Therefore two visually similar strings may encode differently yet each can round-trip to its own original sequence.

04

What a valid Binary decode requires

The decoder accepts only 0 and 1 after permitted spacing is removed. The number of bits must divide into complete eight-bit bytes, and those bytes must form valid UTF-8 text.

Binary encoding does not create secrecy. Anyone who knows the bytes can recover the text. Use it to learn, inspect UTF-8, or make a reversible visual representation of non-sensitive content.

?

Frequently asked questions

Is one character always one byte?

No. In UTF-8, a Unicode scalar value uses one to four bytes, and a visible grapheme can contain more than one scalar value.

Why does an emoji create four bit groups?

Many emoji scalar values use four UTF-8 bytes, and Encode Keyboard shows one eight-bit group per byte.

Is Binary a form of encryption?

No. It is a public number representation and can be reversed without a secret key.

Primary sources

This guide prioritizes documentation from the organizations responsible for the standard or platform.

  1. RFC 3629: UTF-8, a transformation format of ISO 10646
  2. Unicode glossary

Encode Keyboard

Use it where you type

Encode Keyboard transforms text on device from the app or its custom iOS keyboard. No Full Access is required.

Download Encode Keyboard on the App Store