Image to Base64
Convert an image file into a Base64 data URI you can copy and paste anywhere.
Convert an image to Base64
Click or drop an image here
Dimensions: —
Original file: —
Data URI: — · —
How to use the Image to Base64
- Drop an image into the box or click it to choose a file.
- Keep the original file or re-encode it as PNG, JPEG or WebP.
- Copy the data URI to your clipboard or save it as a text file.
Features
- Exact Base64 of the original file, byte for byte
- Optional re-encoding with canvas and a quality slider
- Character count and decoded size readout
- Copy the data URI or save it as a text file
Advertisement
Frequently Asked Questions
Common questions about the free online image to base64.
Drop your image into the box and the tool immediately generates a data URI that starts with
data:image.
It is a text string that contains the whole image encoded with Base64 characters plus a short
header describing the file type.
No. The conversion happens entirely in your browser with the File API and a canvas.
It is handy for small icons, email signatures and single-file HTML demos, because the page
then needs no separate image request.
Base64 text is about a third larger than the original binary file and cannot be cached
separately, so large images are better kept as normal files.
Any format your browser can read, including PNG, JPEG, GIF, WebP, BMP and SVG.
Yes. Choose PNG, JPEG or WebP in the output selector to rebuild the image on a canvas, which
is useful for shrinking a large data URI.
Yes, wrap the value in url() and keep quotes around the data URI, exactly as you would with
any other image path.
There is no fixed limit, but very large images produce very long strings that can slow down
an editor, so keep them under a few hundred kilobytes.
Yes, the converter is completely free with no account required.
Last updated: October 10, 2026