Image to Base64
Turn an image into a Base64 data URI to embed directly in HTML, CSS or JSON.
or drop your files here
Accepted formats: .JPG, .JPEG, .PNG, .WEBP, .AVIF, .TIFF, .TIF, .GIF, .HEIC, .HEIF, .SVG, .ICO, .BMP (máx. 25 MB)
How it works
- 1
Upload an image
PNG, JPG, WebP, GIF, SVG and more.
- 2
Convert
The image is encoded as Base64.
- 3
Download the TXT
Copy the data URI into your code.
Related tools
Other tools people use right after this one.
Built to get out of your way
487
Tools available
6
Languages
0
Watermarks added
2h
Until your files are erased
100%
Free to start
∞
Devices supported
Frequently asked questions
For small icons and files that must be self-contained.
Embed images without extra files
A data URI puts the image inside your code, so it loads without a separate request. It suits small icons, email templates and single-file pages.
Base64 makes files about a third bigger, so keep it for small images. Larger pictures are better served as normal files.