Mr. Base

Convert your images
to base64 - 100% free

Drag & drop images anywhere
or click here

Encoding
show code
opens a modal with image preview, usage
examples, image width & height, ...
copy image
copies this base64 code to your clipboard:
data:image/jpeg;base64,/9j/4AA...
copy css
copies this base64 code to your clipboard:
url('data:image/jpeg;base64,/9j/4AA...
Filename
Filesize
Progress
Converted
 

Supported file formats

You can upload up to 20 images (max. 1.00 MB each) as JPG, PNG, GIF, WebP, SVG or BMP.

Please note that Internet Explorer 8 has a limit of 32 KB for data URI. Versions below have no support.

Image optimization option

We can optimize your JPEG & PNG images, using jpegoptim and optipng. This will reduce the file without any visible impact (in most cases).

Optimization status:

Browser support

The encoded results are compatible with all of the following browsers and versions. Please send us a note via email if there are issues.

  • Google ChromeChrome 4+
  • Apple SafariSafari 3.1+
  • Mozilla FirefoxFirefox 2+
  • OperaOpera 9+
  • Microsoft EdgeEdge
  • Microsoft Internet ExplorerIE 8+

Filename:
Filesize:
Encoded:
Width:
Height:
For use in <img> elements:

For use as CSS background: