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。

相關工具