Base64 to Image

Decode Base64 data URIs back to image files. Paste, preview, download as PNG/JPG. 100% private.

Paste a Base64 data URI (starts with data:image/...):

About Base64 to Image Decoder

Decode Base64-encoded data URIs back into image files. Paste any Base64 image string and instantly preview and download the decoded image as PNG or JPG. All processing in your browser.

Instant Decoding

Paste a Base64 string and see your image immediately. Supports data URIs with or without the prefix.

Format Detection

Auto-detects image format from the Base64 header. Download as PNG or convert to JPG on export.

Preview Before Download

See the decoded image before saving. Verify it's the right image and check dimensions.

Developer Tool

Useful for debugging API responses, extracting images from databases, or recovering embedded images.

📋 Common Use Cases

Extracting Images from APIs

Decode Base64 image data returned by REST APIs and download the resulting PNG, JPG, or WebP file.

Database Image Export

Convert Base64-encoded images stored in databases back into proper image files for backup or migration purposes.

Debugging Data URIs

Paste a data URI from HTML or CSS source code to view and verify the actual image it represents.

Recovering Embedded Graphics

Extract images from email signatures, HTML files, or JSON payloads where they're stored as Base64 strings.

🪜 How to Use This Tool

  1. Paste your Base64 string
    Enter the full data URI or raw Base64 string into the text area, with or without the mime-type prefix.
  2. Auto-detection of format
    The tool detects the image format from the data URI header and shows a live preview of the decoded image.
  3. Choose output format
    Select the desired output format — PNG, JPG, or WebP — for the decoded image file.
  4. Download the image
    Click download to save the decoded image as a regular file on your device.

📚 Related Guides

Frequently Asked Questions

Is this image tool really free?
Yes. Every image tool is completely free. No signup, no account, no payment. All processing happens in your browser.
Are my images uploaded to a server?
No. All image processing happens locally in your browser. Your images never leave your device. This is especially important for sensitive photos, IDs, and personal documents.
How does the AI background remover work?
It uses the @imgly/background-removal library running an IS-Net neural network entirely in your browser via WebAssembly. First use downloads a ~10MB model (cached for future visits). No image data is sent to any server.
What file formats are supported?
JPEG, PNG, WebP, SVG, GIF, BMP, and HEIC. Conversion between all formats is supported. AI features work on JPEG and PNG inputs.
What is the maximum image size?
Images up to ~4000x4000px process smoothly on modern devices. Very large images may be slower. For batch processing, up to 20 images at a time is recommended.