Base64 代码生成

上传小体积的图片或图标(建议小于 100KB)。将其转换为 Base64 内联格式,可以直接嵌入代码中,减少浏览器 HTTP 请求,优化页面加载性能。

点击或拖拽图片到这里

支持 JPG, PNG, WebP 格式,文件大小不超过 20MB

What this tool does

Turn a small image into Base64 and copy HTML img, CSS background-image, or React snippets. Best for tiny icons you don’t want as separate requests.

How to use

  1. Upload (ideally under 100KB).
  2. Pick HTML, CSS, or React.
  3. Copy the snippet.

FAQ

Why keep images small?

Base64 grows ~33% and can’t be cached separately — large inlines hurt pages.

Is the file uploaded?

No — Base64 is built locally from the file.

More tools in thedeveloper toolbox. For store preview shots, try theApp Store screenshot maker.