Image ⇄ Base64

Convert between images and Base64 data URLs

Image ⇄ Base64 is a free online Image tool. Convert between images and Base64 data URLs Related terms: base64 · 图片 · image · data url · 转码. Use it on this page without signing in.

图片 → Base64

📁
Drop a file or click to select
拖入图片,转成 Data URL 字符串

Base64 → 图片

Base64 编码会让体积增大约 33%,仅适合小图标或内联图片。大图片建议直接引用文件。

Help

使用说明

  1. 上传图片,自动转为 Base64 Data URL 字符串
  2. 反向:粘贴 Base64 字符串即可还原为图片预览
  3. 一键复制 Base64 代码,用于 HTML/CSS 内联图片

常见问题

  • 图片会上传吗? 不会,编码解码全程浏览器本地处理
  • 体积会变大吗? Base64 比原文件大约 33%
  • 支持什么格式? JPG/PNG/GIF/WebP/SVG 等常见格式均可

补充说明

  • 适合小图标内联到代码中,大图片不建议用 Base64 嵌入

More Image

View all

FAQ about Image ⇄ Base64

What can Image ⇄ Base64 do?

Image ⇄ Base64 is a Image tool. Convert between images and Base64 data URLs You can finish the job on this page.

Who should use Image ⇄ Base64?

Anyone handling base64 · 图片 · image · data url · 转码 who does not want to install desktop software can use Image ⇄ Base64 in the browser.

Is Image ⇄ Base64 safe? Is my data uploaded?

This tool runs in your browser. We do not collect the content you enter into Image ⇄ Base64 just because you used it.

What similar tools exist?

Related tools in the same Image group are listed at the bottom of this page.