Base64 is an encoding, specified in RFC 4648, that represents binary data as text using a 64-character alphabet. It is used when data must pass through text-based channels such as email and web APIs. Unlike encryption, it can be reversed without a secret key.
In AI applications, it is commonly used to embed images and other files in JSON API requests sent to models. In security, it is also used to obfuscate malicious code.