Base64 Encoder/Decoder

Utility Tools

Encode text or files to Base64 format, or decode Base64 strings back to their original content. Perfect for embedding images and data in HTML, CSS, or JSON.

Text to Encode

Base64 Output

Result will appear here...

About Base64

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used for embedding images in CSS/HTML, sending email attachments, and storing complex data in JSON or XML.

Text Encoding

Convert plain text to Base64 for safe transmission in URLs, cookies, or JSON payloads.

File/Image Support

Upload images or files to get Base64-encoded data URLs for embedding directly in your code.

Instant Processing

All encoding/decoding happens in your browser. Fast, private, and no data sent to servers.

Common Use Cases

Embedding Images

Convert small images to Base64 data URLs to reduce HTTP requests. Useful for icons, logos, and inline images.

API Authentication

Basic HTTP authentication uses Base64-encoded credentials in the Authorization header.

Email Attachments

Email protocols use Base64 to encode binary attachments for transmission as text.

Data Storage

Store binary data in JSON, XML, or databases that only support text/string values.

Related Tools