# Image to Base64

> Convert an image to Base64 as a data URI, CSS or HTML.

- Type: free browser tool
- Category: Image tools
- Page: https://www.sandbase.ai/tools/image/image-to-base64

## About

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

## How it works

1. **Step 1** Drop the image for Image to Base64, or pick one from your device.
2. **Step 2** Pick data URI, plain Base64, CSS or HTML.
3. **Step 3** Copy it or download it as text.

## What people use it for

- **Web development**: Inline images in CSS or HTML.
- **Emails**: Embedded images.
- **APIs**: Send images as text.

## Tips

- 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.
