Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Image to Base64

Miễn phíCông cụ ảnh

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

  • Chạy trong trình duyệt của bạn
  • Không tải lên gì
  • Không có watermark
Thả một hình ảnh vào đây, hoặc nhấp để chọnJPG, PNG, WebP, HEIC, AVIF, GIF, BMP hoặc TIFF. Không có gì được tải lên.

Cách dùng 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.

Mọi người dùng nó để làm gì

  • Web development

    Inline images in CSS or HTML.

  • Emails

    Embedded images.

  • APIs

    Send images as text.

Mẹo để có kết quả tốt hơn

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

Câu hỏi thường gặp

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.

SandBase APIs cho công việc này

Loại dữ liệu tương tự trong code của bạn hoặc Agent: một API key, tính phí theo mỗi lần gọi.