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

  1. Drag and drop an image onto the dropzone, or click it to select a file.
  2. The Base64 string appears automatically — click Copy to use it in your code.
  3. To go the other way, paste a data:image/... Base64 string into the text box and click Preview.
  4. Click Download to save the previewed image to your device.

Common Use Cases

Tips & Tricks

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