What is Base64 used for?
Encoding binary or special text into plain ASCII for APIs, data URIs, email attachments, and tokens.
Does it support Unicode and emoji?
Yes — encoding is UTF-8 safe on both server and browser sides.
Why does decode say invalid?
Base64 must use A-Z, a-z, 0-9, +, / and = padding. Whitespace is tolerated; other characters are rejected.