Base64 Encode / Decode

Encode text, files, and images to Base64. Decode Base64 strings back to original. All processing in your browser.

🟢📁 Drop an image or file here —or click to select
Encodes file to Base64 Data URL
Base64 encoding adds ~33% overhead. A 1MB file becomes ~1.33MB as Base64.

🟢📖 About Base64 Encoding

Base64 is a binary-to-text encoding scheme that represents binary data as a sequence of 64 ASCII characters (A-Z, a-z, 0-9, +, /). It is used to safely transmit binary data through text-only channels such as JSON, XML, email (MIME), and Data URLs.

How it works: Base64 encodes every 3 bytes of binary data into 4 ASCII characters —hence the ~33% size increase. The encoding is not encryption —it provides zero security. It merely makes binary data text-safe.

Common uses: embedding images in HTML/CSS via Data URLs (data:image/png;base64,...), sending file attachments in JSON APIs, storing binary data in text-based databases, and encoding credentials in HTTP Basic Auth headers.