Image to Base64 Online

Encode images as Base64 for embedding in CSS, HTML or JSON.

Drop your image here

or

JPG, PNG, WebP or sized static SVG · Up to 20MB

How it works

  1. Upload your JPG, PNG, WebP or SVG image.

  2. Click Convert to Base64.

  3. Copy the Data URI or Base64 string, or download it as a text file.

Features

  • Free to use

  • No signup required

  • Processed in your browser

  • Images are not uploaded

  • Works on mobile and desktop

Frequently asked questions

A Data URI embeds the image data directly in a string like data:image/png;base64,... so it can be used inline in HTML, CSS or JSON.

No. Base64 encoding happens locally using the FileReader API.

Yes. SVG files are encoded with the image/svg+xml MIME type.