About the Image to Base64
Inline small images directly in HTML, CSS or JSON as data: URIs to save HTTP requests — ideal for icons, email templates and single-file demos. Drop, pick or paste (Ctrl+V) an image and copy the ready-made snippet. You can also paste a Base64 string to preview and download the image it contains.
Features
- PNG, JPEG, GIF, WebP, SVG, ICO
- Data URI, raw Base64, <img> tag and CSS snippets
- Paste images from the clipboard
- Dimensions and size overhead
- Base64 → image preview and download
How to use it
- Drop, choose or paste an image.
- Pick the output format tab and copy it.
- To reverse, paste Base64 in the lower box.
Frequently asked questions
When should I inline images as Base64?
For small images (under ~5–10 KB). Larger images are better served as files because Base64 is 33% bigger and cannot be cached separately.