Base64 Converter

Encode and decode Base64 strings and images.

Click Encode or Decode

Frequently Asked Questions

What is Base64 encoding and what is it used for?

Base64 converts binary data into safe ASCII text using 64 printable characters. It is used to embed images in HTML/CSS, encode email attachments, and transmit binary data in JSON APIs.

Can I convert images to Base64 data URIs?

Yes. Click "Upload File" and select any image. The tool converts it to a Base64 data URI string that you can paste directly into HTML or CSS.

Is Base64 encoding the same as encryption?

No. Base64 is encoding, not encryption. Anyone can decode a Base64 string. For security, use proper encryption before Base64-encoding.

Does Base64 increase file size?

Yes, by approximately 33%. For small images under 10KB the overhead is negligible and saves an HTTP request. For larger files, serve the original binary.