What Base64 encoding is used for
Base64 converts binary data into ASCII text so it can travel through systems that only accept text, email, JSON fields, data URLs and JWT tokens all use it. Developers encode images inline for small icons and decode API payloads that return Base64 strings.
Base64 is not encryption. Anyone can decode it. Never treat Base64 as security. It is a transport encoding, not a way to hide secrets.