Base64 Encoder & Decoder
Free online tool to encode and decode text, images, and files to Base64 format instantly.
Base64 Encoder
Encode text or files into Base64 format. Select character encoding for text.
Select the character encoding of the input text (UTF-8 is common). Browser support for encodings other than UTF-8 may vary.
About Base64 Encoding
Base64 encoding is a method of converting binary data into ASCII text format. It's widely used in web development, email systems, and data storage to safely transmit binary data over text-based protocols. Our free Base64 encoder supports multiple character encodings and can handle both text and file inputs.
Common Use Cases for Base64
- Data URIs: Embed images directly in HTML/CSS using data:image/png;base64,...
- API Authentication: HTTP Basic Auth headers use Base64 encoded credentials
- Email Attachments: MIME encoding uses Base64 for binary attachments
- JSON Data: Store binary data in JSON payloads
- URL Parameters: Safely pass binary data in URLs
