Base64 encode from text string/image/hex/binary:
The text input is first encoded as binary bit stream of ASCII codes of each character.
Each 6 bits of the bit stream are encoded to base64 digit.
Encoded base64 text string output:
Image data URI scheme with base64 encoded data output:
data:image/jpeg;base64, is the data URI scheme header.
/9j/4AAQSkZ... is the encoded base64 data.