Welcome to b64codec.com a Base64 Encoder/Decoder

All encoding and decoding operations on this site are performed directly in your web browser.

Usage: Drag and drop a file into the box below or click to select a file. The file will be converted to Base64 <img> tag.

Supported file types: APNG, AVIF, GIF, JPEG, JPG, PNG, SVG, and WEBP

Drag and drop a file here or click to select


  
  
  

Example

Here is an example of embedding a small image using Base64 in an HTML document:

    
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Base64 Example</title>
  </head>
    <body>
      <h1>Base64 Image Example</h1>
      <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" >
    </body>
</html>