RevealTheme logo

Base64转图片转换器

将Base64字符串或数据URL解码为可下载的图片。

如何使用本工具

  1. 1

    Paste your Base64 payload or full data URL (data:image/...) into the text box. Leading and trailing whitespace in a raw Base64 string is stripped automatically.

  2. 2

    The decoded image appears as a live preview the moment the browser can render it; if the data cannot be decoded, an 'Invalid Base64 image data' message is shown instead.

  3. 3

    Click the Download button to save the image to your device as image.png.

什么是Base64转图片转换器?

如果你接手了一个内嵌数据URL的CSS文件或HTML页面,本工具可以提取出图片,让你能将其保存为文件。粘贴完整的数据URL(data:image/...)或仅粘贴Base64负载:两种我们都能处理。

常见使用场景

  • Recovering an icon or logo that a previous developer hard-coded as a data URL inside a CSS or HTML file, so you can save it back to a real .png file.

  • Inspecting a Base64 image string returned by an API or stored in a JSON payload to confirm it actually decodes to the picture you expect.

  • Pulling an embedded image out of an SVG or email template where assets were inlined as data URLs to reduce HTTP requests.

  • Quickly verifying that a Base64 string copied from logs, a database column, or a clipboard snippet is a valid, renderable image.

  • Extracting a screenshot or avatar that a tool exported as a data URL when you need the binary file instead of the text blob.

  • Teaching or demonstrating how data URLs work by pasting an encoded string and watching it render live in the preview.

常见问题

它接受仅有Base64字符串吗?
接受。如果你粘贴的是不带数据URL前缀的原始Base64,我们会假定为image/png。对于其他类型,请粘贴完整的数据URL。

相关工具