Encodes binary data or text into Base64, a format that uses only letters, digits, and two safe characters. Base64 is used in data URLs, email attachments, and APIs.
Output is about 33% larger than the input but safe for transport in text-only channels.