Base64 Encoder/Decoder
Instantly encode and decode Base64 data with full UTF-8 and Unicode support. Perfect for APIs, data transmission, and storage.
How Base64 Encoding Works
Base64 converts binary data into ASCII text using 64 characters (A-Z, a-z, 0-9, +, /). Three bytes become 4 Base64 characters.
Examples
Input: Hello World
Output: SGVsbG8gV29ybGQ=
Output: SGVsbG8gV29ybGQ=
Input: user@example.com
Output: dXNlckBleGFtcGxlLmNvbQ==
Output: dXNlckBleGFtcGxlLmNvbQ==
Input: Hello 🌍 (with emoji)
Output: SGVsbG8g8J+OjQ==
Output: SGVsbG8g8J+OjQ==
When to Use the Base64 Encoder/Decoder
Base64 encoding and decoding are essential for developers and system administrators:
- API Integration: Many APIs require Base64-encoded credentials, files, or payloads for authentication and data transmission.
- Email Attachments: Email systems use Base64 to encode binary file attachments for text-based transmission.
- Data Storage: Store binary data or special characters in text-based databases by encoding to Base64.
- Image Embedding: Embed images directly in HTML/CSS using Base64 data URIs without external file references.
- Configuration Files: Safely encode sensitive data in configuration files and environment variables.
- Data Transmission: Send binary data over text-only protocols like HTTP, SMTP, and XMPP.
Common Use Cases
API credentialsEmail attachmentsData storageImage embeddingConfiguration
Related Tools
Explore these complementary IT and development tools: