Demo
Encodes UTF-8 text as Base64. The same bits are shown first as bytes and then as six-bit groups, with the encoded character under each group; compare the result with a Base64 encoder.
UTF-8 bytes — each character over its bytes
01101000
h1100001110101001
éBase64 — 6 bits per character; every 4 characters encode 3 bytes, and = completes the last block
011010a
001100M
001110O
101001p
0 fill bits carry no data
Result: aMOp