Base64 to Image
Decode a base64 string back into a viewable and downloadable image.
How to Use Base64 to Image Converter
Paste a base64-encoded image string into the text area and click "Decode Image" to preview and download the result.
Accepted Input Formats
- Data URL — A full data URI like
data:image/png;base64,iVBOR... - Raw Base64 — Just the base64 string without the prefix. The tool auto-detects the image format from the base64 header.
How It Works
The tool decodes the base64 string in your browser, renders it as an image, and displays dimensions and format information. You can then download the decoded image file.
Frequently Asked Questions
What formats can I decode?
The tool supports JPEG, PNG, GIF, and WebP base64 strings. It auto-detects the format from the base64 header bytes or data URL prefix.
Why does my base64 string fail to decode?
Common issues: the string may be truncated, contain extra whitespace or line breaks, or not be a valid image encoding. Try removing any line breaks and whitespace.
Can I decode base64 from an API response?
Yes. If your API returns a raw base64 string, paste it directly. If it returns a data URL, paste the complete string including the data: prefix.
Is my data uploaded to a server?
No. All decoding happens locally in your browser. Your base64 string never leaves your device.
More Image Tools
Image Compressor
Compress images by adjusting quality to reduce file size without losing visual clarity.
Open tool →Image Resizer
Resize images by pixels or percentage with aspect ratio lock.
Open tool →Image Cropper
Crop images with preset aspect ratios like 1:1, 16:9, and 4:3 using a visual editor.
Open tool →Image to Base64
Convert any image to a base64-encoded string or data URL for embedding in HTML and CSS.
Open tool →Image Format Converter
Convert images between PNG, JPEG, and WebP formats in one click.
Open tool →Favicon Generator
Generate favicons in all standard sizes (16x16 to 512x512) for websites and PWAs.
Open tool →