Image to Base64

Encode an image as a Base64 data URI for HTML, CSS or JSON.

Runs in your browser — nothing uploaded Free plan: 20 conversions/day · max 50 MB
Loading tool…

How to use the Image to Base64

  1. Upload an image by dragging it in, browsing, or pasting from the clipboard.
  2. Adjust the settings shown for this tool and preview the result.
  3. Click the action button to process the image.
  4. Download the result.

About this tool

The Image to Base64 supports PNG, JPG, WEBP, GIF, BMP, AVIF and (in most tools) HEIC and TIFF input. Processing uses the HTML canvas and WebAssembly libraries bundled with the site.

Also searched as: image to base64 · base64 image encoder · image to data uri · png to base64 · jpg to base64

Supported formats and good to know

Input
JPG, PNG, WEBP, AVIF, GIF, BMP, TIFF, HEIC/HEIF, SVG
Output
Base64 text / data URI
  • Files are processed in your browser on your own device — they are not uploaded to our server.
  • Very large files depend on your device's memory; a desktop browser is fastest for big files.

Formula and method

The image is drawn onto an HTML canvas, transformed, and exported in the original or chosen format at full resolution.

Practical examples

Upload or enter a sample, try the different options, and compare the output with your original.

Frequently asked questions

Is there a file size limit?

Limits depend on your device memory. Images up to about 50 megapixels work well on most computers; the site administrator can also set a maximum upload size.

Is my data private?

Everything happens locally in your web browser. Your files and text are never uploaded to our server, so the tool also works for confidential material.

Is the Image to Base64 free?

Yes. It is free to use with no account required.

Related articles