Image to Base64 Converter

Drop an image, get a Base64 string or data URI. Perfect for embedding images in CSS, HTML, or JSON. 100% Private

๐Ÿ“

Drag & drop an image here, or browse files

Supports PNG, JPG, GIF, SVG, WebP, ICO, BMP

Preview

What is Base64 encoding?

Base64 is a binary-to-text encoding that represents binary data as ASCII characters. It's commonly used to embed images directly in HTML, CSS, or JSON without needing a separate file. A data URI combines the MIME type with the Base64 string, like: data:image/png;base64,iVBOR...

Will this increase file size?

Yes, Base64 encoding increases size by roughly 33%. It's best used for small images (icons, logos, small graphics) where eliminating an extra HTTP request is more valuable than the size increase.