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
- Click the image upload button and choose an image (PNG, JPG, GIF, WebP supported).
- The image preview and Base64 code will generate instantly.
- Click the 📋 Copy button to copy the Base64 string.
Base64 → Image
- Paste a valid Base64 string into the right-hand input box.
- Click the Decode button.
- 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.