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.