Encode text or binary data to Base64, or decode Base64 back to plain text.
Base64 encoding converts binary data to ASCII text using 64 printable characters. It's commonly used to embed binary data in JSON, HTML, CSS, and HTTP headers. URL-safe mode replaces + with - and / with _ so the result can be used in URLs without encoding.