Base64 Encoder/Decoder
Encode text to Base64 or decode Base64 strings. UTF-8 safe, perfect for API authentication and data encoding.
Result
—
What is Base64 Encoding?
Base64 is a binary-to-text encoding scheme that converts binary data into ASCII characters. It uses 64 characters (A-Z, a-z, 0-9, +, /) to represent data, making it safe to transmit through text-based protocols.
Common Use Cases
- HTTP Basic Authentication — Encoding username:password credentials
- Data URLs — Embedding images in HTML/CSS
- Email Attachments — MIME encoding for email
- API Payloads — Sending binary data in JSON
- JWT Tokens — JSON Web Tokens use Base64URL encoding
Base64 vs Base64URL
Standard Base64 uses + and / characters which are not URL-safe. Base64URL replaces + with - and / with _ for use in URLs and filenames.