Menu

Tools

Base64 to Image Converter

Convert Base64 encoded strings back to downloadable images

Base64 Input
Paste a Base64 encoded image or data URI

Accepts:

  • Full data URIs (data:image/png;base64,...)
  • Raw Base64 strings (auto-detects format)
Image Preview
Preview and download the decoded image

Image preview will appear here

How It Works

1. Paste a Base64 encoded image string

2. The tool auto-detects the image format

3. Preview the decoded image

4. Download as a file

Supported Formats
PNG
JPEG
GIF
WebP
SVG
BMP
ICO

Auto-detects format from Base64 signature or data URI prefix.

About Base64 to Image Converter

Paste a Base64 encoded string and convert it back to a downloadable image file. Supports data URIs and raw Base64 with automatic format detection.

When you have Base64 image data from an API, database, or code snippet, this tool decodes it back to a viewable and downloadable image. Auto-detects PNG, JPEG, GIF, WebP, and SVG formats.

How to use Base64 to Image Converter

1

Paste your Base64 string or data URI.

2

The tool automatically decodes and previews the image.

3

Verify the image looks correct.

4

Click Download to save as a file.

5

The file is named with the correct extension.

Examples

Data URI input

Full data URI format with MIME type:

data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...

The prefix tells us it's a PNG image.
The tool decodes and offers PNG download.

Raw Base64 input

Just the encoded data without prefix:

iVBORw0KGgoAAAANSUhEUgAAAAUA...

Tool auto-detects format from signature:
• iVBORw → PNG
• /9j/   → JPEG
• R0lGOD → GIF

From API response

Many APIs return images as Base64:

// API returns:
{ "avatar": "data:image/jpeg;base64,..." }

Paste the value, get your image back.
Useful for debugging or extracting assets.

Features

Paste Base64 or full data URI
Auto-detects image format
Live image preview
Download as original format
Shows image dimensions and size
100% browser-based—private

When to use this

  • Extracting images from API responses
  • Recovering images from database exports
  • Debugging Base64 data in code
  • Converting email inline images
  • Extracting images from JSON data
  • Verifying Base64 encoding is correct

Common questions