RevealTheme logo

Bộ chuyển đổi Base64 sang hình ảnh

Giải mã một chuỗi Base64 hoặc một data URL để chuyển nó thành một hình ảnh có thể tải xuống.

Cách sử dụng công cụ này

  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.

Bộ chuyển đổi Base64 sang hình ảnh là gì?

Nếu bạn được thừa kế một tệp CSS hoặc một trang HTML có nhúng các data URL, công cụ này sẽ trích xuất hình ảnh để bạn có thể lưu nó thành tệp. Hãy dán toàn bộ data URL (data:image/...) hoặc chỉ phần payload Base64: chúng tôi xử lý được cả hai.

Các trường hợp sử dụng phổ biến

  • 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.

Câu hỏi thường gặp

Nó có chấp nhận riêng chuỗi Base64 không?
Có. Nếu bạn dán Base64 thô không có tiền tố data URL, chúng tôi giả định là image/png. Đối với các loại khác, hãy dán toàn bộ data URL.

Công cụ liên quan