Toolzy

Image to Base64

Convert an image into a Base64 data URI you can paste into code.

将图片拖到此处或点击上传

Encode an image as a Base64 data URI for use in CSS, HTML or JSON. The conversion happens locally in your browser.

使用方法

  1. Upload an image.
  2. Copy the generated Base64 data URI.
  3. Paste it into your CSS, HTML or code.

常见问题

When should I use Base64 images?
For small icons or inlining assets to avoid extra requests. Large images bloat your files.
Is the data URI safe to share?
It contains the full image data, so treat it like the image itself.

相关工具