文字轉 Base64
貼上任意文字,包含中文與多語內容,依 UTF-8 編碼為 Base64。
輸入內容後產生結果。
把本機圖片轉成可直接用於 HTML、CSS 與電子郵件範本的 Data URI。快速、私密,適合日常前端工作。
拖入素材,選擇輸出格式,複製你需要的片段。
或從裝置選擇
選擇圖片後產生 Base64 Data URI。
支援 UTF-8 文字、純 Base64 和圖片 Data URI,全部在瀏覽器本機完成。
貼上任意文字,包含中文與多語內容,依 UTF-8 編碼為 Base64。
輸入內容後產生結果。
貼上純 Base64 或 Data URI,還原文字,或預覽圖片結果。
輸入內容後產生結果。
Everything you need to move an image from a folder into a codebase without opening another editor.
Files are read with browser APIs and are never sent to a server or stored in an account.
Switch between raw Base64, Data URI, image tag, CSS, Markdown, and JSON output.
Queue up to 20 images, inspect each result, then copy or export the whole batch.
The converter uses FileReader and Canvas APIs already available in your browser. There is no backend step to wait for.
Choose one file or add a batch of assets from your device.
Optionally resize or optimize, then choose the format you need.
Copy the generated snippet into your project, documentation, email, or prototype.
A few practical notes about data URIs and the browser-based workflow.
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.
No. The conversion happens locally in this browser tab using FileReader and Canvas. Closing the tab clears the working session.
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.
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.
Encode your next image without leaving your workflow.