Encode text to Base64 or decode Base64 back to text.
Encode text to Base64 for safe transmission in URLs, emails, and APIs — or decode Base64 strings back to readable text. Base64 encoding is used everywhere in web development: data URIs, email attachments (MIME), API authentication headers, and embedding binary data in text formats like JSON and XML.
Base64 is a method of encoding binary data (or text) into ASCII characters using only letters (A-Z, a-z), numbers (0-9), and two symbols (+ and /). This makes the data safe to transmit through systems that only handle text — like email, URLs, or JSON payloads. The encoded output is approximately 33% larger than the original.
Embedding images in HTML/CSS (data URIs), encoding API authentication credentials (HTTP Basic Auth header), transmitting binary files in JSON APIs, storing binary data in text-based databases, email attachment encoding (MIME), and including special characters in URLs safely. If you work with web APIs, you encounter Base64 regularly.