DevToolbox

โ†‘ โ†“ to select ยท Enter to open ยท Esc to close

Image to Base64 Converter

Convert a local image file into a Base64 data URL or ready-to-copy HTML and CSS snippets.

Or drop an image here

PNG, JPG, GIF, SVG, WebP

How to use the Image to Base64 Converter

Convert a local image file into a Base64 data URL or ready-to-copy HTML and CSS snippets.

Steps

  1. Choose an image file or drop it into the upload area.
  2. Review the preview, file size, and MIME type.
  3. Copy the data URL, an image element, or a CSS background declaration.

Example: Data URLs begin with a media type

data:image/png;base64,...

Limitations

The file is read in your browser and is not uploaded by this tool. Base64 increases the text size; large images can make HTML or CSS bundles heavier.