How do I use the image to Base64 (data URI)?
- Choose a small image (ideally under 10 KB).
- Pick data URI, CSS or HTML output.
- Copy the result into your code.
Image to Base64 (data URI): frequently asked questions
When should I use Base64 images?
For tiny icons or where you cannot host a separate file. For normal images, a separate, cached file is faster.
How much bigger is Base64?
About 33% larger than the original file.
Do email clients support data URIs?
Support is mixed — some, including Gmail, block them. Hosted images or attachments are more reliable in email.
Is my image uploaded?
No. Encoding happens in your browser.
Can I decode Base64 back to an image?
Paste the data URI into a browser address bar to view it, then save it.
Is there a size limit?
2 MB here, to keep pages fast.
Does it work for SVG?
Yes, though URL-encoded SVG is often smaller than Base64.
What about text Base64?
Use our Base64 encoder for text.
Is there an API for this tool?
Selected tools are available through a rate-limited public API. Contact us if you need higher volumes.
Is the image to base64 (data uri) free?
Yes. It is free with no sign-up and no usage limits for normal use.
