Sand AISand AI MAGI-2ตอนนี้ MAGI-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.

SandBase APIs สำหรับงานนี้

ข้อมูลแบบเดียวกันในโค้ดของคุณหรือ Agent: ใช้ API key เดียว คิดค่าบริการตามจำนวนครั้งที่เรียก