Image Base64 Encoder

This Image Base64 Encoder Online Tool lets you base64 encode image and shows examples how to use base64 strings

Base64 Encoded Image String

Base64 Encoding

What Is Base64 Encoding?

Base64 encoding is used to convert the binary data into ASCII character format.

This is useful for the applications which cannot handle data in the binary format.

Application Usage Example:

Saving images in XML files as base64 encoded data.

Using Base64 encoded in HTML, XML and CSS files?

HTML JavaScript embedding:
<script type="text/javascript" 
HTML CSS embedding:
<link rel="stylesheet" type="text/css" 
href="data:text/css;base64,VGV4dCBCYXNlNjQgRW5jb2RlciBEZWNvZGVy..." />
HTML image embedding:
<img src="data:image/jpeg;base64,VGV4dCBCYXNlNjQgRW5jb2RlciBEZWNvZGVy..." />
XML image embedding:
CSS image embedding:
 .cssclass {
   background-image: url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAWgBaAAD/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAAB...');

Is Base64 secure as encrypted data?

Base64 is just encoded data and cannot be considered as secured.