Encode text or files to Base64 and decode Base64 strings back to text. Supports UTF-8 and file encoding.
Base64 is a binary-to-text encoding scheme that represents binary data using a set of 64 ASCII characters (A-Z, a-z, 0-9, +, and /). It was originally designed for transmitting data over channels that only reliably support text, such as email (MIME) and early HTTP implementations. Today it remains essential whenever you need to embed binary content in a text-only context.
Common use cases include data URIs for embedding small images directly in HTML or CSS (avoiding extra HTTP requests), encoding file attachments in email, transmitting binary payloads in JSON API requests, and storing binary data in text-based databases or configuration files. Base64-encoded data is roughly 33% larger than the original, so it is best suited for small to medium assets.
This tool handles both encoding (text or file to Base64) and decoding (Base64 back to the original content). It uses the browser's native TextEncoder API for proper UTF-8 support, meaning it correctly processes all Unicode characters including emoji and non-Latin scripts.