Image ↔ Base64

Convert images to Base64 / Data URL, or decode Base64 strings back to images.

🖼️

Drop an image here or click to browse

PNG, JPEG, GIF, WebP, SVG, BMP…

About Image ↔ Base64

Convert images to Base64 strings and Base64 strings back to images. Drag-and-drop any image to get its Base64, Data URL, and HTML snippet — or paste a Base64 string to preview and download the image.

How to Use

  1. 1Image → Base64: drop or browse an image — copy the Base64 string, full Data URL, or HTML snippet.
  2. 2Base64 → Image: paste any Base64 string or Data URL, click "Decode Image", then preview and download.

Frequently Asked Questions

What is a Base64 image?
Base64 encoding converts binary image data into a text string. The full Data URL (data:image/png;base64,...) can be used directly as an <img> src or in CSS background-image — no separate file needed.
Which image formats are supported?
PNG, JPEG, GIF, WebP, SVG, BMP, and any other format your browser supports for reading.
Is there a file size limit?
No hard limit — but very large images produce very long Base64 strings. Files up to ~5 MB work comfortably.
Can I paste a raw Base64 string without the data: prefix?
Yes. The decoder accepts both the full Data URL (data:image/png;base64,…) and a raw Base64 string without the prefix.