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.

FAQ

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-ключ, оплата за каждый вызов.