Supports PNG, JPG, WebP, SVG, and GIF directly in local memory.
Live Visual Preview
Upload or paste a base64 image string to preview it here
Convert images to Base64-encoded data URIs and decode Base64 strings back into viewable images.
Supports PNG, JPG, WebP, SVG, and GIF directly in local memory.
Encode any image file (PNG, JPEG, GIF, SVG, WebP) into a Base64 data URI you can embed directly in HTML or CSS. You can also paste a Base64 string to decode it back into a viewable and downloadable image. The tool shows the encoded size and provides ready-to-use HTML and CSS snippets. All processing happens in your browser — images are never uploaded.
Common questions and helpful answers about this utility.