Assam Converter
Convert · Calculate · Create
All Tools
Image to Base64

Encode any image into a Base64 string

Drop a PNG, JPG, GIF, WebP or SVG and get the Base64 or full data-URI instantly. Perfect for embedding images in HTML, CSS, or JSON.

100% private — files never leave your browser
Drop an image here
…or click to browse from your device
Choose Image
PNG · JPG · GIF · WebP · SVG · BMP · ICO
Preview
File
Type
Size
Dimensions
Output size: 0 chars · +33% vs original

What is Base64 image encoding?

Base64 encoding lets you represent binary image data as plain text. The Data URI format (data:image/png;base64,…) can be pasted directly into HTML <img src=""> or CSS background-image: url(), embedding the image without a separate file request.

It's great for tiny icons, email signatures, or single-file HTML pages. For larger images, Base64 makes the file ~33% bigger than the original — use it for icons under 5 KB, and use real image URLs for everything else.

Copied!