Image to Base64 converter
Your image
Base64 text
Base64 to image
Download imageHow to use it
- Choose your image, or drop it on the page.
- Pick the format you need: a data URI, plain Base64, CSS or an HTML tag.
- Copy the text. To go the other way, paste Base64 into the box at the bottom.
Common questions
Is the image to Base64 converter free?
Yes. There is no sign-up and no limit.
Is my image uploaded?
No. The conversion happens in your browser, so your image stays on your device.
What is a data URI?
A data URI puts the whole image inside text, like data:image/png;base64,… . You can paste it straight into an HTML img tag or a CSS rule, so no separate image file is needed.
Why is the Base64 text bigger than my file?
Base64 uses about one third more space than the original file. It is best for small images such as icons and logos.
Can I turn Base64 back into an image?
Yes. Paste the Base64 text or the whole data URI into the box at the bottom and you will see the image and a download button.