Image ⇄ Base64 Converter

Image → Base64

Image preview will appear here

Base64 → Image

Decoded image will appear here

How to Use

This tool allows you to convert images into Base64 format or decode Base64 back into an image.

Image → Base64

  1. Click the image upload button and choose an image (PNG, JPG, GIF, WebP supported).
  2. The image preview and Base64 code will generate instantly.
  3. Click the 📋 Copy button to copy the Base64 string.

Base64 → Image

  1. Paste a valid Base64 string into the right-hand input box.
  2. Click the Decode button.
  3. The decoded image preview will be shown below.

Technical notes

Image to Base64 conversion is implemented using the browser's FileReader API and readAsDataURL. The resulting data:image/*;base64 string can be used in HTML, CSS, or API requests. All image reading and conversion are performed locally and are never uploaded to a server.

All conversions are performed locally in your browser. No images or Base64 data are uploaded to any server, ensuring complete privacy.