🧬 Base64 to Image
Found a long data:image string in HTML, CSS, JSON or an API response? See the picture and save it as a file.
🔒 Runs in your browser · files never uploaded
Drop images here or click to browse PNG, JPG, WebP, GIF, SVG, ICO · multiple files · paste from clipboard works too
How to use the Base64 to Image tool
- Paste the Base64 text – with or without the data:image/…;base64, prefix.
- Click Decode to see the preview, format and dimensions.
- Download the image with the correct file extension.
Frequently asked questions
Do I need the "data:image/png;base64," prefix?
No. Paste either a full data URI or just the raw Base64. The format is detected from the file signature (PNG, JPG, GIF, WebP, SVG, BMP, ICO).
Why does it say the Base64 is invalid?
Usually the string was cut off when copying, or contains characters like quotes or backslashes from JSON escaping. Whitespace and line breaks are ignored automatically.
Can I decode URL-safe Base64?
Yes – "-" and "_" are converted to "+" and "/" and missing "=" padding is added before decoding.