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 20MBHow it works
Upload your JPG, PNG, WebP or SVG image.
Click Convert to Base64.
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
What is a Data URI?
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.
Are my images uploaded?
No. Base64 encoding happens locally using the FileReader API.
Is SVG supported?
Yes. SVG files are encoded with the image/svg+xml MIME type.