Image to Base64

Convert images to Base64 data strings for embedding directly into HTML or CSS.
Image source Up to 5 MB
Drop an image here PNG, JPG, GIF, WebP, and SVG work best for embeds.
Base64 is most useful for small logos, icons, email snippets, prototypes, and single-file demos. Larger photos usually load better as normal files.
Encoded output Choose an image to start.
Your Base64 data URI, HTML tag, and CSS rule will appear here.
Tool Introduction

Convert a local image into a Base64 data URI that can be pasted into HTML, CSS, JSON, email templates, and quick prototypes. The file is encoded in your browser, so local uploads do not need to leave your device.

Use Base64 for small assets that benefit from being self-contained. For large photographs or production pages with many images, a normal image file is usually smaller, easier to cache, and faster to maintain.