給 Web 使用的圖片工具

將圖片轉換為 Base64.

把本機圖片轉成可直接用於 HTML、CSS 與電子郵件範本的 Data URI。快速、私密,適合日常前端工作。

檔案留在瀏覽器一次最多 20 個檔案不需要帳號
Base64 轉換器

從圖片到程式碼,更乾淨。

拖入素材,選擇輸出格式,複製你需要的片段。

等待加入圖片0 個檔案

將圖片拖曳到這裡

或從裝置選擇

JPEGPNGWebPGIFSVG+ 更多
最多 20 個檔案 · 本機處理
文字與 Base64 工具

文字轉 Base64,Base64 還原,一起補齊。

支援 UTF-8 文字、純 Base64 和圖片 Data URI,全部在瀏覽器本機完成。

文字轉 Base64

貼上任意文字,包含中文與多語內容,依 UTF-8 編碼為 Base64。

輸出等待輸入文字
輸入內容後產生結果。

Base64 還原

貼上純 Base64 或 Data URI,還原文字,或預覽圖片結果。

還原文字等待輸入 Base64
輸入內容後產生結果。
Made for frontend workflows

Small utility, fewer loose ends.

Everything you need to move an image from a folder into a codebase without opening another editor.

01

Private by default

Files are read with browser APIs and are never sent to a server or stored in an account.

02

Copy the right shape

Switch between raw Base64, Data URI, image tag, CSS, Markdown, and JSON output.

03

Batch-ready

Queue up to 20 images, inspect each result, then copy or export the whole batch.

How it works

From local file to usable snippet in seconds.

The converter uses FileReader and Canvas APIs already available in your browser. There is no backend step to wait for.

  1. 01

    Drop an image

    Choose one file or add a batch of assets from your device.

  2. 02

    Shape the output

    Optionally resize or optimize, then choose the format you need.

  3. 03

    Copy and ship

    Copy the generated snippet into your project, documentation, email, or prototype.

FAQ

Questions before you encode?

A few practical notes about data URIs and the browser-based workflow.

What is a Base64 image?

A Base64 image is an image represented as text inside a data URI. It can be embedded directly in HTML, CSS, JSON, Markdown, or email markup.

Are my images uploaded?

No. The conversion happens locally in this browser tab using FileReader and Canvas. Closing the tab clears the working session.

Which formats are supported?

JPEG, PNG, WebP, GIF, SVG, BMP, ICO, TIFF, AVIF, and HEIC files can be read as data URIs. Browser decoding determines which formats can also be previewed or optimized.

Should I use Base64 for every image?

No. Data URIs are best for small interface assets, email templates, embedded demos, and portable snippets. Larger images are usually better as separate optimized files.

Keep the handoff simple.

Encode your next image without leaving your workflow.

Open converter