← All tools

Image to Base64 (data URI)

Encode an image as a Base64 data URI for inline use.

Click to choose or drag & drop an image

PNG, JPG, WEBP, GIF, SVG

Frequently asked questions

What's a data URI good for?

Embedding small images directly in HTML or CSS so they load without a separate request.

Any downside to inlining images?

Base64 is ~33% larger than the file, so it's best for small icons — big images bloat your code.