Drop images here
or click to browse — you can also paste images (Ctrl+V) anywhere on this page
note: base64 output is ≈ +33% larger than the original file — great for small icons, wasteful for large photos.
批次將圖片轉為 Base64 data URI — 也能把 Base64 解碼回圖片。
檔案不會離開你的瀏覽器 — 全部在本機處理。
Drop images here
or click to browse — you can also paste images (Ctrl+V) anywhere on this page
note: base64 output is ≈ +33% larger than the original file — great for small icons, wasteful for large photos.
這個轉換器能把圖片檔轉成 Base64 字串,直接嵌進 HTML、CSS、JSON 或程式碼裡 — 也能把 Base64 字串還原成可下載的圖片。拖放、瀏覽或貼上任意數量的圖片,每張都會產生一張卡片,附四種可直接複製的格式:原始 Base64 內容、完整的 data: URI、HTML <img> 標籤,以及 CSS background-image 規則。
解碼一樣寬容:不論貼上的是含或不含 data URI 前綴的原始 Base64、被斷行切開的字串,還是一次貼好幾段 — 工具都會自動拆分、從 magic bytes 偵測實際的圖片格式,並提供預覽和下載按鈕。