首页
Tom Utilities

Base64 转图片

编码与解码

将 Base64 字符串或数据 URL 解码为图片并预览或下载。

使用方法

Decoding Base64 images

Paste a data URL that starts with data:image/ or a raw Base64 string. The tool detects the format from the decoded bytes and shows a preview.

  1. Paste the Base64 string or data URL.
  2. Check the preview.
  3. Download the image if needed.

常见问题

How do I know the image type?

The converter checks the magic bytes of the decoded data, so a raw Base64 string is detected without a data URL prefix.

Why does the preview fail?

The string is not valid Base64 image data. Check that no characters were lost when copying.