Image to Base64
Encode images as Base64 and decode Base64 back.
Loading tool…
Your files are processed on your device and are never uploaded to our server.
About Image to Base64
Base64 lets you put a small image right inside HTML, CSS or JSON without a separate file. This tool turns an image into a Base64 data URI with ready code snippets, and also converts a Base64 string back into an image you can download.
How to use Image to Base64
- 1Select an image, or switch to "Base64 to Image".
- 2Copy the data URI or the ready HTML or CSS code.
- 3For decoding, paste the string and download the image.
Why use this tool?
- Private. Files never leave your device.
- Free. No sign up, no limits, no watermark.
- Fast. Results in seconds, no waiting in a queue.
- Any device. Works on computers, tablets and phones.
Frequently asked questions
When should I use Base64 images?
For tiny icons and email templates. For big photos a normal image file is faster, since Base64 is about 33 percent larger.
Does the string need the "data:image" part?
No. The decoder works with or without it.
Is my image uploaded?
No. The conversion happens in your browser.