What Base64 Is Used For
Base64 represents binary data with 64 safe text characters so it can travel through systems that only handle text, such as email attachments, JSON payloads, data URLs, and HTTP Basic authentication headers.
Encoding makes data about 33% larger: every 3 bytes become 4 characters, with = signs used as padding at the end.