What it does
A data URI embeds an image directly in HTML or CSS, removing a request but increasing document size. This tool converts images both ways and provides HTML/CSS snippets.
How it works
Upload an image to get a data URI, or paste a data URI to preview it.
Copy the data URI, HTML or CSS snippet.
Download the decoded image when working in the other direction.
Use data URIs for small icons, not large photos.
When to use it
- Inline a small icon in CSS.
- Inspect a data URI's MIME type.
- Embed a tiny asset in an email template.
Glossary
Frequently asked questions
Are local images uploaded?+
No. Local images are read in the browser and converted to a data URI.
Is the image uploaded?+
No. The fetch happens in your browser, and the data URI is built locally.
Can I decode a data URI?+
Paste plain text and the tool returns a text data URI; image decoding is not part of this tool.
Why does the fetch fail?+
The host may block CORS, require authentication, or return an HTML error page.
When should I avoid data URIs?+
For large images, because base64 adds about 33% overhead and blocks other downloads.
Is base64 secure?+
No. It is reversible encoding, not encryption.
API & MCP
No API endpoint
This tool runs entirely in your browser. It is not available over the REST API or MCP.
Shareable result
https://100www.dev/tools/image-base64?u=https%3A%2F%2Fexample.com%2Ficon.png

100www engineering
EditorialReviewed by Steve · · Report an error
Tested from the 100www probe network; results vary by location and network.


