What Base64 is for
Base64 writes any bytes using 64 safe characters (A–Z, a–z, 0–9, + and /), so files can travel inside text: email attachments, JSON fields, data URIs in CSS and HTML, and tokens like JWTs.
It's an encoding, not encryption. Anyone can decode it, so never treat Base64 as a way to hide a password or key.