Encoders & Decoders tool
✦ Browser-firstBase64 Image Converter
Image to Base64 data URI, and Base64 back to an image.
Drop an image here or click to choosePNG, JPEG, GIF, WebP, SVG or ICO. Nothing is uploaded.
About this tool
Drop an image to get a Base64 data URI ready for HTML or CSS, or paste a Base64 string to preview and download the image.
How to use the Base64 Image Converter
- Drop in an image to get a Base64 data URI, or paste Base64 to preview it.
- Copy the data URI or CSS snippet.
- Download the decoded image if needed.
Common uses
- Inlining small icons in CSS
- Email templates
- Debugging embedded images
Base64 Image Converter questions
Should I inline large images?
No. Base64 adds about a third to the size and prevents caching, so keep it for small assets.
Which formats work?
PNG, JPEG, GIF, WebP and SVG.
Is my image uploaded?
No, conversion happens in your browser.