Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Image to Base64

免费图片工具

Embed small images straight into HTML, CSS, JSON or emails as Base64 text, with no separate file to host.

  • 在浏览器中运行
  • 无需上传任何内容
  • 无水印
将图片拖放到这里,或点击选择JPG、PNG、WebP、HEIC、AVIF、GIF、BMP 或 TIFF。不会上传任何内容。

如何使用 Image to Base64

  1. 01

    Drop the image for Image to Base64, or pick one from your device.

  2. 02

    Pick data URI, plain Base64, CSS or HTML.

  3. 03

    Copy it or download it as text.

大家用它来做什么

  • Web development

    Inline images in CSS or HTML.

  • Emails

    Embedded images.

  • APIs

    Send images as text.

提升效果的小贴士

  • Base64 is about a third larger than the file.
  • Use it for small icons.
  • Copy the data URL for CSS.

常见问题

When should I use Base64 images?

For small icons and logos. Base64 is about a third bigger than the file and is not cached separately, so use normal files for photos.

Does Image to Base64 upload my image?

No. Image to Base64 encodes the image in your browser, so the picture never leaves your device.