Image to Base64 Converter
Convert images to Base64 strings and back, entirely in your browser.
Drop an image here or click to select
No image yet
About Image to Base64 Converter
Convert images to Base64-encoded strings for embedding in HTML, CSS, or JSON, or decode a Base64 string back into a downloadable image. All processing happens locally in your browser.
What Is This Tool?
Convert any image into a Base64-encoded text string, or decode an existing Base64 string back into a viewable, downloadable image — all done locally in your browser with no upload to any server.
How to Use
- Drag and drop an image onto the dropzone, or click it to select a file.
- The Base64 string appears automatically — click Copy to use it in your code.
- To go the other way, paste a data:image/... Base64 string into the text box and click Preview.
- Click Download to save the previewed image to your device.
Common Use Cases
- Embedding small images directly into HTML or CSS without extra HTTP requests
- Including images in JSON payloads or email templates
- Quickly inspecting what a Base64 image string actually looks like
- Debugging data URIs in API responses
Tips & Tricks
- Base64 encoding increases file size by about 33% — best for small icons, not large photos.
- The output includes the full data:image/... prefix, ready to paste directly into an <img> src attribute.
Convert images to Base64 strings and decode Base64 back to images, entirely in your browser. Free, fast, and no upload required.
image to base64 · base64 to image · base64 image converter · image encoder · online tool