Image to Base64 encoder

Upload JPG, PNG, GIF, WebP, BMP, or ICO — get a data URI Base64 string to copy into HTML, CSS, or APIs.

Image in Base64 out HTTPS

Drop your image here

or browse — JPG, PNG, GIF, WebP, BMP, ICO — up to 5 MB • Preview

How to encode image to Base64

1

Upload image

Select an image file — preview appears before encoding.

2

Encode

We build a data:image/...;base64,... string from your file.

3

Copy

Copy the full data URI to clipboard for embeds and APIs.

Why encode images to Base64?

Embed small icons and assets inline — no separate file requests.

Data URI ready

Output includes the mime prefix — paste directly into HTML or CSS.

Preview

Verify the encoded image before copying.

One-click copy

Copy the full string to clipboard in one tap.

Need the reverse? Try Base64 to Image.

All tools