/
Encode images as Base64 data URIs or decode data URIs back to images.
Convert any image file to a Base64-encoded data URI that can be embedded directly in HTML, CSS, or JSON without referencing an external file. Also decodes data URIs back to downloadable image files. Processing is entirely local — your images are not uploaded anywhere.
Input
1×1 red pixel PNGOutput
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI6QAAAABJRU5ErkJggg==Base64 is useful for small icons and images to eliminate HTTP requests. Avoid it for large images — Base64 adds ~33% overhead to file size.
Yes. SVG can be Base64-encoded, though for SVG it is often more efficient to embed the raw XML directly in HTML.
There is no hard limit, but browsers may struggle with very large files. Keep Base64-embedded images under 100 KB for best performance.