Image to Base64
Turn an image into a Base64 string or data URI, or turn a Base64 string back into a downloadable image. All in your browser.
Drop an image here
or
Output:
How to convert an image to Base64
- Choose the Image to Base64 mode and drop an image, or click to select one.
- Pick Data URI for the full data: string, or Raw Base64 for just the encoded part.
- Copy the output with the Copy button when it appears.
- To go the other way, switch to Base64 to Image and paste your string.
FAQs
What is the difference between a Data URI and Raw Base64?
A Data URI includes the data:image/...;base64, prefix, while Raw Base64 is only the encoded characters. Most code editors and JSON fields need the raw form.
Are my images uploaded to a server?
No. Encoding and decoding run entirely in your browser, so your images and strings never leave your device.
What image format is assumed when I paste raw Base64?
If you paste raw Base64 without a data: prefix, the tool assumes it is a PNG image by default.
Is this tool free to use?
Yes. Every Handio tool is free, with no sign-up and no limits on file size beyond your browser memory.
Related Tools
Why convert an image to Base64?
Base64 turns an image into a plain string of text you can embed directly in HTML, CSS or JSON without a separate file. It is the standard way to inline small icons and images into code.
- Embed a logo or icon directly into an HTML or CSS file.
- Send an image inside a JSON payload or API request body.
- Preview a Base64 string from an API response by decoding it back into a picture.
Tips and Limits
Base64 makes an image roughly 33% larger than the original file, so it is best for small graphics. When pasting raw Base64 without a data: prefix, the tool assumes a PNG. Everything stays in your browser.