Codifica

Data URI / Immagine Base64

Codifica di un'immagine in Data URI (data:image/…;base64,…) da inserire in CSS/HTML, e decodifica di un Data URI o Base64 grezzo in un file — tutto direttamente nel browser.

L'anteprima dell'immagine apparirà qui.

Domande frequenti

When should I use a Data URI instead of a normal image file?

Data URIs are handy for small, frequently-used images like icons or logos where you want to avoid an extra HTTP request, for example embedding an image directly in CSS or inline HTML.

Are there downsides to using Data URIs for images?

Yes. They inflate the surrounding file size (roughly 33% larger than the raw image due to Base64), aren't cached separately by the browser like a real image URL, and many browsers and email clients impose practical size limits on how large a Data URI can be.

Does this tool upload my image anywhere?

No. The image is read and encoded entirely in your browser — it's never sent to a server.