圖片轉 Base64

將圖片轉為 Base64 文字,或將 Base64 還原為圖片。

在您的瀏覽器中執行。您的檔案不會離開裝置。 瞭解如何驗證

…

使用方法

  1. 1
    選擇設定

    填寫資訊或選擇您需要的選項。

  2. 2
    檢視結果

    更改任何內容時,預覽會立即更新。

  3. 3
    下載或儲存

    將結果儲存到您的裝置。不會向伺服器傳送或儲存任何內容。

About this tool

Developers and email designers often need a picture as text. Choose a picture to get a data address you can paste into HTML, CSS or an email signature, or paste a Base64 code to see the picture and download it. The work is done inside your browser.

When to use it

Embed a small picture directly in HTML, CSS or JSON by turning it into Base64 text, or turn Base64 back into a picture.

Tips

Base64 increases the size by about a third, so use it only for small icons.

Privacy

Everything runs in your browser, so your data is not uploaded or stored.

獲得最佳結果的提示

開始之前請花一點時間閱讀選項,並先用一個小例子試用工具。一切都在您裝置的瀏覽器中執行;您輸入或新增的任何內容都不會被上傳,關閉標籤頁會清除所有內容。如果看起來不對,請重新整理頁面重試,或使用本頁的報告連結告訴我們出了什麼問題。如果結果仍然看起來不對,請每次只更改一個值,看看哪個輸入影響最大。如果您還會再用,請收藏此頁。

要點

常見問題

What is Base64 used for?

It lets a small picture sit directly inside HTML, CSS or JSON as text, so no separate file has to load.

Is there a size limit?

Base64 makes files about one third bigger, so it is best for small icons and logos.

Why is the text so long?

Base64 encodes binary data as text, which is about 33 percent larger.

Can I decode it back?

Yes, paste the Base64 to get the picture.

完全免費無費用,無需註冊
檔案保持私密一切都在您的瀏覽器中執行
用您的語言輕鬆使用提供多種語言