Skip to content
ConvertPassConvertPass home

Image

Base64 to image

Turn a data URI or Base64 string back into an image file.

This tool processes files and text locally in your browser. Your content is not uploaded or stored by this site.

What this tool does

The decoder accepts a data URI or raw Base64. It then creates a blob and a preview via an object URL that is revoked on reset.

How to use it

  1. Paste a data URI or Base64.
  2. Preview if the browser can decode it.
  3. Download the file.

Supported input

  • data URI or Base64 text, up to 5 MB of text

Output

  • An image blob

Privacy

This tool processes files and text locally in your browser. Your content is not uploaded or stored by this site.

ConvertPass does not include your input in analytics, URLs, or error reports. Encoding: Base64. Limit: 5 MB of text (5.00 MB).

Limitations

  • A decoded blob is not validated as a well-formed PNG/JPEG beyond the browser preview.
  • SVG markup is not executed; it downloads as a file.

Example

Input
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==
Output
1×1 PNG file

Troubleshooting

Invalid Base64
Remove quotes, line-wrapping issues, or a truncated string. Whitespace is ignored, but missing characters are not.

FAQ

Can this execute an SVG?

The preview uses an img element. SVG scripting is not the same as injecting markup, but you should still treat untrusted SVG as untrusted.

What filename is used?

A sanitised name derived from the MIME type, such as decoded.png.

Does wrapping with quotes matter?

Surrounding quotes are trimmed. JSON-escaped newlines should be unescaped first.

Why cap the text size?

A huge Base64 string can freeze the tab during decode. Split large files instead.

Related tools

Related guides

Related formats

Last reviewed 16 August 2026. Report a problem. Reports do not include your input.