Image ↔ Base64 Converter
Convert images to Base64 encoded strings, or paste a Base64 string to preview and download the image. 100% private — no server upload.
Click to upload or drag & drop an image
PNG, JPG, GIF, WebP, SVG supported
About Image ↔ Base64 Converter
Encode any image to a Base64 string for embedding in HTML, CSS, or JSON. Or decode a Base64 string back to a viewable and downloadable image. Supports all major image formats. Copy the result as a raw Base64 string, a full data URL, or a ready-to-use HTML <img> tag.
How to Use — Image to Base64
- Select the Image → Base64 tab.
- Upload any image file (PNG, JPG, GIF, WebP, SVG).
- The Base64 encoded string appears instantly below the preview.
- Click Copy Base64 to copy the raw string, Copy Data URL for the full
data:image/...URI, or Copy <img> tag for a ready-to-paste HTML snippet.
How to Use — Base64 to Image
- Select the Base64 → Image tab.
- Paste your Base64 string (with or without the
data:image/...;base64,prefix). - Click Decode Image to preview the image.
- Click Download Image to save it to your device.
Frequently Asked Questions
data:image/png;base64,.... You can use it anywhere a normal image URL is accepted, such as in an HTML src attribute or CSS background-image.