SANDBASE TOOLS

Image to Base64

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

RUNS IN YOUR BROWSERNOTHING UPLOADEDNO WATERMARK
Drop an image here, or click to chooseJPG, PNG, WebP, HEIC, AVIF, GIF, BMP or TIFF. Nothing is uploaded.

How to use it

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

Frequently asked questions

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.
Is my image uploaded?
No. Everything runs in your browser and the picture never leaves your device.

Build with SandBase APIs

When the job outgrows a browser tool: models and APIs on one key, billed per call.

OpenAI models →Alibaba models →ByteDance models →Image & video models →

More tools

All tools →