Image to Base64 Converter

Convert images to Base64 format quickly and easily. Perfect for developers and designers.

Upload icon

Drag and drop your image here

Max size 4MB

Base64 Output

Use in <img> tag:

Use in CSS

About this tool

Convert an image into a Base64 data URL for prototypes, small embedded assets, email experiments, or CSS examples. The tool also prepares ready-to-copy snippets for an HTML image element and a CSS background. Processing happens in the browser, so the selected image does not need to be uploaded to this website.

How to use it

  1. Drop an image onto the upload area or select one from your device.
  2. Wait for the Base64 output and code examples to appear.
  3. Copy the raw value, HTML snippet, or CSS snippet needed for your project.

Good to know: Base64 increases file size and is usually best for small assets rather than large photographs.